xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Chen Baozi <baozich@gmail.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	Julien Grall <julien.grall@linaro.org>
Cc: Chen Baozi <baozich@gmail.com>, xen-devel@lists.xen.org
Subject: [PATCHv2 0/5] Add UART support and arch timer initialization for OMAP5
Date: Wed,  7 Aug 2013 20:31:19 +0800	[thread overview]
Message-ID: <1375878685-24453-1-git-send-email-baozich@gmail.com> (raw)

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 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                  |   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%)

-- 
1.8.1.4

             reply	other threads:[~2013-08-07 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07 12:31 Chen Baozi [this message]
2013-08-07 12:31 ` [PATCHv2 1/5] xen: rename ns16550-uart.h to 8250-uart.h and fix some typos Chen Baozi
2013-08-07 12:31 ` [PATCHv2 2/5] xen/arm: add 8250 compatible UART support for early_printk Chen Baozi
2013-08-07 12:31 ` [PATCH 2/5] xen/arm: add OMAP5432 " Chen Baozi
2013-08-07 12:40   ` Chen Baozi
2013-08-07 12:44     ` Ian Campbell
2013-08-07 12:46       ` Chen Baozi
2013-08-07 12:49         ` Julien Grall
2013-08-07 12:31 ` [PATCHv2 3/5] xen/arm: Add the new OMAP UART driver Chen Baozi
2013-08-07 12:31 ` [PATCHv2 4/5] xen/arm: Introduce platform recognition codes for the OMAP5 Chen Baozi
2013-08-07 12:31 ` [PATCHv2 5/5] xen/arm: Add OMAP5 architected timer initialization codes Chen Baozi
  -- strict thread matches above, loose matches on Subject: below --
2013-08-07 13:14 [PATCHv2 0/5] Add UART support and arch timer initialization for OMAP5 Chen Baozi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375878685-24453-1-git-send-email-baozich@gmail.com \
    --to=baozich@gmail.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).