diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-03-07 12:35:04 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-03-16 15:48:46 -0400 |
commit | 4905af0e13a665da5f72d2629e93161ba781d03b (patch) | |
tree | de661eb4c83a2e70b3c553a02d563f94a882aa5b | |
parent | dab6487e35680ac5043c58a60554c49052276f5e (diff) |
ARM: ux500: Enable PL011 AMBA UART Controller for Device Tree
Enables the 3 UARTs found on a u8500 using DT.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/boot/dts/snowball.dts | 12 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/snowball.dts b/arch/arm/boot/dts/snowball.dts index 34bfd79fb073..359c6d679156 100644 --- a/arch/arm/boot/dts/snowball.dts +++ b/arch/arm/boot/dts/snowball.dts | |||
@@ -96,6 +96,18 @@ | |||
96 | status = "enabled"; | 96 | status = "enabled"; |
97 | }; | 97 | }; |
98 | 98 | ||
99 | uart@80120000 { | ||
100 | status = "okay"; | ||
101 | }; | ||
102 | |||
103 | uart@80121000 { | ||
104 | status = "okay"; | ||
105 | }; | ||
106 | |||
107 | uart@80007000 { | ||
108 | status = "okay"; | ||
109 | }; | ||
110 | |||
99 | i2c@80004000 { | 111 | i2c@80004000 { |
100 | tc3589x@42 { | 112 | tc3589x@42 { |
101 | //compatible = "tc3589x"; | 113 | //compatible = "tc3589x"; |
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 482b86ef757d..ea0242a095af 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -746,6 +746,9 @@ MACHINE_END | |||
746 | #ifdef CONFIG_MACH_UX500_DT | 746 | #ifdef CONFIG_MACH_UX500_DT |
747 | 747 | ||
748 | struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { | 748 | struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { |
749 | OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", &uart0_plat), | ||
750 | OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", &uart1_plat), | ||
751 | OF_DEV_AUXDATA("arm,pl011", 0x80007000, "uart2", &uart2_plat), | ||
749 | {}, | 752 | {}, |
750 | }; | 753 | }; |
751 | 754 | ||
@@ -802,7 +805,6 @@ static void __init u8500_init_machine(void) | |||
802 | } | 805 | } |
803 | mop500_i2c_init(parent); | 806 | mop500_i2c_init(parent); |
804 | mop500_spi_init(parent); | 807 | mop500_spi_init(parent); |
805 | mop500_uart_init(parent); | ||
806 | 808 | ||
807 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); | 809 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); |
808 | i2c_register_board_info(2, mop500_i2c2_devices, | 810 | i2c_register_board_info(2, mop500_i2c2_devices, |