rockchip: SoC info and reset cause printouts
Subsystems (5)
cover rockchip: SoC info and reset cause printouts
Looking to provide a way to print reset cause on a board equipped with a PX30 SoC I ran into the following existing issues related to Rockchip SoCs:
1. It is not possible to select DISPLAY_CPUINFO configuration option with ARCH_ROCKCHIP, except for RK3399 RK3288 RK3568 RK3588 SoCs, due to incomplete definition of type 'struct rockchip_cru' caused by Rockchip common implementation of print_cpuinfo() function: see 0f9872c4db11 for the RK3588 SoC "workaround", which I feel not optimal. Note that DISPLAY_CPUINFO has default y if ARM; therefore, it is deselected in each Rockchip defconfig except for listed SoCs.
2. It is not possible to deselect DISPLAY_CPUINFO configuration option with TARGET_ROC_PC_RK3399 due to missing get_reset_cause() symbol caused by mach-rockchip/Makefile skipping cpu-info.c. I do not see how e230c579a3f6 commit separated the reset cause from displaying cpuinfo as proposed.
3. For the most recent Rockchip SoCs (RK3588 RK3576 RK3568 RK3528 RK3506 RK3308 PX30) the checkboard() function is implemented at mach level to print SoC information: it overrides the weak empty implementation called by show_board_info() when DISPLAY_BOARDINFO(_LATE) option is selected.
Most of the other machs do not provide a checkboard() implementation leaving symbol available for overriding at board level. I did not find any "regulatory" definition in the documentation, but SoC info sounds to me more related to CPUINFO than to BOARDINFO, and other machs approach in my opinion seems more consistent with the function and configuration option names (checkboard and DISPLAY_BOARDINFO). Moreover, this approach has the advantage of allowing each board to implement its own checkboard() if needed (other hooks exist for board specific printout, of course).
4. Implementation of get_reset_cause() cannot be common in Rockchip mach due to different CRU_GLB_RST_ST register definitions from SoC to SoC:
RK3288 and RK3399 share the same one, but RK3568 and RK3588 ones have more bit flags defined (and not all of them seem mutually exclusive), and PX30 and RK3308 common one differs again having WDT and TSADC bit flags swapped.
Here is my proposal, awaiting your comments and feedback:
1. Create a Rockchip common print_cpuinfo() suitable for any SoC/board, making possible DISPLAY_CPUINFO selection without build issues.
2. Avoid DISPLAY_CPUINFO deselection causes build issues for any board.
3. Make print_cpuinfo() to execute code that is currently in function named checkboard() at SoC level (if implemented), which prints more info than CONFIG_SYS_SOC. Of course, keep printing CONFIG_SYS_SOC if function is unavailable and on returning error.
4. Make print_cpuinfo() to execute code to get the SoC reset cause and to print its description if the reset cause is available.
5. Avoid DISPLAY_BOARDINFO(_LATE) printing the same SoC info now printed by DISPLAY_CPUINFO too: it seems redundant and quite misleading. This makes checkboard() implementation at Rockchip mach level unnecessary:
remove it and leave the overriding option available for board level implementation if needed.
6. Select DISPLAY_CPUINFO in all Rockchip board configurations related to PX30 RK3308 and any RK35xx (all the SoCs that were providing a checkboard() implementation) that already have the DISPLAY_BOARDINFO and/or the DISPLAY_BOARDINFO_LATE option selected, to keep SoC info printout. BTW they are all of PX30 RK3308 and RK35xx board configs.
The whole series has been built with buildman for all of the involved board configurations, i.e. those related to PX30 RK3288 RK3308 RK3399 RK35xx.
---
Massimo Pegorer (11):
arm: rockchip: include SoC-specific CRU header file
rockchip: cru: move code from header to source file
rockchip: cru: remove unnecessary common cru.h file
rockchip: cru: improve and simplify reset cause handling
arm: rockchip: support DISPLAY_CPUINFO on all Rockchip SoC
arm: rockchip: unbind cpu-info.c from DISPLAY_CPUINFO
arm: rockchip: print SoC detailed info with DISPLAY_CPUINFO
arm: rockchip: print reset cause only when available
arm: rockchip: do not print SoC info with DISPLAY_BOARDINFO
configs: rockchip: resync Anbernic RG-DS with savedefconfig
configs: rockchip: add DISPLAY_CPUINFO to keep SoC info print
arch/arm/include/asm/arch-rockchip/clock.h | 11 +++++ arch/arm/include/asm/arch-rockchip/cru.h | 39 ---------------- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 + arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach-rockchip/cpu-info.c | 61 ++++++++++++------------- arch/arm/mach-rockchip/px30/px30.c | 12 ++--- arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +- arch/arm/mach-rockchip/rk3308/rk3308.c | 2 +- arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- arch/arm/mach-rockchip/rk3506/rk3506.c | 10 ++-- arch/arm/mach-rockchip/rk3528/rk3528.c | 10 ++-- arch/arm/mach-rockchip/rk3568/clk_rk3568.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3568/rk3568.c | 12 ++--- arch/arm/mach-rockchip/rk3576/rk3576.c | 10 ++-- arch/arm/mach-rockchip/rk3588/clk_rk3588.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3588/rk3588.c | 10 ++-- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 4 +- configs/9tripod-x3568-v4-rk3568_defconfig | 1 - configs/anbernic-rg-ds-rk3568_defconfig | 6 --- configs/anbernic-rgxx3-rk3566_defconfig | 1 - configs/bpi-r2-pro-rk3568_defconfig | 1 - configs/cm3588-nas-rk3588_defconfig | 1 - configs/coolpi-4b-rk3588s_defconfig | 1 - configs/coolpi-cm5-evb-rk3588_defconfig | 1 - configs/coolpi-cm5-genbook-rk3588_defconfig | 1 - configs/easepi-r1-rk3568_defconfig | 1 - configs/evb-px30_defconfig | 1 - configs/evb-rk3308_defconfig | 1 - configs/evb-rk3568_defconfig | 1 - configs/evb-rk3588_defconfig | 1 - configs/fastrhino-r66s-rk3568_defconfig | 1 - configs/firefly-px30_defconfig | 1 - configs/gameforce-ace-rk3588s_defconfig | 1 - configs/generic-rk3528_defconfig | 1 - configs/generic-rk3568_defconfig | 1 - configs/generic-rk3576_defconfig | 1 - configs/generic-rk3588_defconfig | 1 - configs/jaguar-rk3588_defconfig | 1 - configs/khadas-edge2-rk3588s_defconfig | 1 - configs/lckfb-tspi-rk3566_defconfig | 1 - configs/lubancat-2-rk3568_defconfig | 1 - configs/mnt-reform2-rk3588_defconfig | 1 - configs/nanopc-t6-rk3588_defconfig | 1 - configs/nanopi-m5-rk3576_defconfig | 1 - configs/nanopi-r3s-rk3566_defconfig | 1 - configs/nanopi-r5c-rk3568_defconfig | 1 - configs/nanopi-r5s-rk3568_defconfig | 1 - configs/nanopi-r6c-rk3588s_defconfig | 1 - configs/nanopi-r6s-rk3588s_defconfig | 1 - configs/nanopi-r76s-rk3576_defconfig | 1 - configs/nanopi-zero2-rk3528_defconfig | 1 - configs/neu6a-io-rk3588_defconfig | 1 - configs/neu6b-io-rk3588_defconfig | 1 - configs/nova-rk3588s_defconfig | 1 - configs/odroid-go2_defconfig | 1 - configs/odroid-m1-rk3568_defconfig | 1 - configs/odroid-m1s-rk3566_defconfig | 1 - configs/odroid-m2-rk3588s_defconfig | 1 - configs/omni3576-rk3576_defconfig | 1 - configs/orangepi-3b-rk3566_defconfig | 1 - configs/orangepi-5-max-rk3588_defconfig | 1 - configs/orangepi-5-plus-rk3588_defconfig | 1 - configs/orangepi-5-rk3588s_defconfig | 1 - configs/orangepi-5-ultra-rk3588_defconfig | 1 - configs/pinetab2-rk3566_defconfig | 1 - configs/powkiddy-x55-rk3566_defconfig | 1 - configs/px30-core-ctouch2-of10-px30_defconfig | 1 - configs/px30-core-ctouch2-px30_defconfig | 1 - configs/px30-core-edimm2.2-px30_defconfig | 1 - configs/qnap-ts433-rk3568_defconfig | 1 - configs/quartz64-a-rk3566_defconfig | 1 - configs/quartz64-b-rk3566_defconfig | 1 - configs/quartzpro64-rk3588_defconfig | 1 - configs/radxa-cm3-io-rk3566_defconfig | 1 - configs/radxa-e20c-rk3528_defconfig | 1 - configs/radxa-e25-rk3568_defconfig | 1 - configs/radxa-zero-3-rk3566_defconfig | 1 - configs/ringneck-px30_defconfig | 1 - configs/roc-cc-rk3308_defconfig | 1 - configs/roc-pc-rk3576_defconfig | 1 - configs/roc-pc-rk3588s_defconfig | 1 - configs/rock-2-rk3528_defconfig | 1 - configs/rock-3a-rk3568_defconfig | 1 - configs/rock-3b-rk3568_defconfig | 1 - configs/rock-3c-rk3566_defconfig | 1 - configs/rock-4d-rk3576_defconfig | 1 - configs/rock-5-itx-rk3588_defconfig | 1 - configs/rock-5c-rk3588s_defconfig | 1 - configs/rock-pi-s-rk3308_defconfig | 1 - configs/rock-s0-rk3308_defconfig | 1 - configs/rock5a-rk3588s_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/sige1-rk3528_defconfig | 1 - configs/sige5-rk3576_defconfig | 1 - configs/sige7-rk3588_defconfig | 1 - configs/soquartz-blade-rk3566_defconfig | 1 - configs/soquartz-cm4-rk3566_defconfig | 1 - configs/soquartz-model-a-rk3566_defconfig | 1 - configs/tiger-rk3588_defconfig | 1 - configs/toybrick-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - drivers/clk/rockchip/clk_rk3288.c | 2 +- drivers/clk/rockchip/clk_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/video/rockchip/rk3288_mipi.c | 2 +- drivers/video/rockchip/rk3399_mipi.c | 2 +- drivers/video/rockchip/rk_mipi.c | 2 +- 110 files changed, 229 insertions(+), 206 deletions(-)
---
base-commit: b8e0086b585791a771416ce51b58ce0097bc0b28
change-id: 20260908-reset-e69a40d3f5c6
Best regards,
Signature · 1 line
Massimo Pegorer <[email protected]>
RFC PATCH 1/11 arm: rockchip: include SoC-specific CRU header file
Modified ones are SoC-specific source files that do not need to include Rockchip mach common cru.h header file: indeed, SoC-specific CRU header files are enough, and tighten to the effective needs, thus preferable.
Partly reverts 'commit b52a199e323e ("arm: rockchip: Add common cru.h")'
--- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 + arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 2 +- arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +- arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 2 +- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- drivers/clk/rockchip/clk_rk3288.c | 2 +- drivers/clk/rockchip/clk_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/video/rockchip/rk3288_mipi.c | 2 +- drivers/video/rockchip/rk3399_mipi.c | 2 +- drivers/video/rockchip/rk_mipi.c | 2 +- 12 files changed, 12 insertions(+), 11 deletions(-)
arch/arm/include/asm/arch-rockchip/cru_rk3399.h +1 -0
@@ -64,6 +64,7 @@ struct rockchip_cru {u32 sdio1_con[2 ]; };check_member (rockchip_cru, sdio1_con[1 ],0x594 ); +#define MHz 1000000#define KHz 1000#define OSC_HZ (24*MHz)#define LPLL_HZ (600*MHz)
arch/arm/mach-rockchip/rk3288/clk_rk3288.c +1 -1
@@ -7,7 +7,7 @@#include <dm.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3288.h> #include <linux/err.h> int rockchip_get_clk (struct udevice **devp)
arch/arm/mach-rockchip/rk3288/rk3288.c +1 -1
@@ -13,7 +13,7 @@#include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cpu_rk3288.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3288.h> #include <asm/arch-rockchip/hardware.h> #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/pmu_rk3288.h>
arch/arm/mach-rockchip/rk3399/clk_rk3399.c +1 -1
@@ -7,7 +7,7 @@#include <dm.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <linux/err.h> static int rockchip_get_cruclk (struct udevice **devp)
arch/arm/mach-rockchip/rk3399/rk3399.c +1 -1
@@ -12,7 +12,7 @@#include <asm/armv8/mmu.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <asm/arch-rockchip/gpio.h> #include <asm/arch-rockchip/grf_rk3399.h> #include <asm/arch-rockchip/hardware.h>
drivers/clk/rockchip/clk_rk3288.c +1 -1
@@ -15,7 +15,7 @@#include <syscon.h> #include <asm/global_data.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3288.h> #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/hardware.h> #include <dt-bindings/clock/rk3288-cru.h>
drivers/clk/rockchip/clk_rk3399.c +1 -1
@@ -14,7 +14,7 @@#include <syscon.h> #include <bitfield.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <asm/arch-rockchip/hardware.h> #include <asm/global_data.h> #include <dm/device-internal.h>
drivers/ram/rockchip/sdram_rk3288.c +1 -1
@@ -18,7 +18,7 @@#include <regmap.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3288.h> #include <asm/arch-rockchip/ddr_rk3288.h> #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/hardware.h>
drivers/ram/rockchip/sdram_rk3399.c +1 -1
@@ -16,7 +16,7 @@#include <spl.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <asm/arch-rockchip/grf_rk3399.h> #include <asm/arch-rockchip/pmu_rk3399.h> #include <asm/arch-rockchip/hardware.h>
drivers/video/rockchip/rk3288_mipi.c +1 -1
@@ -17,7 +17,7 @@#include <linux/err.h> #include <linux/kernel.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3288.h> #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/hardware.h> #include <asm/arch-rockchip/rockchip_mipi_dsi.h>
drivers/video/rockchip/rk3399_mipi.c +1 -1
@@ -17,7 +17,7 @@#include <linux/err.h> #include <linux/kernel.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <asm/arch-rockchip/grf_rk3399.h> #include <asm/arch-rockchip/hardware.h> #include <asm/arch-rockchip/rockchip_mipi_dsi.h>
drivers/video/rockchip/rk_mipi.c +1 -1
@@ -17,7 +17,7 @@#include <dm/uclass-internal.h> #include <linux/kernel.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/cru_rk3399.h> #include <asm/arch-rockchip/grf_rk3399.h> #include <asm/arch-rockchip/rockchip_mipi_dsi.h>
Signature · 1 line
2.34.1
RFC PATCH 2/11 rockchip: cru: move code from header to source file
In reply to Massimo PegorerMost of the lines in cru.h are needed only by cpu-info.c source file, therefore there is no reason to keep them in the header file and share. Among them are the include statements of SoC-specific CRU header files that caused SoC-specific dependencies to be spread around.
--- arch/arm/include/asm/arch-rockchip/cru.h | 27 --------------------------- arch/arm/mach-rockchip/cpu-info.c | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 27 deletions(-)
arch/arm/include/asm/arch-rockchip/cru.h +0 -27
@@ -7,33 +7,6 @@#ifndef _ROCKCHIP_CLOCK_H#define _ROCKCHIP_CLOCK_H -#ifndef __ASSEMBLY__ -#include <linux/bitops.h> -#endif - -#if defined(CONFIG_ROCKCHIP_RK3288 ) -# include <asm/arch-rockchip/cru_rk3288.h> -#elif defined(CONFIG_ROCKCHIP_RK3399 ) -# include <asm/arch-rockchip/cru_rk3399.h> -#elif defined(CONFIG_ROCKCHIP_RK3568 ) -#include <asm/arch-rockchip/cru_rk3568.h> -#elif defined(CONFIG_ROCKCHIP_RK3588 ) -#include <asm/arch-rockchip/cru_rk3588.h> -#endif - -/* CRU_GLB_RST_ST */ -enum { -GLB_POR_RST , -FST_GLB_RST_ST =BIT (0 ), -SND_GLB_RST_ST =BIT (1 ), -FST_GLB_TSADC_RST_ST =BIT (2 ), -SND_GLB_TSADC_RST_ST =BIT (3 ), -FST_GLB_WDT_RST_ST =BIT (4 ), -SND_GLB_WDT_RST_ST =BIT (5 ), -}; - -#define MHz 1000000 -char *get_reset_cause (void );#endif /* _ROCKCHIP_CLOCK_H */
arch/arm/mach-rockchip/cpu-info.c +21 -0
@@ -11,6 +11,27 @@#include <asm/arch-rockchip/hardware.h> #include <linux/err.h> +#if defined(CONFIG_ROCKCHIP_RK3288 ) +# include <asm/arch-rockchip/cru_rk3288.h> +#elif defined(CONFIG_ROCKCHIP_RK3399 ) +# include <asm/arch-rockchip/cru_rk3399.h> +#elif defined(CONFIG_ROCKCHIP_RK3568 ) +#include <asm/arch-rockchip/cru_rk3568.h> +#elif defined(CONFIG_ROCKCHIP_RK3588 ) +#include <asm/arch-rockchip/cru_rk3588.h> +#endif + +/* CRU_GLB_RST_ST */ +enum { +GLB_POR_RST , +FST_GLB_RST_ST =BIT (0 ), +SND_GLB_RST_ST =BIT (1 ), +FST_GLB_TSADC_RST_ST =BIT (2 ), +SND_GLB_TSADC_RST_ST =BIT (3 ), +FST_GLB_WDT_RST_ST =BIT (4 ), +SND_GLB_WDT_RST_ST =BIT (5 ), +}; +char *get_reset_cause (void ) {struct rockchip_cru *cru =rockchip_get_cru ();
Signature · 1 line
2.34.1
RFC PATCH 3/11 rockchip: cru: remove unnecessary common cru.h file
In reply to Massimo PegorerMove the only remaining function get_reset_cause() from cru.h header file to clock.h which already provides the whole common interface to Rockchip SoC CRU (Clock and Reset Unit). And remove cru.h file.
--- arch/arm/include/asm/arch-rockchip/clock.h | 2 ++ arch/arm/include/asm/arch-rockchip/cru.h | 12 ------------ arch/arm/mach-rockchip/cpu-info.c | 1 - board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-)
arch/arm/include/asm/arch-rockchip/clock.h +2 -0
@@ -194,6 +194,8 @@ void rk3288_clk_configure_cpu(struct rockchip_cru *cru, struct rk3288_grf *grf);int rockchip_get_clk (struct udevice **devp); +char *get_reset_cause (void ); +/* * rockchip_reset_bind() - Bind soft reset device as child of clock device *
arch/arm/include/asm/arch-rockchip/cru.h deleted +0 -12
@@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ -/* -* (C) Copyright 2019 Amarula Solutions. -* Author: Jagan Teki <[email protected]> -*/ - -#ifndef _ROCKCHIP_CLOCK_H -#define _ROCKCHIP_CLOCK_H - -char *get_reset_cause (void ); - -#endif /* _ROCKCHIP_CLOCK_H */
arch/arm/mach-rockchip/cpu-info.c +0 -1
@@ -7,7 +7,6 @@#include <env.h> #include <init.h> #include <asm/arch-rockchip/clock.h> -#include <asm/arch-rockchip/cru.h> #include <asm/arch-rockchip/hardware.h> #include <linux/err.h>
board/firefly/roc-pc-rk3399/roc-pc-rk3399.c +1 -1
@@ -13,7 +13,7 @@#include <asm/global_data.h> #include <asm/io.h> -#include <asm/arch-rockchip/cru.h> +#include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/gpio.h> #include <asm/arch-rockchip/grf_rk3399.h>
Signature · 1 line
2.34.1
RFC PATCH 4/11 rockchip: cru: improve and simplify reset cause handling
In reply to Massimo PegorerSplit reset cause code into two functions: the first just returns an enum identifier of the cause, to be used wherever needed (such as in roc-pc-rk3399 board level code to detect a POR); the second returns the reset cause string description used just by print_cpuinfo() and therefore static and bound to CONFIG_DISPAY_CPUINFO.
--- arch/arm/include/asm/arch-rockchip/clock.h | 11 +++++++- arch/arm/mach-rockchip/cpu-info.c | 41 ++++++++++++++++++----------- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 2 +- 3 files changed, 37 insertions(+), 17 deletions(-)
arch/arm/include/asm/arch-rockchip/clock.h +10 -1
@@ -194,7 +194,16 @@ void rk3288_clk_configure_cpu(struct rockchip_cru *cru, struct rk3288_grf *grf);int rockchip_get_clk (struct udevice **devp); -char *get_reset_cause (void ); +enum rockchip_rst_cause { +RST_CAUSE_UNAVAILABLE , +RST_CAUSE_POR , +RST_CAUSE_REG , +RST_CAUSE_THERMAL , +RST_CAUSE_WDOG , +RST_CAUSE_UNKNOWN , +}; + +enum rockchip_rst_cause rockchip_get_reset_cause (void );/* * rockchip_reset_bind() - Bind soft reset device as child of clock device
arch/arm/mach-rockchip/cpu-info.c +26 -15
67 lines not on this page · raw message
board/firefly/roc-pc-rk3399/roc-pc-rk3399.c +1 -1
@@ -50,7 +50,7 @@ void led_setup(void) press_pwr_key = true; } -if (press_pwr_key && !strcmp (get_reset_cause (),"POR" )) { +if (press_pwr_key &&rockchip_get_reset_cause () ==RST_CAUSE_POR ) {spl_gpio_output (gpio0,GPIO (BANK_A ,2 ),1 ); spl_gpio_set_pull(&pmugrf->gpio0_p, GPIO(BANK_A, 5),
Signature · 1 line
2.34.1
RFC PATCH 5/11 arm: rockchip: support DISPLAY_CPUINFO on all Rockchip SoC
In reply to Massimo PegorerMove rockchip_get_reset_cause() implementation to SoC-specific source files, leaving a dummy weak common implementation in cpu-info.c file:
an effective common implementation is not feasible due SoC differences. BTW the existing ones for RK3568 and RK3588 need to be fixed/improved because their CRU_GLB_RST_ST registers differ from the one common to RK3288 and RK3399 on which the implementation is based.
Moreover, now all the Rockchip SoC board configurations can select the DISPLAY_CPUINFO config option and compile cpu-info.c successfully which provides print_cpuinfo(). Previously, boards with SoC other than RK3288 RK3399 RK3568 and RK3588 could not have DISPLAY_CPUINFO selected.
--- arch/arm/mach-rockchip/cpu-info.c | 44 ++---------------------------- arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 35 ++++++++++++++++++++++++ arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 35 ++++++++++++++++++++++++ arch/arm/mach-rockchip/rk3568/clk_rk3568.c | 35 ++++++++++++++++++++++++ arch/arm/mach-rockchip/rk3588/clk_rk3588.c | 35 ++++++++++++++++++++++++ 5 files changed, 142 insertions(+), 42 deletions(-)
arch/arm/mach-rockchip/cpu-info.c +2 -42
@@ -10,49 +10,9 @@#include <asm/arch-rockchip/hardware.h> #include <linux/err.h> -#if defined(CONFIG_ROCKCHIP_RK3288 ) -# include <asm/arch-rockchip/cru_rk3288.h> -#elif defined(CONFIG_ROCKCHIP_RK3399 ) -# include <asm/arch-rockchip/cru_rk3399.h> -#elif defined(CONFIG_ROCKCHIP_RK3568 ) -#include <asm/arch-rockchip/cru_rk3568.h> -#elif defined(CONFIG_ROCKCHIP_RK3588 ) -#include <asm/arch-rockchip/cru_rk3588.h> -#endif - -/* CRU_GLB_RST_ST */ -enum { -GLB_POR_RST , -FST_GLB_RST_ST =BIT (0 ), -SND_GLB_RST_ST =BIT (1 ), -FST_GLB_TSADC_RST_ST =BIT (2 ), -SND_GLB_TSADC_RST_ST =BIT (3 ), -FST_GLB_WDT_RST_ST =BIT (4 ), -SND_GLB_WDT_RST_ST =BIT (5 ), -}; - -enum rockchip_rst_cause rockchip_get_reset_cause (void ) +__weak enum rockchip_rst_cause rockchip_get_reset_cause (void ) { -struct rockchip_cru *cru =rockchip_get_cru (); - -if (IS_ERR (cru)) -return RST_CAUSE_UNAVAILABLE ; - -switch (cru->glb_rst_st) { -case GLB_POR_RST : -return RST_CAUSE_POR ; -case FST_GLB_RST_ST : -case SND_GLB_RST_ST : -return RST_CAUSE_REG ; -case FST_GLB_TSADC_RST_ST : -case SND_GLB_TSADC_RST_ST : -return RST_CAUSE_THERMAL ; -case FST_GLB_WDT_RST_ST : -case SND_GLB_WDT_RST_ST : -return RST_CAUSE_WDOG ; - } - -return RST_CAUSE_UNKNOWN ; +return RST_CAUSE_UNAVAILABLE ; }#if IS_ENABLED (CONFIG_DISPLAY_CPUINFO )
arch/arm/mach-rockchip/rk3288/clk_rk3288.c +35 -0
@@ -30,3 +30,38 @@ void *rockchip_get_cru(void)return priv->cru; } + +/* CRU_GLB_RST_ST */ +enum { +GLB_POR_RST , +FST_GLB_RST_ST =BIT (0 ), +SND_GLB_RST_ST =BIT (1 ), +FST_GLB_TSADC_RST_ST =BIT (2 ), +SND_GLB_TSADC_RST_ST =BIT (3 ), +FST_GLB_WDT_RST_ST =BIT (4 ), +SND_GLB_WDT_RST_ST =BIT (5 ), +}; + +enum rockchip_rst_cause rockchip_get_reset_cause (void ) +{ +struct rockchip_cru *cru =rockchip_get_cru (); + +if (IS_ERR (cru)) +return RST_CAUSE_UNAVAILABLE ; + +switch (cru->glb_rst_st) { +case GLB_POR_RST : +return RST_CAUSE_POR ; +case FST_GLB_RST_ST : +case SND_GLB_RST_ST : +return RST_CAUSE_REG ; +case FST_GLB_TSADC_RST_ST : +case SND_GLB_TSADC_RST_ST : +return RST_CAUSE_THERMAL ; +case FST_GLB_WDT_RST_ST : +case SND_GLB_WDT_RST_ST : +return RST_CAUSE_WDOG ; + } + +return RST_CAUSE_UNKNOWN ; +}
arch/arm/mach-rockchip/rk3399/clk_rk3399.c +35 -0
@@ -51,3 +51,38 @@ void *rockchip_get_pmucru(void)return priv->pmucru; } + +/* CRU_GLB_RST_ST */ +enum { +GLB_POR_RST , +FST_GLB_RST_ST =BIT (0 ), +SND_GLB_RST_ST =BIT (1 ), +FST_GLB_TSADC_RST_ST =BIT (2 ), +SND_GLB_TSADC_RST_ST =BIT (3 ), +FST_GLB_WDT_RST_ST =BIT (4 ), +SND_GLB_WDT_RST_ST =BIT (5 ), +}; + +enum rockchip_rst_cause rockchip_get_reset_cause (void ) +{ +struct rockchip_cru *cru =rockchip_get_cru (); + +if (IS_ERR (cru)) +return RST_CAUSE_UNAVAILABLE ; + +switch (cru->glb_rst_st) { +case GLB_POR_RST : +return RST_CAUSE_POR ; +case FST_GLB_RST_ST : +case SND_GLB_RST_ST : +return RST_CAUSE_REG ; +case FST_GLB_TSADC_RST_ST : +case SND_GLB_TSADC_RST_ST : +return RST_CAUSE_THERMAL ; +case FST_GLB_WDT_RST_ST : +case SND_GLB_WDT_RST_ST : +return RST_CAUSE_WDOG ; + } + +return RST_CAUSE_UNKNOWN ; +}
arch/arm/mach-rockchip/rk3568/clk_rk3568.c +35 -0
@@ -50,3 +50,38 @@ void *rockchip_get_pmucru(void)return priv->pmucru; } + +/* CRU_GLB_RST_ST */ +enum { +GLB_POR_RST , +FST_GLB_RST_ST =BIT (0 ), +SND_GLB_RST_ST =BIT (1 ), +FST_GLB_TSADC_RST_ST =BIT (2 ), +SND_GLB_TSADC_RST_ST =BIT (3 ), +FST_GLB_WDT_RST_ST =BIT (4 ), +SND_GLB_WDT_RST_ST =BIT (5 ), +}; + +enum rockchip_rst_cause rockchip_get_reset_cause (void ) +{ +struct rockchip_cru *cru =rockchip_get_cru (); + +if (IS_ERR (cru)) +return RST_CAUSE_UNAVAILABLE ; + +switch (cru->glb_rst_st) { +case GLB_POR_RST : +return RST_CAUSE_POR ; +case FST_GLB_RST_ST : +case SND_GLB_RST_ST : +return RST_CAUSE_REG ; +case FST_GLB_TSADC_RST_ST : +case SND_GLB_TSADC_RST_ST : +return RST_CAUSE_THERMAL ; +case FST_GLB_WDT_RST_ST : +case SND_GLB_WDT_RST_ST : +return RST_CAUSE_WDOG ; + } + +return RST_CAUSE_UNKNOWN ; +}
arch/arm/mach-rockchip/rk3588/clk_rk3588.c +35 -0
@@ -29,3 +29,38 @@ void *rockchip_get_cru(void)return priv->cru; } + +/* CRU_GLB_RST_ST */ +enum { +GLB_POR_RST , +FST_GLB_RST_ST =BIT (0 ), +SND_GLB_RST_ST =BIT (1 ), +FST_GLB_TSADC_RST_ST =BIT (2 ), +SND_GLB_TSADC_RST_ST =BIT (3 ), +FST_GLB_WDT_RST_ST =BIT (4 ), +SND_GLB_WDT_RST_ST =BIT (5 ), +}; + +enum rockchip_rst_cause rockchip_get_reset_cause (void ) +{ +struct rockchip_cru *cru =rockchip_get_cru (); + +if (IS_ERR (cru)) +return RST_CAUSE_UNAVAILABLE ; + +switch (cru->glb_rst_st) { +case GLB_POR_RST : +return RST_CAUSE_POR ; +case FST_GLB_RST_ST : +case SND_GLB_RST_ST : +return RST_CAUSE_REG ; +case FST_GLB_TSADC_RST_ST : +case SND_GLB_TSADC_RST_ST : +return RST_CAUSE_THERMAL ; +case FST_GLB_WDT_RST_ST : +case SND_GLB_WDT_RST_ST : +return RST_CAUSE_WDOG ; + } + +return RST_CAUSE_UNKNOWN ; +}
Signature · 1 line
2.34.1
RFC PATCH 6/11 arm: rockchip: unbind cpu-info.c from DISPLAY_CPUINFO
In reply to Massimo PegorerExcept for TPL, always compile cpu-info.c file without guard by DISPLAY_CPUINFO at Makefile level, to provide at least the weak implementation of rockchip_get_reset_cause().
In this way, any code using rockchip_get_reset_cause() (weak or not) will not be broken when deselecting DISPLAY_CPUINFO. Previously, it was not possible to compile TARGET_ROC_PC_RK3399 with DISPLAY_CPUINFO deselected.
--- arch/arm/mach-rockchip/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Makefile +1 -1
@@ -26,7 +26,7 @@ obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o endif ifeq ($(CONFIG_TPL_BUILD),) -obj-$(CONFIG_DISPLAY_CPUINFO) += cpu-info.o +obj-y += cpu-info.o endif obj-$(CONFIG_$(PHASE_)RAM) += sdram.o
Signature · 1 line
2.34.1
RFC PATCH 7/11 arm: rockchip: print SoC detailed info with DISPLAY_CPUINFO
In reply to Massimo PegorerSeveral Rockchip SoCs have a specific implementation of checkboard() that prints a string with more SoC info than CONFIG_SYS_SOC: in these cases, make print_cpuinfo() call it to provide all available SoC information, and only if the function fails print CONFIG_SYS_SOC as a fallback.
Unfortunately, checkboard() is a special function used to override a weak dummy implementation and is wrapped into INITCALL macro when the DISPLAY_BOARDINFO(_LATE) config option is selected: changing it to return non-zero in case of failure is not an option, it will hang. Therefore, rename checkboard() Rockchip SoC-specific implementations to rockchip_print_soc() and change them to return zero on success and -ve on error. On the other hand provide a common checkboard() implementation, at Rockchip mach level, that wraps them (or the dummy weak one) but always returns zero.
Moreover, if DISPLAY_CPUINFO is selected, make checkboard() not to call rockchip_print_soc(): being SoC info already been printed by print_cpuinfo() it seems redundant to print these info again due to DISPLAY_BOARDINFO(_LATE) being selected too.
--- arch/arm/mach-rockchip/cpu-info.c | 18 +++++++++++++++++- arch/arm/mach-rockchip/px30/px30.c | 12 ++++++------ arch/arm/mach-rockchip/rk3308/rk3308.c | 2 +- arch/arm/mach-rockchip/rk3506/rk3506.c | 10 +++++----- arch/arm/mach-rockchip/rk3528/rk3528.c | 10 +++++----- arch/arm/mach-rockchip/rk3568/rk3568.c | 12 ++++++------ arch/arm/mach-rockchip/rk3576/rk3576.c | 10 +++++----- arch/arm/mach-rockchip/rk3588/rk3588.c | 10 +++++----- 8 files changed, 50 insertions(+), 34 deletions(-)
arch/arm/mach-rockchip/cpu-info.c +17 -1
@@ -10,6 +10,20 @@#include <asm/arch-rockchip/hardware.h> #include <linux/err.h> +__weak int rockchip_print_soc (void ) +{ +return -ENOTSUPP ; +} + +int checkboard (void ) +{ +/* Print SOC only if not already printed by CPUINFO */ +if (!IS_ENABLED (CONFIG_DISPLAY_CPUINFO )) +rockchip_print_soc (); + +return 0 ; +} +__weak enum rockchip_rst_cause rockchip_get_reset_cause (void ) {return RST_CAUSE_UNAVAILABLE ;
@@ -38,7 +52,9 @@ int print_cpuinfo(void) {const char *cause =get_reset_cause (); -printf ("SoC: Rockchip %s\n" ,CONFIG_SYS_SOC ); +if (rockchip_print_soc ()) +printf ("SoC: Rockchip %s\n" ,CONFIG_SYS_SOC ); +printf ("Reset cause: %s\n" , cause);/**
arch/arm/mach-rockchip/px30/px30.c +6 -6
@@ -453,7 +453,7 @@ void board_debug_uart_init(void)#define DDR_GRF_BASE_ADDR 0xff630000#define DDR_GRF_CON (n) (0 + (n) * 4) -int checkboard (void ) +int rockchip_print_soc (void ) {struct udevice *dev;u8 specification;
@@ -461,32 +461,32 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* base SoC: 0x26334b52 for RK3326; 0x30335850 for PX30 */ ret =misc_read (dev,0 , &base_soc,4 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; }if (base_soc !=0x26334b52 && base_soc !=0x30335850 ) {log_debug ("Could not identify SoC, got 0x%04x in OTP\n" , base_soc); -return 0 ; +return -EINVAL ; }/* SoC variant: 0x21 for PX30/PX30S/RK3326/RK3326S; 0x2b for PX30K */ ret =misc_read (dev,PX30_OTP_SPECIFICATION_OFFSET , &specification,1 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; }if (specification ==0x2b ) {
arch/arm/mach-rockchip/rk3308/rk3308.c +1 -1
@@ -152,7 +152,7 @@ int arch_cpu_init(void)#define RK3308_GRF_CHIP_ID 0xFF000800 -int checkboard (void ) +int rockchip_print_soc (void ) {u32 chip_id =readl (RK3308_GRF_CHIP_ID );
arch/arm/mach-rockchip/rk3506/rk3506.c +5 -5
@@ -83,7 +83,7 @@ void rockchip_stimer_init(void)#define RK3506_OTP_CPU_CODE_OFFSET 0x02#define RK3506_OTP_SPECIFICATION_OFFSET 0x08 -int checkboard (void ) +int rockchip_print_soc (void ) {u8 cpu_code[2 ], specification;struct udevice *dev;
@@ -91,27 +91,27 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* cpu-code: SoC model, e.g. 0x35 0x06 */ ret =misc_read (dev,RK3506_OTP_CPU_CODE_OFFSET , cpu_code,2 );if (ret <0 ) {log_debug ("Could not read cpu-code, ret=%d\n" , ret); -return 0 ; +return ret; }/* specification: SoC variant, e.g. 0xA for RK3506J */ ret =misc_read (dev,RK3506_OTP_SPECIFICATION_OFFSET , &specification,1 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; } specification &=0x1f ;
arch/arm/mach-rockchip/rk3528/rk3528.c +5 -5
@@ -104,7 +104,7 @@ void rockchip_stimer_init(void)#define RK3528_OTP_CPU_CODE_OFFSET 0x02#define RK3528_OTP_CPU_CHIP_TYPE_OFFSET 0x28 -int checkboard (void ) +int rockchip_print_soc (void ) {u8 cpu_code[2 ], chip_type;struct udevice *dev;
@@ -112,26 +112,26 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* cpu-code: SoC model, e.g. 0x35 0x28 */ ret =misc_read (dev,RK3528_OTP_CPU_CODE_OFFSET , cpu_code,2 );if (ret <0 ) {log_debug ("Could not read cpu-code, ret=%d\n" , ret); -return 0 ; +return ret; } ret =misc_read (dev,RK3528_OTP_CPU_CHIP_TYPE_OFFSET , &chip_type,1 );if (ret <0 ) {log_debug ("Could not read chip type, ret=%d\n" , ret); -return 0 ; +return ret; } suffix[0 ] = chip_type !=0x1 ?'A' :'\0' ;
arch/arm/mach-rockchip/rk3568/rk3568.c +6 -6
@@ -153,7 +153,7 @@ int arch_cpu_init(void)#define RK3568_OTP_SPECIFICATION_OFFSET 0x07#define RK3568_OTP_PERFORMANCE_OFFSET 0x22 -int checkboard (void ) +int rockchip_print_soc (void ) {u8 cpu_code[2 ], specification, package, performance;struct udevice *dev;
@@ -161,27 +161,27 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* cpu-code: SoC model, e.g. 0x35 0x66 or 0x35 0x68 */ ret =misc_read (dev,RK3568_OTP_CPU_CODE_OFFSET , cpu_code,2 );if (ret <0 ) {log_debug ("Could not read cpu-code, ret=%d\n" , ret); -return 0 ; +return ret; }/* specification: SoC variant, e.g. 0x2 for RK3568B2 and 0xA for RK3568J */ ret =misc_read (dev,RK3568_OTP_SPECIFICATION_OFFSET , &specification,1 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; }/* package: likely SoC variant revision, 0x2 for RK3568B2 */ package = specification >>5 ;
@@ -191,7 +191,7 @@ int checkboard(void) ret =misc_read (dev,RK3568_OTP_PERFORMANCE_OFFSET , &performance,1 );if (ret <0 ) {log_debug ("Could not read performance, ret=%d\n" , ret); -return 0 ; +return ret; }if (performance &0x0f ) specification =0x14 ;/* T-variant */
arch/arm/mach-rockchip/rk3576/rk3576.c +5 -5
@@ -209,7 +209,7 @@ int arch_cpu_init(void)#define RK3576_OTP_CPU_CODE_OFFSET 0x02#define RK3576_OTP_SPECIFICATION_OFFSET 0x08 -int checkboard (void ) +int rockchip_print_soc (void ) {u8 cpu_code[2 ], specification;struct udevice *dev;
@@ -217,27 +217,27 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* cpu-code: SoC model, e.g. 0x35 0x76 */ ret =misc_read (dev,RK3576_OTP_CPU_CODE_OFFSET , cpu_code,2 );if (ret <0 ) {log_debug ("Could not read cpu-code, ret=%d\n" , ret); -return 0 ; +return ret; }/* specification: SoC variant, e.g. 0xA for RK3576J */ ret =misc_read (dev,RK3576_OTP_SPECIFICATION_OFFSET , &specification,1 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; } specification &=0x1f ;
arch/arm/mach-rockchip/rk3588/rk3588.c +5 -5
@@ -270,7 +270,7 @@ int rockchip_dram_init_banksize_fixup(struct bd_info *bd)#define FAIL_RKVENC0 BIT(0)#define FAIL_RKVENC1 BIT(2) -int checkboard (void ) +int rockchip_print_soc (void ) {u8 cpu_code[2 ], specification, package;struct udevice *dev;
@@ -278,27 +278,27 @@ int checkboard(void)int ret;if (!IS_ENABLED (CONFIG_ROCKCHIP_OTP ) || !CONFIG_IS_ENABLED (MISC )) -return 0 ; +return -ENOTSUPP ; ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);if (ret) {log_debug ("Could not find otp device, ret=%d\n" , ret); -return 0 ; +return ret; }/* cpu-code: SoC model, e.g. 0x35 0x82 or 0x35 0x88 */ ret =misc_read (dev,RK3588_OTP_CPU_CODE_OFFSET , cpu_code,2 );if (ret <0 ) {log_debug ("Could not read cpu-code, ret=%d\n" , ret); -return 0 ; +return ret; }/* specification: SoC variant, e.g. 0xA for RK3588J and 0x13 for RK3588S */ ret =misc_read (dev,RK3588_OTP_SPECIFICATION_OFFSET , &specification,1 );if (ret <0 ) {log_debug ("Could not read specification, ret=%d\n" , ret); -return 0 ; +return ret; }/* package: likely SoC variant revision, 0x2 for RK3588S2 */ package = specification >>5 ;
Signature · 1 line
2.34.1
RFC PATCH 8/11 arm: rockchip: print reset cause only when available
In reply to Massimo PegorerDo not print the useless "Reset cause: <NULL>" line when reset cause is unavailable due to missing overriding implementation or error. On the other hand, I always feel uncomfortable for providing - knowingly - a NULL pointer as printf() argument for a '%s' conversion specifier.
--- arch/arm/mach-rockchip/cpu-info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-rockchip/cpu-info.c +2 -1
@@ -55,7 +55,8 @@ int print_cpuinfo(void)if (rockchip_print_soc ())printf ("SoC: Rockchip %s\n" ,CONFIG_SYS_SOC ); -printf ("Reset cause: %s\n" , cause); +if (cause) +printf ("Reset cause: %s\n" , cause);/** * reset_reason env is used by rk3288, due to special use case
Signature · 1 line
2.34.1
RFC PATCH 9/11 arm: rockchip: do not print SoC info with DISPLAY_BOARDINFO
In reply to Massimo PegorerDiscard checkboard() implementation in Rockchip mach: DISPLAY_CPUINFO prints SoC info; therefore, having DISPLAY_BOARDINFO(_LATE) to print it too, as an alternative, seems redundant and misleading. Moreover, it seems preferable not to implement checkboard() at mach level, leaving the overriding available for board level implementation if needed. BTW this is the approach taken by most of the other mach.
Side effect: Rockchip board configurations related to PX30 RK3308 or any RK35xx having DISPLAY_BOARDINFO(_LATE) option selected but not DISPLAY_CPUINFO one, must select the latter too to keep printing SoC info.
--- arch/arm/mach-rockchip/cpu-info.c | 9 --------- 1 file changed, 9 deletions(-)
arch/arm/mach-rockchip/cpu-info.c +0 -9
@@ -15,15 +15,6 @@ __weak int rockchip_print_soc(void)return -ENOTSUPP ; } -int checkboard (void ) -{ -/* Print SOC only if not already printed by CPUINFO */ -if (!IS_ENABLED (CONFIG_DISPLAY_CPUINFO )) -rockchip_print_soc (); - -return 0 ; -} -__weak enum rockchip_rst_cause rockchip_get_reset_cause (void ) {return RST_CAUSE_UNAVAILABLE ;
Signature · 1 line
2.34.1
RFC PATCH 10/11 configs: rockchip: resync Anbernic RG-DS with savedefconfig
In reply to Massimo PegorerSync the defconfig file with the version from savedefconfig.
--- configs/anbernic-rg-ds-rk3568_defconfig | 5 ----- 1 file changed, 5 deletions(-)
configs/anbernic-rg-ds-rk3568_defconfig +0 -5
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_OF_STDOUT_VIA_ALIAS=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-anbernic-rg-ds.dtb" -# CONFIG_CONSOLE_MUX is not set CONFIG_BOARD_TYPES=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y
@@ -31,16 +30,13 @@ CONFIG_CMD_PWM=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y # CONFIG_CMD_SETEXPR is not set -# CONFIG_CMD_CLS is not set # CONFIG_SPL_DOS_PARTITION is not set CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIVE=y -CONFIG_OF_LIST="rockchip/rk3568-anbernic-rg-ds" CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y # CONFIG_NET is not set CONFIG_SPL_DM_SEQ_ALIAS=y -CONFIG_SPL_REGMAP=y CONFIG_SPL_SYSCON=y CONFIG_SPL_ADC=y CONFIG_SPL_CLK=y
@@ -68,6 +64,5 @@ CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYS_NS16550_MEM32=y CONFIG_SYSRESET=y -CONFIG_REGEX=y # CONFIG_RSA is not set CONFIG_ERRNO_STR=y
Signature · 1 line
2.34.1
RFC PATCH 11/11 configs: rockchip: add DISPLAY_CPUINFO to keep SoC info print
In reply to Massimo PegorerRemove DISPLAY_CPUINFO deselection from all configurations that were relying on DISPLAY_BOARDINFO(_LATE) to print SoC information: this info is now printed with DISPLAY_CPUINFO. The change affects all of Rockchip board configurations related to PX30 RK3308 or RK35xx.
--- configs/9tripod-x3568-v4-rk3568_defconfig | 1 - configs/anbernic-rg-ds-rk3568_defconfig | 1 - configs/anbernic-rgxx3-rk3566_defconfig | 1 - configs/bpi-r2-pro-rk3568_defconfig | 1 - configs/cm3588-nas-rk3588_defconfig | 1 - configs/coolpi-4b-rk3588s_defconfig | 1 - configs/coolpi-cm5-evb-rk3588_defconfig | 1 - configs/coolpi-cm5-genbook-rk3588_defconfig | 1 - configs/easepi-r1-rk3568_defconfig | 1 - configs/evb-px30_defconfig | 1 - configs/evb-rk3308_defconfig | 1 - configs/evb-rk3568_defconfig | 1 - configs/evb-rk3588_defconfig | 1 - configs/fastrhino-r66s-rk3568_defconfig | 1 - configs/firefly-px30_defconfig | 1 - configs/gameforce-ace-rk3588s_defconfig | 1 - configs/generic-rk3528_defconfig | 1 - configs/generic-rk3568_defconfig | 1 - configs/generic-rk3576_defconfig | 1 - configs/generic-rk3588_defconfig | 1 - configs/jaguar-rk3588_defconfig | 1 - configs/khadas-edge2-rk3588s_defconfig | 1 - configs/lckfb-tspi-rk3566_defconfig | 1 - configs/lubancat-2-rk3568_defconfig | 1 - configs/mnt-reform2-rk3588_defconfig | 1 - configs/nanopc-t6-rk3588_defconfig | 1 - configs/nanopi-m5-rk3576_defconfig | 1 - configs/nanopi-r3s-rk3566_defconfig | 1 - configs/nanopi-r5c-rk3568_defconfig | 1 - configs/nanopi-r5s-rk3568_defconfig | 1 - configs/nanopi-r6c-rk3588s_defconfig | 1 - configs/nanopi-r6s-rk3588s_defconfig | 1 - configs/nanopi-r76s-rk3576_defconfig | 1 - configs/nanopi-zero2-rk3528_defconfig | 1 - configs/neu6a-io-rk3588_defconfig | 1 - configs/neu6b-io-rk3588_defconfig | 1 - configs/nova-rk3588s_defconfig | 1 - configs/odroid-go2_defconfig | 1 - configs/odroid-m1-rk3568_defconfig | 1 - configs/odroid-m1s-rk3566_defconfig | 1 - configs/odroid-m2-rk3588s_defconfig | 1 - configs/omni3576-rk3576_defconfig | 1 - configs/orangepi-3b-rk3566_defconfig | 1 - configs/orangepi-5-max-rk3588_defconfig | 1 - configs/orangepi-5-plus-rk3588_defconfig | 1 - configs/orangepi-5-rk3588s_defconfig | 1 - configs/orangepi-5-ultra-rk3588_defconfig | 1 - configs/pinetab2-rk3566_defconfig | 1 - configs/powkiddy-x55-rk3566_defconfig | 1 - configs/px30-core-ctouch2-of10-px30_defconfig | 1 - configs/px30-core-ctouch2-px30_defconfig | 1 - configs/px30-core-edimm2.2-px30_defconfig | 1 - configs/qnap-ts433-rk3568_defconfig | 1 - configs/quartz64-a-rk3566_defconfig | 1 - configs/quartz64-b-rk3566_defconfig | 1 - configs/quartzpro64-rk3588_defconfig | 1 - configs/radxa-cm3-io-rk3566_defconfig | 1 - configs/radxa-e20c-rk3528_defconfig | 1 - configs/radxa-e25-rk3568_defconfig | 1 - configs/radxa-zero-3-rk3566_defconfig | 1 - configs/ringneck-px30_defconfig | 1 - configs/roc-cc-rk3308_defconfig | 1 - configs/roc-pc-rk3576_defconfig | 1 - configs/roc-pc-rk3588s_defconfig | 1 - configs/rock-2-rk3528_defconfig | 1 - configs/rock-3a-rk3568_defconfig | 1 - configs/rock-3b-rk3568_defconfig | 1 - configs/rock-3c-rk3566_defconfig | 1 - configs/rock-4d-rk3576_defconfig | 1 - configs/rock-5-itx-rk3588_defconfig | 1 - configs/rock-5c-rk3588s_defconfig | 1 - configs/rock-pi-s-rk3308_defconfig | 1 - configs/rock-s0-rk3308_defconfig | 1 - configs/rock5a-rk3588s_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/sige1-rk3528_defconfig | 1 - configs/sige5-rk3576_defconfig | 1 - configs/sige7-rk3588_defconfig | 1 - configs/soquartz-blade-rk3566_defconfig | 1 - configs/soquartz-cm4-rk3566_defconfig | 1 - configs/soquartz-model-a-rk3566_defconfig | 1 - configs/tiger-rk3588_defconfig | 1 - configs/toybrick-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - 84 files changed, 84 deletions(-)
configs/9tripod-x3568-v4-rk3568_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-9tripod-x3568-v4.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/anbernic-rg-ds-rk3568_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_OF_STDOUT_VIA_ALIAS=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-anbernic-rg-ds.dtb" CONFIG_BOARD_TYPES=y -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000
configs/anbernic-rgxx3-rk3566_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-anbernic-rg353p.dtb" CONFIG_DISABLE_CONSOLE=y # CONFIG_CONSOLE_MUX is not set CONFIG_BOARD_TYPES=y -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000
configs/bpi-r2-pro-rk3568_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-bpi-r2-pro.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/cm3588-nas-rk3588_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-friendlyelec-cm3588-nas.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/coolpi-4b-rk3588s_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-coolpi-4b.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/coolpi-cm5-evb-rk3588_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-coolpi-cm5-evb.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/coolpi-cm5-genbook-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-coolpi-cm5-genbook.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/easepi-r1-rk3568_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-easepi-r1.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/evb-px30_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_FIT_VERBOSE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-evb.dtb" # CONFIG_CONSOLE_MUX is not set -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/evb-rk3308_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3308-evb.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_GPIO=y
configs/evb-rk3568_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-evb1-v10.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/evb-rk3588_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-evb1-v10.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/fastrhino-r66s-rk3568_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-fastrhino-r66s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/firefly-px30_defconfig +0 -1
@@ -20,7 +20,6 @@ CONFIG_FIT_VERBOSE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-firefly.dtb" # CONFIG_CONSOLE_MUX is not set -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/gameforce-ace-rk3588s_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-gameforce-ace.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/generic-rk3528_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y # CONFIG_BOOTMETH_VBE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-generic.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_MEMINFO=y
configs/generic-rk3568_defconfig +0 -1
@@ -21,7 +21,6 @@ CONFIG_SPL_LOAD_FIT=y # CONFIG_BOOTMETH_VBE is not set CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-generic.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_SPI_LOAD=y
configs/generic-rk3576_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y # CONFIG_BOOTMETH_VBE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-generic.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_MEMINFO=y
configs/generic-rk3588_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-generic.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_ATF=y
configs/jaguar-rk3588_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_LOAD_FIT=y # CONFIG_BOOTMETH_VBE is not set CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-jaguar.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_CYCLIC=y CONFIG_SPL_MAX_SIZE=0x40000
configs/khadas-edge2-rk3588s_defconfig +0 -1
@@ -21,7 +21,6 @@ CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot\n" CONFIG_AUTOBOOT_STOP_STR=" " CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-khadas-edge2.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/lckfb-tspi-rk3566_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-lckfb-tspi.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/lubancat-2-rk3568_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-lubancat-2.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/mnt-reform2-rk3588_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="pci enum; usb start; nvme scan;" CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-mnt-reform2" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopc-t6-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-nanopc-t6.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-m5-rk3576_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_SPI=y CONFIG_PCI=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-nanopi-m5.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_DM_RESET=y
configs/nanopi-r3s-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-nanopi-r3s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-r5c-rk3568_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-nanopi-r5c.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-r5s-rk3568_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-nanopi-r5s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-r6c-rk3588s_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-nanopi-r6c.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-r6s-rk3588s_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-nanopi-r6s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nanopi-r76s-rk3576_defconfig +0 -1
@@ -11,7 +11,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_PCI=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-nanopi-r76s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_MEMINFO=y
configs/nanopi-zero2-rk3528_defconfig +0 -1
@@ -9,7 +9,6 @@ CONFIG_DEBUG_UART_BASE=0xFF9F0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-nanopi-zero2.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/neu6a-io-rk3588_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6a-io.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/neu6b-io-rk3588_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6b-io.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/nova-rk3588s_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-indiedroid-nova.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/odroid-go2_defconfig +0 -1
@@ -29,7 +29,6 @@ CONFIG_FIT_BEST_MATCH=y CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3326-odroid-go2.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_LATE_INIT=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x40000
configs/odroid-m1-rk3568_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-odroid-m1.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/odroid-m1s-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-odroid-m1s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/odroid-m2-rk3588s_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-odroid-m2.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/omni3576-rk3576_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_PCI=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-luckfox-omni3576.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_MEMINFO=y
configs/orangepi-3b-rk3566_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-orangepi-3b.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/orangepi-5-max-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-orangepi-5-max.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/orangepi-5-plus-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-orangepi-5-plus.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/orangepi-5-rk3588s_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-orangepi-5.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/orangepi-5-ultra-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-orangepi-5-ultra.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/pinetab2-rk3566_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-pinetab2-v2.0.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/powkiddy-x55-rk3566_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-powkiddy-x55.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/px30-core-ctouch2-of10-px30_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_FIT_VERBOSE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-engicam-px30-core-ctouch2-of10.dtb" # CONFIG_CONSOLE_MUX is not set -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/px30-core-ctouch2-px30_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_FIT_VERBOSE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-engicam-px30-core-ctouch2.dtb" # CONFIG_CONSOLE_MUX is not set -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/px30-core-edimm2.2-px30_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_FIT_VERBOSE=y CONFIG_SPL_LOAD_FIT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-engicam-px30-core-edimm2.2.dtb" # CONFIG_CONSOLE_MUX is not set -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/qnap-ts433-rk3568_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-qnap-ts433.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/quartz64-a-rk3566_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-quartz64-a.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/quartz64-b-rk3566_defconfig +0 -1
@@ -23,7 +23,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-quartz64-b.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/quartzpro64-rk3588_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-quartzpro64.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/radxa-cm3-io-rk3566_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-radxa-cm3-io.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/radxa-e20c-rk3528_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_BASE=0xFF9F0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-radxa-e20c.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/radxa-e25-rk3568_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-radxa-e25.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/radxa-zero-3-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-radxa-zero-3w.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/ringneck-px30_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_BOOTSTD_FULL=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/px30-ringneck-haikou.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_MISC_INIT_R=y CONFIG_SPL_MAX_SIZE=0x20000
configs/roc-cc-rk3308_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3308-roc-cc.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_GPIO=y
configs/roc-pc-rk3576_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_BASE=0x2AD40000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-roc-pc.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_GPIO=y
configs/roc-pc-rk3588s_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-roc-pc.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_ATF=y
configs/rock-2-rk3528_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_BASE=0xFF9F0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-rock-2a.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock-3a-rk3568_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-rock-3a.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock-3b-rk3568_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-rock-3b.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock-3c-rk3566_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-rock-3c.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock-4d-rk3576_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_SPI=y CONFIG_PCI=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-rock-4d.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_DM_RESET=y
configs/rock-5-itx-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-rock-5-itx.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock-5c-rk3588s_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-rock-5c.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_ATF=y
configs/rock-pi-s-rk3308_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3308-rock-pi-s.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_GPIO=y
configs/rock-s0-rk3308_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3308-rock-s0.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_GPIO=y
configs/rock5a-rk3588s_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-rock-5a.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/rock5b-rk3588_defconfig +0 -1
@@ -25,7 +25,6 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_OF_BOARD_SETUP=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-rock-5b.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/sige1-rk3528_defconfig +0 -1
@@ -9,7 +9,6 @@ CONFIG_DEBUG_UART_BASE=0xFF9F0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3528-armsom-sige1.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_RNG_SEED=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/sige5-rk3576_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_PCI=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-armsom-sige5.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_CMD_MEMINFO=y
configs/sige7-rk3588_defconfig +0 -1
@@ -19,7 +19,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-armsom-sige7.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/soquartz-blade-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-soquartz-blade.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/soquartz-cm4-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-soquartz-cm4.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/soquartz-model-a-rk3566_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-soquartz-model-a.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/tiger-rk3588_defconfig +0 -1
@@ -24,7 +24,6 @@ CONFIG_SPL_LOAD_FIT=y # CONFIG_BOOTMETH_VBE is not set CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-tiger-haikou.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_CYCLIC=y CONFIG_SPL_MAX_SIZE=0x40000
configs/toybrick-rk3588_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-toybrick-x0.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/turing-rk1-rk3588_defconfig +0 -1
@@ -18,7 +18,6 @@ CONFIG_SPL_FIT_SIGNATURE=y CONFIG_SPL_LOAD_FIT=y CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-turing-rk1.dtb" -# CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x40000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
Signature · 1 line
2.34.1
Hi Massimo,
Quoted 12 lines · Massimo Pegorer
Looking to provide a way to print reset cause on a board equipped with a PX30 SoC I ran into the following existing issues related to Rockchip SoCs:
1. It is not possible to select
DISPLAY_CPUINFOconfiguration option withARCH_ROCKCHIP, except for RK3399 RK3288 RK3568 RK3588 SoCs, due to incomplete definition of type 'structrockchip_cru' caused by Rockchip common implementation ofprint_cpuinfo()function: see0f9872c4db11for the RK3588 SoC "workaround", which I feel not optimal. Note thatDISPLAY_CPUINFOhas default y if ARM; therefore, it is deselected in each Rockchip defconfig except for listed SoCs.
Quoted 5 lines
2. It is not possible to deselect
DISPLAY_CPUINFOconfiguration option withTARGET_ROC_PC_RK3399due to missingget_reset_cause()symbol caused by mach-rockchip/Makefile skippingcpu-info.c. I do not see howe230c579a3f6commit separated the reset cause from displaying cpuinfo as proposed.
Please see the series "rockchip: Add and use rockchip_sysreset_bind() helper" [1] that already should resolve above issues.
That series has some loose depends for a clean apply, but the idea is to fully move the resets status handling into the sysreset driver and start cleanup of 'struct rockchip_cru' use.
Please try, review and possible build on top of that :-)
[1] https://patch.msgid.link/[email protected]/
Regards,
Jonas
Quoted 187 lines
3. For the most recent Rockchip SoCs (RK3588 RK3576 RK3568 RK3528 RK3506 RK3308 PX30) the
checkboard()function is implemented at mach level to print SoC information: it overrides the weak empty implementation called byshow_board_info()whenDISPLAY_BOARDINFO(_LATE)option is selected.Most of the other machs do not provide a
checkboard()implementation leaving symbol available for overriding at board level. I did not find any "regulatory" definition in the documentation, but SoC info sounds to me more related to CPUINFO than to BOARDINFO, and other machs approach in my opinion seems more consistent with the function and configuration option names (checkboard andDISPLAY_BOARDINFO). Moreover, this approach has the advantage of allowing each board to implement its owncheckboard()if needed (other hooks exist for board specific printout, of course).4. Implementation of
get_reset_cause()cannot be common in Rockchip mach due to differentCRU_GLB_RST_STregister definitions from SoC to SoC:
RK3288 and RK3399 share the same one, but RK3568 and RK3588 ones have more bit flags defined (and not all of them seem mutually exclusive), and PX30 and RK3308 common one differs again having WDT and TSADC bit flags swapped.Here is my proposal, awaiting your comments and feedback:
1. Create a Rockchip common
print_cpuinfo()suitable for any SoC/board, making possibleDISPLAY_CPUINFOselection without build issues.2. Avoid
DISPLAY_CPUINFOdeselection causes build issues for any board.3. Make
print_cpuinfo()to execute code that is currently in function namedcheckboard()at SoC level (if implemented), which prints more info thanCONFIG_SYS_SOC. Of course, keep printingCONFIG_SYS_SOCif function is unavailable and on returning error.4. Make
print_cpuinfo()to execute code to get the SoC reset cause and to print its description if the reset cause is available.5. Avoid
DISPLAY_BOARDINFO(_LATE)printing the same SoC info now printed byDISPLAY_CPUINFOtoo: it seems redundant and quite misleading. This makescheckboard()implementation at Rockchip mach level unnecessary:
remove it and leave the overriding option available for board level implementation if needed.6. Select
DISPLAY_CPUINFOin all Rockchip board configurations related to PX30 RK3308 and any RK35xx (all the SoCs that were providing acheckboard()implementation) that already have theDISPLAY_BOARDINFOand/or theDISPLAY_BOARDINFO_LATEoption selected, to keep SoC info printout. BTW they are all of PX30 RK3308 and RK35xx board configs.The whole series has been built with buildman for all of the involved board configurations, i.e. those related to PX30 RK3288 RK3308 RK3399 RK35xx.
---
Massimo Pegorer (11):
arm: rockchip: include SoC-specific CRU header file
rockchip: cru: move code from header to source file
rockchip: cru: remove unnecessary commoncru.hfile
rockchip: cru: improve and simplify reset cause handling
arm: rockchip: supportDISPLAY_CPUINFOon all Rockchip SoC
arm: rockchip: unbindcpu-info.cfromDISPLAY_CPUINFO
arm: rockchip: print SoC detailed info withDISPLAY_CPUINFO
arm: rockchip: print reset cause only when available
arm: rockchip: do not print SoC info withDISPLAY_BOARDINFO
configs: rockchip: resync Anbernic RG-DS with savedefconfig
configs: rockchip: addDISPLAY_CPUINFOto keep SoC info printarch/arm/include/asm/arch-rockchip/clock.h | 11 +++++ arch/arm/include/asm/arch-rockchip/cru.h | 39 ---------------- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 + arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach-rockchip/cpu-info.c | 61 ++++++++++++------------- arch/arm/mach-rockchip/px30/px30.c | 12 ++--- arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +- arch/arm/mach-rockchip/rk3308/rk3308.c | 2 +- arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- arch/arm/mach-rockchip/rk3506/rk3506.c | 10 ++-- arch/arm/mach-rockchip/rk3528/rk3528.c | 10 ++-- arch/arm/mach-rockchip/rk3568/clk_rk3568.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3568/rk3568.c | 12 ++--- arch/arm/mach-rockchip/rk3576/rk3576.c | 10 ++-- arch/arm/mach-rockchip/rk3588/clk_rk3588.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3588/rk3588.c | 10 ++-- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 4 +- configs/9tripod-x3568-v4-rk3568_defconfig | 1 - configs/anbernic-rg-ds-rk3568_defconfig | 6 --- configs/anbernic-rgxx3-rk3566_defconfig | 1 - configs/bpi-r2-pro-rk3568_defconfig | 1 - configs/cm3588-nas-rk3588_defconfig | 1 - configs/coolpi-4b-rk3588s_defconfig | 1 - configs/coolpi-cm5-evb-rk3588_defconfig | 1 - configs/coolpi-cm5-genbook-rk3588_defconfig | 1 - configs/easepi-r1-rk3568_defconfig | 1 - configs/evb-px30_defconfig | 1 - configs/evb-rk3308_defconfig | 1 - configs/evb-rk3568_defconfig | 1 - configs/evb-rk3588_defconfig | 1 - configs/fastrhino-r66s-rk3568_defconfig | 1 - configs/firefly-px30_defconfig | 1 - configs/gameforce-ace-rk3588s_defconfig | 1 - configs/generic-rk3528_defconfig | 1 - configs/generic-rk3568_defconfig | 1 - configs/generic-rk3576_defconfig | 1 - configs/generic-rk3588_defconfig | 1 - configs/jaguar-rk3588_defconfig | 1 - configs/khadas-edge2-rk3588s_defconfig | 1 - configs/lckfb-tspi-rk3566_defconfig | 1 - configs/lubancat-2-rk3568_defconfig | 1 - configs/mnt-reform2-rk3588_defconfig | 1 - configs/nanopc-t6-rk3588_defconfig | 1 - configs/nanopi-m5-rk3576_defconfig | 1 - configs/nanopi-r3s-rk3566_defconfig | 1 - configs/nanopi-r5c-rk3568_defconfig | 1 - configs/nanopi-r5s-rk3568_defconfig | 1 - configs/nanopi-r6c-rk3588s_defconfig | 1 - configs/nanopi-r6s-rk3588s_defconfig | 1 - configs/nanopi-r76s-rk3576_defconfig | 1 - configs/nanopi-zero2-rk3528_defconfig | 1 - configs/neu6a-io-rk3588_defconfig | 1 - configs/neu6b-io-rk3588_defconfig | 1 - configs/nova-rk3588s_defconfig | 1 - configs/odroid-go2_defconfig | 1 - configs/odroid-m1-rk3568_defconfig | 1 - configs/odroid-m1s-rk3566_defconfig | 1 - configs/odroid-m2-rk3588s_defconfig | 1 - configs/omni3576-rk3576_defconfig | 1 - configs/orangepi-3b-rk3566_defconfig | 1 - configs/orangepi-5-max-rk3588_defconfig | 1 - configs/orangepi-5-plus-rk3588_defconfig | 1 - configs/orangepi-5-rk3588s_defconfig | 1 - configs/orangepi-5-ultra-rk3588_defconfig | 1 - configs/pinetab2-rk3566_defconfig | 1 - configs/powkiddy-x55-rk3566_defconfig | 1 - configs/px30-core-ctouch2-of10-px30_defconfig | 1 - configs/px30-core-ctouch2-px30_defconfig | 1 - configs/px30-core-edimm2.2-px30_defconfig | 1 - configs/qnap-ts433-rk3568_defconfig | 1 - configs/quartz64-a-rk3566_defconfig | 1 - configs/quartz64-b-rk3566_defconfig | 1 - configs/quartzpro64-rk3588_defconfig | 1 - configs/radxa-cm3-io-rk3566_defconfig | 1 - configs/radxa-e20c-rk3528_defconfig | 1 - configs/radxa-e25-rk3568_defconfig | 1 - configs/radxa-zero-3-rk3566_defconfig | 1 - configs/ringneck-px30_defconfig | 1 - configs/roc-cc-rk3308_defconfig | 1 - configs/roc-pc-rk3576_defconfig | 1 - configs/roc-pc-rk3588s_defconfig | 1 - configs/rock-2-rk3528_defconfig | 1 - configs/rock-3a-rk3568_defconfig | 1 - configs/rock-3b-rk3568_defconfig | 1 - configs/rock-3c-rk3566_defconfig | 1 - configs/rock-4d-rk3576_defconfig | 1 - configs/rock-5-itx-rk3588_defconfig | 1 - configs/rock-5c-rk3588s_defconfig | 1 - configs/rock-pi-s-rk3308_defconfig | 1 - configs/rock-s0-rk3308_defconfig | 1 - configs/rock5a-rk3588s_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/sige1-rk3528_defconfig | 1 - configs/sige5-rk3576_defconfig | 1 - configs/sige7-rk3588_defconfig | 1 - configs/soquartz-blade-rk3566_defconfig | 1 - configs/soquartz-cm4-rk3566_defconfig | 1 - configs/soquartz-model-a-rk3566_defconfig | 1 - configs/tiger-rk3588_defconfig | 1 - configs/toybrick-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - drivers/clk/rockchip/clk_rk3288.c | 2 +- drivers/clk/rockchip/clk_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/video/rockchip/rk3288_mipi.c | 2 +- drivers/video/rockchip/rk3399_mipi.c | 2 +- drivers/video/rockchip/rk_mipi.c | 2 +- 110 files changed, 229 insertions(+), 206 deletions(-)---
base-commit:b8e0086b585791a771416ce51b58ce0097bc0b28
change-id: 20260908-reset-e69a40d3f5c6Best regards,
Signature · 1 line
Massimo Pegorer <[email protected]>
Hi Jonas,
Il giorno dom 20 set 2026 alle ore 17:49 Jonas Karlman <[email protected]> ha scritto:
Quoted 22 lines
Hi Massimo,
Quoted 12 lines · Massimo Pegorer
Looking to provide a way to print reset cause on a board equipped with a PX30 SoC I ran into the following existing issues related to Rockchip SoCs:
1. It is not possible to select
DISPLAY_CPUINFOconfiguration option withARCH_ROCKCHIP, except for RK3399 RK3288 RK3568 RK3588 SoCs, due to incomplete definition of type 'structrockchip_cru' caused by Rockchip common implementation ofprint_cpuinfo()function: see0f9872c4db11for the RK3588 SoC "workaround", which I feel not optimal. Note thatDISPLAY_CPUINFOhas default y if ARM; therefore, it is deselected in each Rockchip defconfig except for listed SoCs.Quoted 5 lines
2. It is not possible to deselect
DISPLAY_CPUINFOconfiguration option withTARGET_ROC_PC_RK3399due to missingget_reset_cause()symbol caused by mach-rockchip/Makefile skippingcpu-info.c. I do not see howe230c579a3f6commit separated the reset cause from displaying cpuinfo as proposed.
Quoted 8 lines
Please see the series "rockchip: Add and use
rockchip_sysreset_bind()helper" [1] that already should resolve above issues.That series has some loose depends for a clean apply, but the idea is to fully move the resets status handling into the sysreset driver and start cleanup of 'struct
rockchip_cru' use.Please try, review and possible build on top of that :-)
Thanks, I will. I missed it as I re-joined U-Boot mailing list just a month ago.
What's the status of that series? Is it going to be applied to u-boot/next?
Regards,
Massimo
Quoted 194 lines
[1] https://patch.msgid.link/[email protected]/
Regards,
JonasQuoted 187 lines
3. For the most recent Rockchip SoCs (RK3588 RK3576 RK3568 RK3528 RK3506 RK3308 PX30) the
checkboard()function is implemented at mach level to print SoC information: it overrides the weak empty implementation called byshow_board_info()whenDISPLAY_BOARDINFO(_LATE)option is selected.Most of the other machs do not provide a
checkboard()implementation leaving symbol available for overriding at board level. I did not find any "regulatory" definition in the documentation, but SoC info sounds to me more related to CPUINFO than to BOARDINFO, and other machs approach in my opinion seems more consistent with the function and configuration option names (checkboard andDISPLAY_BOARDINFO). Moreover, this approach has the advantage of allowing each board to implement its owncheckboard()if needed (other hooks exist for board specific printout, of course).4. Implementation of
get_reset_cause()cannot be common in Rockchip mach due to differentCRU_GLB_RST_STregister definitions from SoC to SoC:
RK3288 and RK3399 share the same one, but RK3568 and RK3588 ones have more bit flags defined (and not all of them seem mutually exclusive), and PX30 and RK3308 common one differs again having WDT and TSADC bit flags swapped.Here is my proposal, awaiting your comments and feedback:
1. Create a Rockchip common
print_cpuinfo()suitable for any SoC/board, making possibleDISPLAY_CPUINFOselection without build issues.2. Avoid
DISPLAY_CPUINFOdeselection causes build issues for any board.3. Make
print_cpuinfo()to execute code that is currently in function namedcheckboard()at SoC level (if implemented), which prints more info thanCONFIG_SYS_SOC. Of course, keep printingCONFIG_SYS_SOCif function is unavailable and on returning error.4. Make
print_cpuinfo()to execute code to get the SoC reset cause and to print its description if the reset cause is available.5. Avoid
DISPLAY_BOARDINFO(_LATE)printing the same SoC info now printed byDISPLAY_CPUINFOtoo: it seems redundant and quite misleading. This makescheckboard()implementation at Rockchip mach level unnecessary:
remove it and leave the overriding option available for board level implementation if needed.6. Select
DISPLAY_CPUINFOin all Rockchip board configurations related to PX30 RK3308 and any RK35xx (all the SoCs that were providing acheckboard()implementation) that already have theDISPLAY_BOARDINFOand/or theDISPLAY_BOARDINFO_LATEoption selected, to keep SoC info printout. BTW they are all of PX30 RK3308 and RK35xx board configs.The whole series has been built with buildman for all of the involved board configurations, i.e. those related to PX30 RK3288 RK3308 RK3399 RK35xx.
---
Massimo Pegorer (11):
arm: rockchip: include SoC-specific CRU header file
rockchip: cru: move code from header to source file
rockchip: cru: remove unnecessary commoncru.hfile
rockchip: cru: improve and simplify reset cause handling
arm: rockchip: supportDISPLAY_CPUINFOon all Rockchip SoC
arm: rockchip: unbindcpu-info.cfromDISPLAY_CPUINFO
arm: rockchip: print SoC detailed info withDISPLAY_CPUINFO
arm: rockchip: print reset cause only when available
arm: rockchip: do not print SoC info withDISPLAY_BOARDINFO
configs: rockchip: resync Anbernic RG-DS with savedefconfig
configs: rockchip: addDISPLAY_CPUINFOto keep SoC info printarch/arm/include/asm/arch-rockchip/clock.h | 11 +++++ arch/arm/include/asm/arch-rockchip/cru.h | 39 ---------------- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 + arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach-rockchip/cpu-info.c | 61 ++++++++++++------------- arch/arm/mach-rockchip/px30/px30.c | 12 ++--- arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +- arch/arm/mach-rockchip/rk3308/rk3308.c | 2 +- arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 37 ++++++++++++++- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- arch/arm/mach-rockchip/rk3506/rk3506.c | 10 ++-- arch/arm/mach-rockchip/rk3528/rk3528.c | 10 ++-- arch/arm/mach-rockchip/rk3568/clk_rk3568.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3568/rk3568.c | 12 ++--- arch/arm/mach-rockchip/rk3576/rk3576.c | 10 ++-- arch/arm/mach-rockchip/rk3588/clk_rk3588.c | 35 ++++++++++++++ arch/arm/mach-rockchip/rk3588/rk3588.c | 10 ++-- board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 4 +- configs/9tripod-x3568-v4-rk3568_defconfig | 1 - configs/anbernic-rg-ds-rk3568_defconfig | 6 --- configs/anbernic-rgxx3-rk3566_defconfig | 1 - configs/bpi-r2-pro-rk3568_defconfig | 1 - configs/cm3588-nas-rk3588_defconfig | 1 - configs/coolpi-4b-rk3588s_defconfig | 1 - configs/coolpi-cm5-evb-rk3588_defconfig | 1 - configs/coolpi-cm5-genbook-rk3588_defconfig | 1 - configs/easepi-r1-rk3568_defconfig | 1 - configs/evb-px30_defconfig | 1 - configs/evb-rk3308_defconfig | 1 - configs/evb-rk3568_defconfig | 1 - configs/evb-rk3588_defconfig | 1 - configs/fastrhino-r66s-rk3568_defconfig | 1 - configs/firefly-px30_defconfig | 1 - configs/gameforce-ace-rk3588s_defconfig | 1 - configs/generic-rk3528_defconfig | 1 - configs/generic-rk3568_defconfig | 1 - configs/generic-rk3576_defconfig | 1 - configs/generic-rk3588_defconfig | 1 - configs/jaguar-rk3588_defconfig | 1 - configs/khadas-edge2-rk3588s_defconfig | 1 - configs/lckfb-tspi-rk3566_defconfig | 1 - configs/lubancat-2-rk3568_defconfig | 1 - configs/mnt-reform2-rk3588_defconfig | 1 - configs/nanopc-t6-rk3588_defconfig | 1 - configs/nanopi-m5-rk3576_defconfig | 1 - configs/nanopi-r3s-rk3566_defconfig | 1 - configs/nanopi-r5c-rk3568_defconfig | 1 - configs/nanopi-r5s-rk3568_defconfig | 1 - configs/nanopi-r6c-rk3588s_defconfig | 1 - configs/nanopi-r6s-rk3588s_defconfig | 1 - configs/nanopi-r76s-rk3576_defconfig | 1 - configs/nanopi-zero2-rk3528_defconfig | 1 - configs/neu6a-io-rk3588_defconfig | 1 - configs/neu6b-io-rk3588_defconfig | 1 - configs/nova-rk3588s_defconfig | 1 - configs/odroid-go2_defconfig | 1 - configs/odroid-m1-rk3568_defconfig | 1 - configs/odroid-m1s-rk3566_defconfig | 1 - configs/odroid-m2-rk3588s_defconfig | 1 - configs/omni3576-rk3576_defconfig | 1 - configs/orangepi-3b-rk3566_defconfig | 1 - configs/orangepi-5-max-rk3588_defconfig | 1 - configs/orangepi-5-plus-rk3588_defconfig | 1 - configs/orangepi-5-rk3588s_defconfig | 1 - configs/orangepi-5-ultra-rk3588_defconfig | 1 - configs/pinetab2-rk3566_defconfig | 1 - configs/powkiddy-x55-rk3566_defconfig | 1 - configs/px30-core-ctouch2-of10-px30_defconfig | 1 - configs/px30-core-ctouch2-px30_defconfig | 1 - configs/px30-core-edimm2.2-px30_defconfig | 1 - configs/qnap-ts433-rk3568_defconfig | 1 - configs/quartz64-a-rk3566_defconfig | 1 - configs/quartz64-b-rk3566_defconfig | 1 - configs/quartzpro64-rk3588_defconfig | 1 - configs/radxa-cm3-io-rk3566_defconfig | 1 - configs/radxa-e20c-rk3528_defconfig | 1 - configs/radxa-e25-rk3568_defconfig | 1 - configs/radxa-zero-3-rk3566_defconfig | 1 - configs/ringneck-px30_defconfig | 1 - configs/roc-cc-rk3308_defconfig | 1 - configs/roc-pc-rk3576_defconfig | 1 - configs/roc-pc-rk3588s_defconfig | 1 - configs/rock-2-rk3528_defconfig | 1 - configs/rock-3a-rk3568_defconfig | 1 - configs/rock-3b-rk3568_defconfig | 1 - configs/rock-3c-rk3566_defconfig | 1 - configs/rock-4d-rk3576_defconfig | 1 - configs/rock-5-itx-rk3588_defconfig | 1 - configs/rock-5c-rk3588s_defconfig | 1 - configs/rock-pi-s-rk3308_defconfig | 1 - configs/rock-s0-rk3308_defconfig | 1 - configs/rock5a-rk3588s_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/sige1-rk3528_defconfig | 1 - configs/sige5-rk3576_defconfig | 1 - configs/sige7-rk3588_defconfig | 1 - configs/soquartz-blade-rk3566_defconfig | 1 - configs/soquartz-cm4-rk3566_defconfig | 1 - configs/soquartz-model-a-rk3566_defconfig | 1 - configs/tiger-rk3588_defconfig | 1 - configs/toybrick-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - drivers/clk/rockchip/clk_rk3288.c | 2 +- drivers/clk/rockchip/clk_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/video/rockchip/rk3288_mipi.c | 2 +- drivers/video/rockchip/rk3399_mipi.c | 2 +- drivers/video/rockchip/rk_mipi.c | 2 +- 110 files changed, 229 insertions(+), 206 deletions(-)---
base-commit:b8e0086b585791a771416ce51b58ce0097bc0b28
change-id: 20260908-reset-e69a40d3f5c6Best regards,
--
Massimo Pegorer <[email protected]>
Hi Massimo,
Quoted 29 lines · Massimo Pegorer
Hi Jonas,
Il giorno dom 20 set 2026 alle ore 17:49 Jonas Karlman <[email protected]> ha scritto:
Quoted 25 lines
Hi Massimo,
Quoted 12 lines · Massimo Pegorer
Looking to provide a way to print reset cause on a board equipped with a PX30 SoC I ran into the following existing issues related to Rockchip SoCs:
1. It is not possible to select
DISPLAY_CPUINFOconfiguration option withARCH_ROCKCHIP, except for RK3399 RK3288 RK3568 RK3588 SoCs, due to incomplete definition of type 'structrockchip_cru' caused by Rockchip common implementation ofprint_cpuinfo()function: see0f9872c4db11for the RK3588 SoC "workaround", which I feel not optimal. Note thatDISPLAY_CPUINFOhas default y if ARM; therefore, it is deselected in each Rockchip defconfig except for listed SoCs.Quoted 5 lines
2. It is not possible to deselect
DISPLAY_CPUINFOconfiguration option withTARGET_ROC_PC_RK3399due to missingget_reset_cause()symbol caused by mach-rockchip/Makefile skippingcpu-info.c. I do not see howe230c579a3f6commit separated the reset cause from displaying cpuinfo as proposed.Please see the series "rockchip: Add and use
rockchip_sysreset_bind()helper" [1] that already should resolve above issues.
Quoted 8 lines
Quoted 5 lines
That series has some loose depends for a clean apply, but the idea is to fully move the resets status handling into the sysreset driver and start cleanup of 'struct
rockchip_cru' use.Please try, review and possible build on top of that :-)
Thanks, I will. I missed it as I re-joined U-Boot mailing list just a month ago.
Welcome back!
Quoted 2 lines
What's the status of that series? Is it going to be applied to u-boot/next?
The status is that it needs people reviewing and/or testing the series. I'm the sole maintainer at the moment for Rockchip and I have a day job so I put as much time as I can/want to in it but it's limited, but I'll eventually get to it.
You don't need any permission to review or test patches on the mailing list so please feel free to spend some time reviewing other people's patches, any help is welcome :)
Cheers,
Quentin