12 #include <soc/iomap.h>
13 #include <soc/pci_devs.h>
22 "MMC early init: failed to get mmc frequencies\n");
33 PRERAM_MMC_BASE_ADDRESS);
51 if (ms_cbmem ==
NULL) {
53 "%s: Failed to add early mmc wake status to cbmem!\n",
74 "%s: MMC early init: failed to configure mmc gpios\n",
83 if (mmc_ctrlr ==
NULL)
static int acpi_is_wakeup_s3(void)
void * memset(void *dstpp, int c, size_t len)
void * cbmem_add(u32 id, u64 size)
#define CBMEM_ID_MMC_STATUS
#define printk(level,...)
int mmc_send_op_cond(struct storage_media *media)
static void disable_mmc_controller_bar(void)
static void enable_mmc_controller_bar(void)
int early_mmc_wake_hw(void)
static void set_early_mmc_wake_status(int32_t status)
void soc_sd_mmc_controller_quirks(struct sd_mmc_ctrlr *ctrlr)
#define container_of(ptr, type, member)
container_of - cast a member of a structure out to the containing structure
struct sd_mmc_ctrlr * new_pci_sdhci_controller(uint32_t dev)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define PCI_COMMAND_MASTER
#define PCI_COMMAND_MEMORY
#define PCI_BASE_ADDRESS_0
int sd_mmc_go_idle(struct storage_media *media)
#define SET_BUS_WIDTH(ctrlr, width)
#define SET_CLOCK(ctrlr, clock_hz)
int soc_configure_mmc_gpios(void)
int soc_get_mmc_frequencies(uint32_t *f_min, uint32_t *f_max)
int set_mmc_dll(void *bar)