[PATCH v2 0/5] Rockchip: Allow to silent TPL/SPL debug console

Lukasz Czechowski lukasz.czechowski at thaumatec.com
Tue Sep 3 18:38:53 CEST 2024


Currently it is not possible to completely silent the debug console
in i.e. PX30, what might be required in some embedded devices
Disabling DEBUG_UART results in errors, due to missing symbols.
In particular, rockchip sdram driver performs calls to debug_uart
functions (i.e. printascii), defined directly in serial driver.
This patch series fixes the dependencies in Kconfig and provides
dummy implementation of debug_uart functions that are linked in case
serial driver is not used.

changes in v2:
 - Update commit titles
 - Create separate SPL and TPL symbols for RAM_ROCKCHIP_DEBUG

Lukasz Czechowski (5):
  debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART
    is not set
  ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG
  ram: rockchip: Add separate RAM_ROCKCHIP_DEBUG config for TPL/SPL
  rockchip: px30: Weaken dependency TPL/SPL serial
  rockchip: px30: Fix hard dependency to DEBUG_UART_BOARD_INIT

 arch/arm/mach-rockchip/Kconfig            |  5 ++---
 configs/anbernic-rgxx3-rk3566_defconfig   |  1 +
 configs/neu2-io-rv1126_defconfig          |  2 ++
 configs/roc-pc-mezzanine-rk3399_defconfig |  2 ++
 configs/roc-pc-rk3399_defconfig           |  2 ++
 configs/rock-pi-n10-rk3399pro_defconfig   |  2 ++
 configs/sonoff-ihost-rv1126_defconfig     |  2 ++
 drivers/ram/rockchip/Kconfig              | 25 +++++++++++++++++++++++
 drivers/ram/rockchip/sdram_common.c       |  2 +-
 drivers/ram/rockchip/sdram_rk3399.c       |  4 ++--
 drivers/ram/rockchip/sdram_rv1126.c       | 10 ++++-----
 include/debug_uart.h                      | 16 +++++++++++++++
 12 files changed, 62 insertions(+), 11 deletions(-)

-- 
2.43.0



More information about the U-Boot mailing list