]> xenbits.xensource.com Git - xen.git/commit
xen/arm: Don't use pl011 UART by default for early printk
authorJulien Grall <julien.grall@linaro.org>
Sun, 28 Apr 2013 19:14:12 +0000 (20:14 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 13 May 2013 11:00:01 +0000 (12:00 +0100)
commit53a0714c81b1584f1fe41e13b1a05dca632f6509
tree79fa9a97fc26df8b7358c12a5aeb3d401c5475c9
parent237c94508b149af506e20dd1ad8bcd57b49201f9
xen/arm: Don't use pl011 UART by default for early printk

Add CONFIG_EARLY_PRINTK options in configs/arm{32,64}.mk to let the user
to choose if he wants to have early output, ie before the console is initialized.

This code is specific for each UART. When CONFIG_EARLY_PRINTK is enabled,
Xen will only be able to run on a board with this UART.

If a developper wants to add support for a new UART, he must implement the
following assembly macro/define:
   - EALY_UART_BASE_ADDRESS: variable which contains the physical base address
   for the UART
   - early_uart_init: initialize the UART
   - early_uart_ready: check and wait until the UART can transmit a new
   character
   - early_uart_transmit: transmit a character

For more details about the parameters of each function,
see arm{32,64}/debug-pl011.inc comments.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
14 files changed:
docs/misc/arm/early-printk.txt [new file with mode: 0644]
xen/arch/arm/Makefile
xen/arch/arm/Rules.mk
xen/arch/arm/arm32/Makefile
xen/arch/arm/arm32/debug-pl011.inc [new file with mode: 0644]
xen/arch/arm/arm32/debug.S [new file with mode: 0644]
xen/arch/arm/arm32/head.S
xen/arch/arm/arm64/Makefile
xen/arch/arm/arm64/debug-pl011.inc [new file with mode: 0644]
xen/arch/arm/arm64/debug.S [new file with mode: 0644]
xen/arch/arm/arm64/head.S
xen/arch/arm/early_printk.c
xen/include/asm-arm/config.h
xen/include/asm-arm/early_printk.h