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   0x11f60000
 
#define MSDC0_TOP_BASE   0x11f50000
 
#define MSDC0_DRV_MASK   0x3fffffff
 
#define MSDC1_DRV_MASK   0x3ffff000
 
#define MSDC0_DRV_VALUE   0x24924924
 
#define MSDC1_DRV_VALUE   0x1b6db000
 
#define MSDC1_GPIO_MODE0_BASE   0x10005360
 
#define MSDC1_GPIO_MODE0_MASK   0x77777000
 
#define MSDC1_GPIO_MODE0_VALUE   0x11111000
 
#define MSDC1_GPIO_MODE1_BASE   0x10005370
 
#define MSDC1_GPIO_MODE1_MASK   0x7
 
#define MSDC1_GPIO_MODE1_VALUE   0x1
 

Functions

void mtk_msdc_configure_emmc (bool is_early_init)
 
void mtk_msdc_configure_sdcard (void)
 

Macro Definition Documentation

◆ MSDC0_BASE

#define MSDC0_BASE   0x11f60000

Definition at line 9 of file msdc.c.

◆ MSDC0_DRV_MASK

#define MSDC0_DRV_MASK   0x3fffffff

Definition at line 12 of file msdc.c.

◆ MSDC0_DRV_VALUE

#define MSDC0_DRV_VALUE   0x24924924

Definition at line 14 of file msdc.c.

◆ MSDC0_TOP_BASE

#define MSDC0_TOP_BASE   0x11f50000

Definition at line 10 of file msdc.c.

◆ MSDC1_DRV_MASK

#define MSDC1_DRV_MASK   0x3ffff000

Definition at line 13 of file msdc.c.

◆ MSDC1_DRV_VALUE

#define MSDC1_DRV_VALUE   0x1b6db000

Definition at line 15 of file msdc.c.

◆ MSDC1_GPIO_MODE0_BASE

#define MSDC1_GPIO_MODE0_BASE   0x10005360

Definition at line 17 of file msdc.c.

◆ MSDC1_GPIO_MODE0_MASK

#define MSDC1_GPIO_MODE0_MASK   0x77777000

Definition at line 18 of file msdc.c.

◆ MSDC1_GPIO_MODE0_VALUE

#define MSDC1_GPIO_MODE0_VALUE   0x11111000

Definition at line 19 of file msdc.c.

◆ MSDC1_GPIO_MODE1_BASE

#define MSDC1_GPIO_MODE1_BASE   0x10005370

Definition at line 21 of file msdc.c.

◆ MSDC1_GPIO_MODE1_MASK

#define MSDC1_GPIO_MODE1_MASK   0x7

Definition at line 22 of file msdc.c.

◆ MSDC1_GPIO_MODE1_VALUE

#define MSDC1_GPIO_MODE1_VALUE   0x1

Definition at line 23 of file msdc.c.

Function Documentation

◆ mtk_msdc_configure_emmc()

void mtk_msdc_configure_emmc ( bool  is_early_init)

◆ mtk_msdc_configure_sdcard()