rockchip: Use the standard debug UART on rockchip
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip
Hi Simon.
Thank you for updating this series patch, i have verified it in
evb-rk3036 board,
it worked.
Quoted 30 lines · Simon Glass
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
Kconfigoptions. The debug UART supportsprinthex8(),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 rk3036arch/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
Signature · 1 line
Lin Huang