diff options
author | Jason Liu <r64343@freescale.com> | 2013-02-04 10:43:28 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2013-02-04 10:58:39 +0800 |
commit | 550a56fb56a2c3c70def51f7a2bfdbe27bcb07f0 (patch) | |
tree | a4d8473c204ae61331edd33cb1e65e05d8e357a9 /board/freescale/mx6q_sabreauto | |
parent | 69867900d85e71737f6760c57c86d911625cd61c (diff) | |
download | u-boot-imx-550a56fb56a2c3c70def51f7a2bfdbe27bcb07f0.zip u-boot-imx-550a56fb56a2c3c70def51f7a2bfdbe27bcb07f0.tar.gz u-boot-imx-550a56fb56a2c3c70def51f7a2bfdbe27bcb07f0.tar.bz2 |
ENGR00243038: make get_mmc_env_devno to be a generic function
Currently, each board has one same function called get_mmc_env_devno,
this will make the code a little bit duplication. We can make the
get_mmc_env_devno to be a generic function, thus we can remove all the
scattered function definition in each board file.
And the patch also remove the boot check. Firstly, this check is needless,
secondly, this will break the second boot support,for example:
first boot from SPI, then switch to SD/MMC boot.
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'board/freescale/mx6q_sabreauto')
-rw-r--r-- | board/freescale/mx6q_sabreauto/mx6q_sabreauto.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c index 8577cdf..1f6902f 100644 --- a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c +++ b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c @@ -624,19 +624,6 @@ struct fsl_esdhc_cfg usdhc_cfg[4] = { {USDHC4_BASE_ADDR, 1, 1, 1, 0}, }; -#ifdef CONFIG_DYNAMIC_MMC_DEVNO -int get_mmc_env_devno(void) -{ - uint soc_sbmr = readl(SRC_BASE_ADDR + 0x4); - - if (SD_BOOT == boot_dev || MMC_BOOT == boot_dev) { - /* BOOT_CFG2[3] and BOOT_CFG2[4] */ - return (soc_sbmr & 0x00001800) >> 11; - } else - return -1; - -} -#endif #ifdef CONFIG_CMD_WEIMNOR #if defined CONFIG_MX6Q |