diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-01-12 14:58:51 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-06 17:30:05 +0100 |
commit | 98f4e4215d6ab0a3de1802df94355cc1a90f7fe0 (patch) | |
tree | 375f4c011bb30a836e6f9380bfb18227c17bb285 | |
parent | 7655f48b706c77246d44524525bbca1ff8db2109 (diff) |
sdi: u5500: detect pre-R3A boards
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/board-u5500-sdi.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/arch/arm/mach-ux500/board-u5500-sdi.c b/arch/arm/mach-ux500/board-u5500-sdi.c index 7a82397e72f..a33bc0cd28a 100644 --- a/arch/arm/mach-ux500/board-u5500-sdi.c +++ b/arch/arm/mach-ux500/board-u5500-sdi.c @@ -233,31 +233,24 @@ static void sdi1_configure(void) #define SDI_PID_V1 0x00480180 #define SDI_PID_V2 0x10480180 -#define BACKUPRAM_ROM_DEBUG_ADDR 0xFFC -#define MMC_BLOCK_ID 0x20 void __init u5500_sdi_init(void) { u32 periphid = 0; - int mmc_blk = 0; if (cpu_is_u5500v1()) periphid = SDI_PID_V1; else periphid = SDI_PID_V2; - if (cpu_is_u5500v2()) - /* - * Fix me in 5500 v2.1 - * Dynamic detection of booting device by reading - * ROM debug register from BACKUP RAM and register the - * corresponding EMMC. - * This is done due to wrong configuration of MMC0 clock - * in ROM code for u5500 v2. - */ - mmc_blk = readl(__io_address(U5500_BACKUPRAM1_BASE) + - BACKUPRAM_ROM_DEBUG_ADDR); - - if (mmc_blk & MMC_BLOCK_ID) + /* + * Fix me in 5500 v2.1 + * Dynamic detection of booting device by reading + * ROM debug register from BACKUP RAM and register the + * corresponding EMMC. + * This is done due to wrong configuration of MMC0 clock + * in ROM code for u5500 v2. + */ + if (u5500_get_boot_mmc() == 2) db5500_add_sdi2(&u5500_sdi2_data, periphid); else db5500_add_sdi0(&u5500_sdi0_data, periphid); |