Skip to content

Commit

Permalink
ARM: ux500: Enable PL011 AMBA UART Controller for Device Tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lee Jones authored and Arnd Bergmann committed Mar 16, 2012
1 parent dab6487 commit 4905af0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/snowball.dts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@
status = "enabled";
};

uart@80120000 {
status = "okay";
};

uart@80121000 {
status = "okay";
};

uart@80007000 {
status = "okay";
};

i2c@80004000 {
tc3589x@42 {
//compatible = "tc3589x";
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/mach-ux500/board-mop500.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ MACHINE_END
#ifdef CONFIG_MACH_UX500_DT

struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", &uart0_plat),
OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", &uart1_plat),
OF_DEV_AUXDATA("arm,pl011", 0x80007000, "uart2", &uart2_plat),
{},
};

Expand Down Expand Up @@ -802,7 +805,6 @@ static void __init u8500_init_machine(void)
}
mop500_i2c_init(parent);
mop500_spi_init(parent);
mop500_uart_init(parent);

i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
i2c_register_board_info(2, mop500_i2c2_devices,
Expand Down

0 comments on commit 4905af0

Please sign in to comment.