rockchip: rk3288: Enable pre console buffer
authorJagan Teki <jagan@amarulasolutions.com>
Thu, 23 Jan 2020 14:12:19 +0000 (19:42 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Feb 2020 08:45:38 +0000 (16:45 +0800)
Enable pre console buffer for rk3288 platform.

This would help to capture the console messages prior to
the console being initialised. Enabling this would help
to capture all the console messages on video output source
like HDMI. So we can find the full console messages of
U-Boot proper on HDMI display when enabled it for RK3288
platform boards.

Buffer address used for pre console is 0x0f000000 which is
ram base plus 240MiB. right now the Allwinner SoC is using
similar computation.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/Kconfig
common/Kconfig

index 2f260a5c5f1dcfe65d9d44b8361a6ebd1e33b976..ed7514ab7596b65c60f0138ac6f62eca74c4ae63 100644 (file)
@@ -102,6 +102,7 @@ config ROCKCHIP_RK3288
        select SUPPORT_SPL
        select SPL
        select SUPPORT_TPL
+       imply PRE_CONSOLE_BUFFER
        imply ROCKCHIP_COMMON_BOARD
        imply SPL_ROCKCHIP_COMMON_BOARD
        imply TPL_CLK
index 4bc3df4e1bb2427e77867bb8efd668ed7ec6e71a..46e4193fc83a2a798ef08d2d7b1972efdb77de36 100644 (file)
@@ -567,6 +567,7 @@ config PRE_CON_BUF_ADDR
        depends on PRE_CONSOLE_BUFFER
        default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I
        default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I
+       default 0x0f000000 if ROCKCHIP_RK3288
        help
          This sets the start address of the pre-console buffer. This must
          be in available memory and is accessed before relocation and