xen/arm: Add generic UART to get the device in the device tree

Enterprise / Virtualization / Xen - Julien Grall [linaro.org] - 13 May 2013 05:59 UTC

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.

2a403a1 xen/arm: Add generic UART to get the device in the device tree
xen/arch/arm/setup.c | 3 +-
xen/drivers/char/Makefile | 1 +
xen/drivers/char/dt-uart.c | 69 ++++++++++++++++++++++++++++++++++++++++++
xen/drivers/char/serial.c | 6 ++++
xen/include/asm-arm/config.h | 2 +-
xen/include/xen/serial.h | 5 ++-
6 files changed, 83 insertions(+), 3 deletions(-)

Upstream: xenbits.xen.org


  • Share