diff options
author | Terry Lv <r65388@freescale.com> | 2010-12-07 17:15:07 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2010-12-10 17:52:42 +0800 |
commit | bb24c00fe03c58f9695b0f68e51f35c6c5982746 (patch) | |
tree | 932b4c0a78729bec2547f382ddfc73c73527739b /board | |
parent | 2f12abe42943096ac433b014ddaa9704682e7951 (diff) | |
download | u-boot-imx-bb24c00fe03c58f9695b0f68e51f35c6c5982746.zip u-boot-imx-bb24c00fe03c58f9695b0f68e51f35c6c5982746.tar.gz u-boot-imx-bb24c00fe03c58f9695b0f68e51f35c6c5982746.tar.bz2 |
ENGR00136038: Remove config CONFIG_EMMC_DDR_MODE
1. As we can check DDR dynamically,
remove CONFIG_EMMC_DDR_MODE in mmc.c.
2. Add config CONFIG_EMMC_DDR_PORT_DETECT
config for some boards that only some board support DDR.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx53_rd/mx53_rd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/freescale/mx53_rd/mx53_rd.c b/board/freescale/mx53_rd/mx53_rd.c index cb440d9..5baa5d0 100644 --- a/board/freescale/mx53_rd/mx53_rd.c +++ b/board/freescale/mx53_rd/mx53_rd.c @@ -931,10 +931,16 @@ struct fsl_esdhc_cfg esdhc_cfg[2] = { int get_mmc_env_devno() { uint soc_sbmr = readl(SRC_BASE_ADDR + 0x4); - return (soc_sbmr & 0x00300000) ? 1 : 0; + return (soc_sbmr & 0x00300000) ? 1 : 0; } #endif +#ifdef CONFIG_EMMC_DDR_PORT_DETECT +int detect_mmc_emmc_ddr_port(struct fsl_esdhc_cfg *cfg) +{ + return (MMC_SDHC3_BASE_ADDR == cfg->esdhc_base) ? 1 : 0; +} +#endif int esdhc_gpio_init(bd_t *bis) { |