coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmc.h File Reference
#include <stdint.h>
Include dependency graph for mmc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mmc_dll_params
 

Macros

#define EMMC_TX_CMD_CNTL_OFFSET   0x820
 
#define EMMC_TX_DATA_CNTL1_OFFSET   0x824
 
#define EMMC_TX_DATA_CNTL2_OFFSET   0x828
 
#define EMMC_RX_CMD_DATA_CNTL1_OFFSET   0x82C
 
#define EMMC_RX_STROBE_CNTL_OFFSET   0x830
 
#define EMMC_RX_CMD_DATA_CNTL2_OFFSET   0x834
 

Functions

int soc_get_mmc_frequencies (uint32_t *f_min, uint32_t *f_max)
 
int soc_configure_mmc_gpios (void)
 
int soc_get_mmc_dll (struct mmc_dll_params *params)
 
int set_mmc_dll (void *bar)
 
static int early_mmc_wake_hw (void)
 

Macro Definition Documentation

◆ EMMC_RX_CMD_DATA_CNTL1_OFFSET

#define EMMC_RX_CMD_DATA_CNTL1_OFFSET   0x82C

Definition at line 54 of file mmc.h.

◆ EMMC_RX_CMD_DATA_CNTL2_OFFSET

#define EMMC_RX_CMD_DATA_CNTL2_OFFSET   0x834

Definition at line 56 of file mmc.h.

◆ EMMC_RX_STROBE_CNTL_OFFSET

#define EMMC_RX_STROBE_CNTL_OFFSET   0x830

Definition at line 55 of file mmc.h.

◆ EMMC_TX_CMD_CNTL_OFFSET

#define EMMC_TX_CMD_CNTL_OFFSET   0x820

Definition at line 51 of file mmc.h.

◆ EMMC_TX_DATA_CNTL1_OFFSET

#define EMMC_TX_DATA_CNTL1_OFFSET   0x824

Definition at line 52 of file mmc.h.

◆ EMMC_TX_DATA_CNTL2_OFFSET

#define EMMC_TX_DATA_CNTL2_OFFSET   0x828

Definition at line 53 of file mmc.h.

Function Documentation

◆ early_mmc_wake_hw()

static int early_mmc_wake_hw ( void  )
inlinestatic

Definition at line 75 of file mmc.h.

◆ set_mmc_dll()

◆ soc_configure_mmc_gpios()

int soc_configure_mmc_gpios ( void  )

Referenced by early_mmc_wake_hw().

Here is the caller graph for this function:

◆ soc_get_mmc_dll()

int soc_get_mmc_dll ( struct mmc_dll_params params)

◆ soc_get_mmc_frequencies()

int soc_get_mmc_frequencies ( uint32_t f_min,
uint32_t f_max 
)

Referenced by soc_sd_mmc_controller_quirks().

Here is the caller graph for this function: