aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/arm/setup.c
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-04-27 21:02:04 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-05-13 11:59:59 +0100
commit2a403a18dd34050d9439ce78576fca5f5d03d69d (patch)
tree01b6e3521b6dba232bc6ae6c3136e4a204b1bf17 /xen/arch/arm/setup.c
parent2be37b2cda31fc1b5f11deb912249bc54803f055 (diff)
downloadxen-2a403a18dd34050d9439ce78576fca5f5d03d69d.tar.gz
xen-2a403a18dd34050d9439ce78576fca5f5d03d69d.tar.bz2
xen-2a403a18dd34050d9439ce78576fca5f5d03d69d.zip
xen/arm: Add generic UART to get the device in the device tree
This generic UART will find the right UART via xen command line with dtuart=myserial. "myserial" is the alias of the UART in the device tree. Xen will retrieve the information via the device tree and call the initialization function for this specific UART thanks to the device API. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/arm/setup.c')
-rw-r--r--xen/arch/arm/setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index fc53117164..2e331d3800 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -436,8 +436,9 @@ void __init start_xen(unsigned long boot_phys_offset,
#ifdef EARLY_UART_ADDRESS
/* TODO Need to get device tree or command line for UART address */
pl011_init(0, FIXMAP_ADDR(FIXMAP_CONSOLE));
- console_init_preirq();
#endif
+ dt_uart_init();
+ console_init_preirq();
system_state = SYS_STATE_boot;