public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip
@ 2015-12-14  4:36 Simon Glass
  2015-12-14  4:36 ` [U-Boot] [PATCH 1/3] dm: serial: Allow the UART driver to be dropped from the image Simon Glass
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Simon Glass @ 2015-12-14  4:36 UTC (permalink / raw)
  To: u-boot

The RK3036 has only 8KB of RAM available for SPL. At present it uses its own
debug UART code.

By allowing the ns16550 driver to provide a debug UART without providing a
full serial driver, we can enable a UART with a very small overhead. This
requires addition Kconfig options. The debug UART supports printhex8(),
printascii() and a few other functions.

The root driver and uclass are pulled in by this series, but their size is
very small. It would possible to drop these by disabling CONFIG_DM_SERIAL.
However the ns16550 driver makes this hard, due to it supporting operation
without driver model, and operating differently in this case.


Simon Glass (3):
  dm: serial: Allow the UART driver to be dropped from the image
  dm: ns16550: Allow the driver to be omitted if requested
  rockchip: Use the debug UART on rk3036

 arch/arm/mach-rockchip/Makefile           |  1 -
 arch/arm/mach-rockchip/rk3036-board-spl.c |  9 ++++-
 arch/arm/mach-rockchip/rk_early_print.c   | 63 -------------------------------
 configs/evb-rk3036_defconfig              |  6 +++
 drivers/serial/Kconfig                    | 20 ++++++++++
 drivers/serial/ns16550.c                  |  2 +
 drivers/serial/serial-uclass.c            |  2 +
 include/configs/rk3036_common.h           |  2 +
 8 files changed, 40 insertions(+), 65 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/rk_early_print.c

-- 
2.6.0.rc2.230.g3dd15c0

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

end of thread, other threads:[~2015-12-19 22:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14  4:36 [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip Simon Glass
2015-12-14  4:36 ` [U-Boot] [PATCH 1/3] dm: serial: Allow the UART driver to be dropped from the image Simon Glass
2015-12-14 12:53   ` Thomas Chou
2015-12-19 22:23   ` Simon Glass
2015-12-14  4:36 ` [U-Boot] [PATCH 2/3] dm: ns16550: Allow the driver to be omitted if requested Simon Glass
2015-12-14 12:53   ` Thomas Chou
2015-12-19 22:23     ` Simon Glass
2015-12-14  4:37 ` [U-Boot] [PATCH 3/3] rockchip: Use the debug UART on rk3036 Simon Glass
2015-12-14 12:53   ` Thomas Chou
2015-12-19 22:23     ` Simon Glass
2015-12-14  6:26 ` [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip hl
2015-12-14 22:14   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox