diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-12-08 00:37:59 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@stericsson.com> | 2011-01-10 12:34:53 -0500 |
commit | abf12d719a2c9e45f7f90c02a3a25107206ed57a (patch) | |
tree | 0aa9d9ecc7188b748eeda954b609dd74a8f5d24f /arch/arm/mach-ux500/cpu-db5500.c | |
parent | 5dc55e0a39434ec8bec7978aef2dc00c91a530ba (diff) |
ux500: dynamic SOC detection
Dynamically detect the DBx500 SOC an revision based on the ASIC ID.
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db5500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db5500.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/cpu-db5500.c b/arch/arm/mach-ux500/cpu-db5500.c index 7b0ab8336f3f..af04e0891a78 100644 --- a/arch/arm/mach-ux500/cpu-db5500.c +++ b/arch/arm/mach-ux500/cpu-db5500.c | |||
@@ -21,9 +21,12 @@ | |||
21 | 21 | ||
22 | #include "devices-db5500.h" | 22 | #include "devices-db5500.h" |
23 | 23 | ||
24 | static struct map_desc u5500_io_desc[] __initdata = { | 24 | static struct map_desc u5500_uart_io_desc[] __initdata = { |
25 | __IO_DEV_DESC(U5500_UART0_BASE, SZ_4K), | 25 | __IO_DEV_DESC(U5500_UART0_BASE, SZ_4K), |
26 | __IO_DEV_DESC(U5500_UART2_BASE, SZ_4K), | 26 | __IO_DEV_DESC(U5500_UART2_BASE, SZ_4K), |
27 | }; | ||
28 | |||
29 | static struct map_desc u5500_io_desc[] __initdata = { | ||
27 | __IO_DEV_DESC(U5500_GIC_CPU_BASE, SZ_4K), | 30 | __IO_DEV_DESC(U5500_GIC_CPU_BASE, SZ_4K), |
28 | __IO_DEV_DESC(U5500_GIC_DIST_BASE, SZ_4K), | 31 | __IO_DEV_DESC(U5500_GIC_DIST_BASE, SZ_4K), |
29 | __IO_DEV_DESC(U5500_L2CC_BASE, SZ_4K), | 32 | __IO_DEV_DESC(U5500_L2CC_BASE, SZ_4K), |
@@ -153,6 +156,13 @@ static void __init db5500_add_gpios(void) | |||
153 | 156 | ||
154 | void __init u5500_map_io(void) | 157 | void __init u5500_map_io(void) |
155 | { | 158 | { |
159 | /* | ||
160 | * Map the UARTs early so that the DEBUG_LL stuff continues to work. | ||
161 | */ | ||
162 | iotable_init(u5500_uart_io_desc, ARRAY_SIZE(u5500_uart_io_desc)); | ||
163 | |||
164 | ux500_map_io(); | ||
165 | |||
156 | iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); | 166 | iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); |
157 | } | 167 | } |
158 | 168 | ||