All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Add UART support and arch timer initialization for OMAP5
@ 2013-08-07 14:18 Chen Baozi
  2013-08-07 14:18 ` [PATCH v3 1/5] xen: rename ns16550-uart.h to 8250-uart.h and fix some typos Chen Baozi
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Chen Baozi @ 2013-08-07 14:18 UTC (permalink / raw)
  To: Ian Campbell, Julien Grall; +Cc: Chen Baozi, xen-devel

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.

v3 <- v2:
- [3/5] Use bool_t as the return type of dt_property_read_u32.
- [3/5] Use sizeof(*out_value) instead of hardcoded value in dt_property_read_u32.
- [3/5] Fix some coding-style problems and some typos.

v2 <- v1:
- [2/5] Add early printk support for sun6i.

- [3/5] Introduce dt_property_read_u32() helper to get clock-frequency.
- [3/5] Use ioreadl/iowritel instead of uart->regs[...] in OMAP UART driver.
- [3/5] Change do-while structure to while in OMAP UART interrupt handler.
- [3/5] Use hardcoded value when setting up OMAP UART.
- [3/5] Won't enable IRQ if setup failed in init_postirq().
- [3/5] Fix coding-style problems and some typos.
- [3/5] Remove unnecessary define.

- [4/5] Remove the macros that would be used in future.

- [5/5] Use dt_property_read_u32() helper to get clock-frequency.
- [5/5] Remove unused define.

Chen Baozi (5):
  xen: rename ns16550-uart.h to 8250-uart.h and fix some typos
  xen/arm: add 8250 compatible 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                  |   2 +
 xen/arch/arm/Rules.mk                           |   8 +
 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/common/device_tree.c                        |  15 +
 xen/drivers/char/Makefile                       |   1 +
 xen/drivers/char/ns16550.c                      |   2 +-
 xen/drivers/char/omap-uart.c                    | 352 ++++++++++++++++++++++++
 xen/include/asm-arm/platforms/omap5.h           |  25 ++
 xen/include/xen/{ns16550-uart.h => 8250-uart.h} |  80 +++++-
 xen/include/xen/device_tree.h                   |   6 +
 14 files changed, 640 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} (60%)

-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-08-08 10:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-07 14:18 [PATCH v3 0/5] Add UART support and arch timer initialization for OMAP5 Chen Baozi
2013-08-07 14:18 ` [PATCH v3 1/5] xen: rename ns16550-uart.h to 8250-uart.h and fix some typos Chen Baozi
2013-08-07 16:53   ` Keir Fraser
2013-08-07 14:18 ` [PATCH v3 2/5] xen/arm: add 8250 compatible UART support for early_printk Chen Baozi
2013-08-07 14:18 ` [PATCH v3 3/5] xen/arm: Add the new OMAP UART driver Chen Baozi
2013-08-07 17:12   ` Julien Grall
2013-08-07 14:18 ` [PATCH v3 4/5] xen/arm: Introduce platform recognition codes for the OMAP5 Chen Baozi
2013-08-07 16:59   ` Julien Grall
2013-08-07 14:18 ` [PATCH v3 5/5] xen/arm: Add OMAP5 architected timer initialization codes Chen Baozi
2013-08-07 17:05   ` Julien Grall
2013-08-08  8:31   ` Andrii Anisov
2013-08-08  8:58     ` Chen Baozi
2013-08-08 10:12       ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.