Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mmc/mmc_fdt_helpers.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
#define MMC_PROP_NO_SDIO (1 << 5) | #define MMC_PROP_NO_SDIO (1 << 5) | ||||
#define MMC_PROP_NO_SD (1 << 6) | #define MMC_PROP_NO_SD (1 << 6) | ||||
#define MMC_PROP_NO_MMC (1 << 7) | #define MMC_PROP_NO_MMC (1 << 7) | ||||
#ifdef EXT_RESOURCES | #ifdef EXT_RESOURCES | ||||
regulator_t vmmc_supply; | regulator_t vmmc_supply; | ||||
regulator_t vqmmc_supply; | regulator_t vqmmc_supply; | ||||
#endif | #endif | ||||
device_t mmc_pwrseq; | |||||
}; | }; | ||||
typedef void (*mmc_fdt_cd_handler)(device_t dev, bool present); | typedef void (*mmc_fdt_cd_handler)(device_t dev, bool present); | ||||
int mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_fdt_helper *helper, struct mmc_host *host); | int mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_fdt_helper *helper, struct mmc_host *host); | ||||
int mmc_fdt_gpio_setup(device_t dev, phandle_t node, struct mmc_fdt_helper *helper, mmc_fdt_cd_handler handler); | int mmc_fdt_gpio_setup(device_t dev, phandle_t node, struct mmc_fdt_helper *helper, mmc_fdt_cd_handler handler); | ||||
void mmc_fdt_gpio_teardown(struct mmc_fdt_helper *helper); | void mmc_fdt_gpio_teardown(struct mmc_fdt_helper *helper); | ||||
bool mmc_fdt_gpio_get_present(struct mmc_fdt_helper *helper); | bool mmc_fdt_gpio_get_present(struct mmc_fdt_helper *helper); | ||||
bool mmc_fdt_gpio_get_readonly(struct mmc_fdt_helper *helper); | bool mmc_fdt_gpio_get_readonly(struct mmc_fdt_helper *helper); | ||||
#endif | #endif |