Skip to content

Add UART support and arch timer initialization for OMAP5

Chen Baozi xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen: rename ns16550-uart.h to 8250-uart.h and fix some typosxen/drivers/char/ns16550.c xen/include/xen/8250-uart.h+10 -100 replies
2/5xen/arm: add OMAP5432 UART support for early_printkdocs/misc/arm/early-printk.txt xen/arch/arm/Rules.mk xen/arch/arm/arm32/debug-8250.inc +1 more+52 -02 replies
3/5xen/arm: Add the new OMAP UART driver.config/arm32.mk xen/drivers/char/Makefile xen/drivers/char/omap-uart.c +1 more+431 -34 replies
4/5xen/arm: Introduce platform recognition codes for the OMAP5xen/arch/arm/platforms/Makefile xen/arch/arm/platforms/omap5.c xen/include/asm-arm/platforms/omap5.h+65 -03 replies
5/5xen/arm: Add OMAP5 architected timer initialization codes.xen/arch/arm/platforms/omap5.c xen/arch/arm/time.c xen/include/asm-arm/platforms/omap5.h+93 -17 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Add UART support and arch timer initialization for OMAP5

Since OMAP UART has a few distinct features than common 8250 UART, I re-implemented its driver rather than porting it based on ns16550.c. There are mainly two big differences between the implementations. First, OMAP UART introduces the concept of register access mode, which divides the register map into seperated space. Switching the access mode is then necessary when configuring it. Second, THRE interrupt needs to be disable after finished transmission and enabled once transmission started. This is because the semantic of THRE interrupt differs from common 8250 in TI's implementation, which would be generated if TX FIFO below trigger level and cannot be cleared by simply write to THR once.

Besides UART driver, arch timer initialization for OMAP5432 platform is also done in this patch series.

Chen Baozi (5):
xen: rename ns16550-uart.h to 8250-uart.h and fix some typos xen/arm: add OMAP5432 UART support for early_printk xen/arm: Add the new OMAP UART driver.
xen/arm: Introduce platform recognition codes for the OMAP5 xen/arm: Add OMAP5 architected timer initialization codes.

 config/arm32.mk                                 |   1 +
 docs/misc/arm/early-printk.txt                  |   1 +
 xen/arch/arm/Rules.mk                           |   4 +
 xen/arch/arm/arm32/debug-8250.inc               |  41 +++
 xen/arch/arm/platforms/Makefile                 |   1 +
 xen/arch/arm/platforms/omap5.c                  | 113 ++++++++
 xen/arch/arm/time.c                             |   7 +-
 xen/drivers/char/Makefile                       |   1 +
 xen/drivers/char/ns16550.c                      |   2 +-
 xen/drivers/char/omap-uart.c                    | 358 ++++++++++++++++++++++++
 xen/include/asm-arm/platforms/omap5.h           |  38 +++
 xen/include/xen/{ns16550-uart.h => 8250-uart.h} |  98 ++++++-
 12 files changed, 651 insertions(+), 14 deletions(-)
 create mode 100644 xen/arch/arm/arm32/debug-8250.inc
 create mode 100644 xen/arch/arm/platforms/omap5.c
 create mode 100644 xen/drivers/char/omap-uart.c
 create mode 100644 xen/include/asm-arm/platforms/omap5.h
 rename xen/include/xen/{ns16550-uart.h => 8250-uart.h} (52%)
Signature · 1 line
1.8.1.4