aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/lluart.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-imx/lluart.c')
-rw-r--r--arch/arm/mach-imx/lluart.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/lluart.c b/arch/arm/mach-imx/lluart.c
index d4ab6f29a76..8962dfff901 100644
--- a/arch/arm/mach-imx/lluart.c
+++ b/arch/arm/mach-imx/lluart.c
@@ -16,17 +16,26 @@
#include <asm/mach/map.h>
#include <mach/hardware.h>
-static struct map_desc imx_lluart_desc = {
+static struct map_desc imx_lluart_desc[] = {
#ifdef CONFIG_DEBUG_IMX6Q_UART
- .virtual = MX6Q_IO_P2V(MX6Q_UART4_BASE_ADDR),
- .pfn = __phys_to_pfn(MX6Q_UART4_BASE_ADDR),
- .length = MX6Q_UART4_SIZE,
- .type = MT_DEVICE,
+ {
+ .virtual = MX6Q_IO_P2V(MX6Q_UART4_BASE_ADDR),
+ .pfn = __phys_to_pfn(MX6Q_UART4_BASE_ADDR),
+ .length = MX6Q_UART_SIZE,
+ .type = MT_DEVICE,
+ },
+ {
+ .virtual = MX6Q_IO_P2V(MX6Q_UART2_BASE_ADDR),
+ .pfn = __phys_to_pfn(MX6Q_UART2_BASE_ADDR),
+ .length = MX6Q_UART_SIZE,
+ .type = MT_DEVICE,
+ },
+
#endif
};
void __init imx_lluart_map_io(void)
{
if (imx_lluart_desc.virtual)
- iotable_init(&imx_lluart_desc, 1);
+ iotable_init(&imx_lluart_desc, ARRY_SIZE(imx_lluart_desc));
}