From 7ed2fce462a579abc8b0974307d180b46dd32763 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 19 Jan 2011 10:25:00 +0900 Subject: [PATCH] s5p: cmd_mmc: fixed 4-bit boot buswidth S5PC210 EVT0 didn't support 8-bit boot buswidth. So, We set 4-bit boot buswidth (workaround). Signed-off-by: Jaehoon Chung --- common/cmd_mmc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 6de6832..6ba0d22 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -272,6 +272,16 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) mmc->boot_config = (ack << 6) | (enable << 3) | access; mmc_init(mmc); + + /* + * Note : S5PC210 EVT0 only can boot from 4-bit + * buswidth. Set 4-bit boot buswidth + */ + if (!access) { + mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, + EXT_CSD_BOOT_BUS_WIDTH, MMC_BOOT_4BIT); + + } } else if (strcmp(argv[1], "erase") == 0) { int dev = simple_strtoul(argv[2], NULL, 10); u32 blk = simple_strtoul(argv[3], NULL, 16); -- 2.7.4