diff options
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) { |