coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
msdc.c File Reference
#include <device/mmio.h>
#include <soc/addressmap.h>
#include <soc/gpio.h>
#include <soc/regulator.h>
#include <soc/msdc.h>
Include dependency graph for msdc.c:

Go to the source code of this file.

Macros

#define MSDC0_BASE   0x11230000
 
#define MSDC0_TOP_BASE   0x11cd0000
 
#define MSDC0_DRV_VALUE   0x1b6db6db
 
#define MSDC1_DRV_VALUE   0x1b6db
 
#define MSDC1_GPIO_MODE0_VALUE   0x1
 
#define MSDC1_GPIO_MODE1_VALUE   0x1
 

Enumerations

enum  { MSDC1_GPIO_MODE0_BASE = 0x100053a0 , MSDC1_GPIO_MODE1_BASE = 0x100053b0 }
 

Functions

void mtk_msdc_configure_emmc (bool is_early_init)
 
void mtk_msdc_configure_sdcard (void)
 

Macro Definition Documentation

◆ MSDC0_BASE

#define MSDC0_BASE   0x11230000

Definition at line 23 of file msdc.c.

◆ MSDC0_DRV_VALUE

#define MSDC0_DRV_VALUE   0x1b6db6db

Definition at line 26 of file msdc.c.

◆ MSDC0_TOP_BASE

#define MSDC0_TOP_BASE   0x11cd0000

Definition at line 24 of file msdc.c.

◆ MSDC1_DRV_VALUE

#define MSDC1_DRV_VALUE   0x1b6db

Definition at line 27 of file msdc.c.

◆ MSDC1_GPIO_MODE0_VALUE

#define MSDC1_GPIO_MODE0_VALUE   0x1

Definition at line 28 of file msdc.c.

◆ MSDC1_GPIO_MODE1_VALUE

#define MSDC1_GPIO_MODE1_VALUE   0x1

Definition at line 29 of file msdc.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MSDC1_GPIO_MODE0_BASE 
MSDC1_GPIO_MODE1_BASE 

Definition at line 31 of file msdc.c.

Function Documentation

◆ mtk_msdc_configure_emmc()

void mtk_msdc_configure_emmc ( bool  is_early_init)

Definition at line 36 of file msdc.c.

◆ mtk_msdc_configure_sdcard()

void mtk_msdc_configure_sdcard ( void  )

Definition at line 66 of file msdc.c.