diff options
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db5500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db5500.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpu-db5500.c b/arch/arm/mach-ux500/cpu-db5500.c index acc841e48de4..af04e0891a78 100644 --- a/arch/arm/mach-ux500/cpu-db5500.c +++ b/arch/arm/mach-ux500/cpu-db5500.c | |||
@@ -21,7 +21,20 @@ | |||
21 | 21 | ||
22 | #include "devices-db5500.h" | 22 | #include "devices-db5500.h" |
23 | 23 | ||
24 | static struct map_desc u5500_uart_io_desc[] __initdata = { | ||
25 | __IO_DEV_DESC(U5500_UART0_BASE, SZ_4K), | ||
26 | __IO_DEV_DESC(U5500_UART2_BASE, SZ_4K), | ||
27 | }; | ||
28 | |||
24 | static struct map_desc u5500_io_desc[] __initdata = { | 29 | static struct map_desc u5500_io_desc[] __initdata = { |
30 | __IO_DEV_DESC(U5500_GIC_CPU_BASE, SZ_4K), | ||
31 | __IO_DEV_DESC(U5500_GIC_DIST_BASE, SZ_4K), | ||
32 | __IO_DEV_DESC(U5500_L2CC_BASE, SZ_4K), | ||
33 | __IO_DEV_DESC(U5500_TWD_BASE, SZ_4K), | ||
34 | __IO_DEV_DESC(U5500_MTU0_BASE, SZ_4K), | ||
35 | __IO_DEV_DESC(U5500_SCU_BASE, SZ_4K), | ||
36 | __IO_DEV_DESC(U5500_BACKUPRAM0_BASE, SZ_8K), | ||
37 | |||
25 | __IO_DEV_DESC(U5500_GPIO0_BASE, SZ_4K), | 38 | __IO_DEV_DESC(U5500_GPIO0_BASE, SZ_4K), |
26 | __IO_DEV_DESC(U5500_GPIO1_BASE, SZ_4K), | 39 | __IO_DEV_DESC(U5500_GPIO1_BASE, SZ_4K), |
27 | __IO_DEV_DESC(U5500_GPIO2_BASE, SZ_4K), | 40 | __IO_DEV_DESC(U5500_GPIO2_BASE, SZ_4K), |
@@ -143,6 +156,11 @@ static void __init db5500_add_gpios(void) | |||
143 | 156 | ||
144 | void __init u5500_map_io(void) | 157 | void __init u5500_map_io(void) |
145 | { | 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 | |||
146 | ux500_map_io(); | 164 | ux500_map_io(); |
147 | 165 | ||
148 | iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); | 166 | iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); |