rockchip: Small cleanups for RK356x and RK3588
Subsystems (3)
cover rockchip: Small cleanups for RK356x and RK3588
This series add small cleanups for RK356x and RK3588.
These are small changes that was implemented while working on RK3528 [1] and future RK3506 [2] support. Similar changes has also been recommended for a v2 of the RK3576 series.
This also add the meminfo and rng commands to the generic-rk3568/rk3588 board targets.
[1] https://source.denx.de/u-boot/contributors/kwiboo/u-boot/-/commits/rk3528
[2] https://source.denx.de/u-boot/contributors/kwiboo/u-boot/-/commits/rk3506
Jonas Karlman (11):
rockchip: rk3588: Use hptimer reg names in rockchip_stimer_init
rockchip: Remove partitions env variable for RK356x
rockchip: Remove partitions env variable for RK3588
rockchip: Ensure device settings is defined before rk3568_common.h
rockchip: Ensure device settings is defined before rk3588_common.h
rockchip: Use rk3568_common.h by default for RK356x boards
rockchip: Use rk3588_common.h by default for RK3588 boards
rockchip: rk3568: Drop BOARD_LATE_INIT from target config
rockchip: rk3588: Drop BOARD_LATE_INIT from target config
rockchip: Enable meminfo and rng commands for Generic RK3566/RK3568
rockchip: Enable meminfo and rng commands for Generic RK3588
arch/arm/mach-rockchip/rk3568/Kconfig | 4 +++- arch/arm/mach-rockchip/rk3588/Kconfig | 23 +++-------------------- arch/arm/mach-rockchip/rk3588/rk3588.c | 19 +++++++++++++------ configs/generic-rk3568_defconfig | 3 +++ configs/generic-rk3588_defconfig | 3 +++ include/configs/anbernic-rgxx3-rk3566.h | 4 ++-- include/configs/evb_rk3568.h | 4 ++-- include/configs/evb_rk3588.h | 4 ++-- include/configs/khadas-edge2-rk3588s.h | 4 ++-- include/configs/powkiddy-x55-rk3566.h | 4 ++-- include/configs/rk3568_common.h | 5 ++++- include/configs/rk3588_common.h | 5 ++++- include/configs/toybrick_rk3588.h | 4 ++-- 13 files changed, 45 insertions(+), 41 deletions(-)
Signature · 1 line
2.49.0
PATCH 1/11 rockchip: rk3588: Use hptimer reg names in rockchip_stimer_init
Define constants for hptimer reg names and use them instead of magic numbers in rockchip_stimer_init().
--- arch/arm/mach-rockchip/rk3588/rk3588.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)
arch/arm/mach-rockchip/rk3588/rk3588.c +13 -6
@@ -116,18 +116,25 @@ void board_debug_uart_init(void) }#ifdef CONFIG_XPL_BUILD + +#define HP_TIMER_BASE CONFIG_ROCKCHIP_STIMER_BASE +#define HP_CTRL_REG 0x04 +#define TIMER_EN BIT(0) +#define HP_LOAD_COUNT0_REG 0x14 +#define HP_LOAD_COUNT1_REG 0x18 +void rockchip_stimer_init (void ) {/* If Timer already enabled, don't re-init it */ -u32 reg =readl (CONFIG_ROCKCHIP_STIMER_BASE +0x4 ); +u32 reg =readl (HP_TIMER_BASE +HP_CTRL_REG ); -if (reg &0x1 ) +if (reg &TIMER_EN )return ; - asmvolatile ("msr CNTFRQ_EL0, %0" : :"r" (CONFIG_COUNTER_FREQUENCY )); -writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE +0x14 ); -writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE +0x18 ); -writel (0x1 ,CONFIG_ROCKCHIP_STIMER_BASE +0x4 ); + asmvolatile ("msr cntfrq_el0, %0" : :"r" (CONFIG_COUNTER_FREQUENCY )); +writel (0xffffffff ,HP_TIMER_BASE +HP_LOAD_COUNT0_REG ); +writel (0xffffffff ,HP_TIMER_BASE +HP_LOAD_COUNT1_REG ); +writel (TIMER_EN ,HP_TIMER_BASE +HP_CTRL_REG ); }#endif
Signature · 1 line
2.49.0
Re: [PATCH 01/11] rockchip: rk3588: Use hptimer reg names in rockchip_stimer_init
Quoted 4 lines · Jonas Karlman
Define constants for hptimer reg names and use them instead of magic numbers in
rockchip_stimer_init().Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 40 lines
--- arch/arm/mach-rockchip/rk3588/rk3588.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)arch/arm/mach-rockchip/rk3588/rk3588.c +13
-6@@ -116,18 +116,25 @@ void board_debug_uart_init(void) }#ifdef CONFIG_XPL_BUILD + +#define HP_TIMER_BASE CONFIG_ROCKCHIP_STIMER_BASE +#define HP_CTRL_REG 0x04 +#define TIMER_EN BIT(0) +#define HP_LOAD_COUNT0_REG 0x14 +#define HP_LOAD_COUNT1_REG 0x18 +void rockchip_stimer_init (void ) {/* If Timer already enabled, don't re-init it */ -u32 reg =readl (CONFIG_ROCKCHIP_STIMER_BASE +0x4 ); +u32 reg =readl (HP_TIMER_BASE +HP_CTRL_REG ); -if (reg &0x1 ) +if (reg &TIMER_EN )return ; - asmvolatile ("msr CNTFRQ_EL0, %0" : :"r" (CONFIG_COUNTER_FREQUENCY )); -writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE +0x14 ); -writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE +0x18 ); -writel (0x1 ,CONFIG_ROCKCHIP_STIMER_BASE +0x4 ); + asmvolatile ("msr cntfrq_el0, %0" : :"r" (CONFIG_COUNTER_FREQUENCY )); +writel (0xffffffff ,HP_TIMER_BASE +HP_LOAD_COUNT0_REG ); +writel (0xffffffff ,HP_TIMER_BASE +HP_LOAD_COUNT1_REG ); +writel (TIMER_EN ,HP_TIMER_BASE +HP_CTRL_REG ); }#endif
PATCH 2/11 rockchip: Remove partitions env variable for RK356x
In reply to Jonas KarlmanThe partitions env variable is using an outdated partition layout that is typically expected to be used with older vendor miniloader blobs.
Rockchip devices will run fine using any partition layout if the first 16 MiB of MMC storage is ignored/skipped.
Remove the partitions env variable to stop encourage users a continued use of this outdated partition layout on RK356x devices.
--- include/configs/rk3568_common.h | 1 - 1 file changed, 1 deletion(-)
include/configs/rk3568_common.h +0 -1
@@ -29,7 +29,6 @@#define CFG_EXTRA_ENV_SETTINGS \ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ - "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \ "boot_targets=" BOOT_TARGETS "\0"
Signature · 1 line
2.49.0
Re: [PATCH 02/11] rockchip: Remove partitions env variable for RK356x
Quoted 10 lines · Jonas Karlman
The partitions env variable is using an outdated partition layout that is typically expected to be used with older vendor miniloader blobs.
Rockchip devices will run fine using any partition layout if the first 16 MiB of MMC storage is ignored/skipped.
Remove the partitions env variable to stop encourage users a continued use of this outdated partition layout on RK356x devices.
Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 16 lines
--- include/configs/rk3568_common.h | 1 - 1 file changed, 1 deletion(-)include/configs/rk3568_common.h +0
-1@@ -29,7 +29,6 @@#define CFG_EXTRA_ENV_SETTINGS \ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ - "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \ "boot_targets=" BOOT_TARGETS "\0"
PATCH 3/11 rockchip: Remove partitions env variable for RK3588
In reply to Jonas KarlmanThe partitions env variable is using an outdated partition layout that is typically expected to be used with older vendor miniloader blobs.
Rockchip devices will run fine using any partition layout if the first 16 MiB of MMC storage is ignored/skipped.
Remove the partitions env variable to stop encourage users a continued use of this outdated partition layout on RK3588 devices.
--- include/configs/rk3588_common.h | 1 - 1 file changed, 1 deletion(-)
include/configs/rk3588_common.h +0 -1
@@ -28,7 +28,6 @@#define CFG_EXTRA_ENV_SETTINGS \ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ - "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \ "boot_targets=" BOOT_TARGETS "\0"
Signature · 1 line
2.49.0
Re: [PATCH 03/11] rockchip: Remove partitions env variable for RK3588
Quoted 10 lines · Jonas Karlman
The partitions env variable is using an outdated partition layout that is typically expected to be used with older vendor miniloader blobs.
Rockchip devices will run fine using any partition layout if the first 16 MiB of MMC storage is ignored/skipped.
Remove the partitions env variable to stop encourage users a continued use of this outdated partition layout on RK3588 devices.
Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 16 lines
--- include/configs/rk3588_common.h | 1 - 1 file changed, 1 deletion(-)include/configs/rk3588_common.h +0
-1@@ -28,7 +28,6 @@#define CFG_EXTRA_ENV_SETTINGS \ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ - "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \ "boot_targets=" BOOT_TARGETS "\0"
PATCH 4/11 rockchip: Ensure device settings is defined before rk3568_common.h
In reply to Jonas KarlmanEnsure ROCKCHIP_DEVICE_SETTINGS is defined before including rk3568_common.h in board include/configs files.
--- include/configs/anbernic-rgxx3-rk3566.h | 4 ++-- include/configs/evb_rk3568.h | 4 ++-- include/configs/powkiddy-x55-rk3566.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
include/configs/anbernic-rgxx3-rk3566.h +2 -2
@@ -3,10 +3,10 @@#ifndef __ANBERNIC_RGXX3_RK3566_H#define __ANBERNIC_RGXX3_RK3566_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif
include/configs/evb_rk3568.h +2 -2
@@ -6,10 +6,10 @@#ifndef __EVB_RK3568_H#define __EVB_RK3568_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif
include/configs/powkiddy-x55-rk3566.h +2 -2
@@ -3,10 +3,10 @@#ifndef __POWKIDDY_X55_RK3566_H#define __POWKIDDY_X55_RK3566_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif
Signature · 1 line
2.49.0
Re: [PATCH 04/11] rockchip: Ensure device settings is defined before rk3568_common.h
Quoted 4 lines · Jonas Karlman
Ensure
ROCKCHIP_DEVICE_SETTINGSis defined before includingrk3568_common.hin boardinclude/configsfiles.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 57 lines
--- include/configs/anbernic-rgxx3-rk3566.h | 4 ++-- include/configs/evb_rk3568.h | 4 ++-- include/configs/powkiddy-x55-rk3566.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)include/configs/anbernic-rgxx3-rk3566.h +2
-2@@ -3,10 +3,10 @@#ifndef __ANBERNIC_RGXX3_RK3566_H#define __ANBERNIC_RGXX3_RK3566_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif include/configs/evb_rk3568.h +2
-2@@ -6,10 +6,10 @@#ifndef __EVB_RK3568_H#define __EVB_RK3568_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif include/configs/powkiddy-x55-rk3566.h +2
-2@@ -3,10 +3,10 @@#ifndef __POWKIDDY_X55_RK3566_H#define __POWKIDDY_X55_RK3566_H -#include <configs/rk3568_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3568_common.h> +#endif
PATCH 5/11 rockchip: Ensure device settings is defined before rk3588_common.h
In reply to Jonas KarlmanEnsure ROCKCHIP_DEVICE_SETTINGS is defined before including rk3588_common.h in board include/configs files.
--- include/configs/evb_rk3588.h | 4 ++-- include/configs/khadas-edge2-rk3588s.h | 4 ++-- include/configs/toybrick_rk3588.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
include/configs/evb_rk3588.h +2 -2
@@ -6,10 +6,10 @@#ifndef __EVB_RK3588_H#define __EVB_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif
include/configs/khadas-edge2-rk3588s.h +2 -2
@@ -6,10 +6,10 @@#ifndef __KHADAS_EDGE2_RK3588_H#define __KHADAS_EDGE2_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif /* __KHADAS_EDGE2_RK3588_H */
include/configs/toybrick_rk3588.h +2 -2
@@ -6,10 +6,10 @@#ifndef __TOYBRICK_RK3588_H#define __TOYBRICK_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif
Signature · 1 line
2.49.0
Re: [PATCH 05/11] rockchip: Ensure device settings is defined before rk3588_common.h
Quoted 4 lines · Jonas Karlman
Ensure
ROCKCHIP_DEVICE_SETTINGSis defined before includingrk3588_common.hin boardinclude/configsfiles.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 57 lines
--- include/configs/evb_rk3588.h | 4 ++-- include/configs/khadas-edge2-rk3588s.h | 4 ++-- include/configs/toybrick_rk3588.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)include/configs/evb_rk3588.h +2
-2@@ -6,10 +6,10 @@#ifndef __EVB_RK3588_H#define __EVB_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif include/configs/khadas-edge2-rk3588s.h +2
-2@@ -6,10 +6,10 @@#ifndef __KHADAS_EDGE2_RK3588_H#define __KHADAS_EDGE2_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif /* __KHADAS_EDGE2_RK3588_H */ include/configs/toybrick_rk3588.h +2
-2@@ -6,10 +6,10 @@#ifndef __TOYBRICK_RK3588_H#define __TOYBRICK_RK3588_H -#include <configs/rk3588_common.h> -#define ROCKCHIP_DEVICE_SETTINGS \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" +#include <configs/rk3588_common.h> +#endif
PATCH 6/11 rockchip: Use rk3568_common.h by default for RK356x boards
In reply to Jonas KarlmanEnsure rk3568_common.h can be used by boards directly by defining a blank ROCKCHIP_DEVICE_SETTINGS unless it already is defined.
Add a default SYS_CONFIG_NAME to include rk3568_common.h unless a board target overrides it in its board Kconfig.
--- arch/arm/mach-rockchip/rk3568/Kconfig | 3 +++ include/configs/rk3568_common.h | 4 ++++ 2 files changed, 7 insertions(+)
arch/arm/mach-rockchip/rk3568/Kconfig +3 -0
@@ -81,4 +81,7 @@ source "board/qnap/ts433/Kconfig" source "board/radxa/zero3-rk3566/Kconfig" source "board/xunlong/orangepi-3b-rk3566/Kconfig" +config SYS_CONFIG_NAME + default "rk3568_common" + endif
include/configs/rk3568_common.h +4 -0
@@ -15,6 +15,10 @@#define CFG_SYS_SDRAM_BASE 0#define SDRAM_MAX_SIZE 0xf0000000 +#ifndef ROCKCHIP_DEVICE_SETTINGS +#define ROCKCHIP_DEVICE_SETTINGS +#endif +#define ENV_MEM_LAYOUT_SETTINGS \ "scriptaddr=0x00c00000\0" \ "script_offset_f=0xffe000\0" \
Signature · 1 line
2.49.0
Re: [PATCH 06/11] rockchip: Use rk3568_common.h by default for RK356x boards
Quoted 7 lines · Jonas Karlman
Ensure
rk3568_common.hcan be used by boards directly by defining a blankROCKCHIP_DEVICE_SETTINGSunless it already is defined.Add a default
SYS_CONFIG_NAMEto includerk3568_common.hunless a board target overrides it in its boardKconfig.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 32 lines
--- arch/arm/mach-rockchip/rk3568/Kconfig | 3 +++ include/configs/rk3568_common.h | 4 ++++ 2 files changed, 7 insertions(+)arch/arm/mach-rockchip/rk3568/Kconfig +3
-0@@ -81,4 +81,7 @@ source "board/qnap/ts433/Kconfig" source "board/radxa/zero3-rk3566/Kconfig" source "board/xunlong/orangepi-3b-rk3566/Kconfig" +config SYS_CONFIG_NAME + default "rk3568_common" + endifinclude/configs/rk3568_common.h +4
-0@@ -15,6 +15,10 @@#define CFG_SYS_SDRAM_BASE 0#define SDRAM_MAX_SIZE 0xf0000000 +#ifndef ROCKCHIP_DEVICE_SETTINGS +#define ROCKCHIP_DEVICE_SETTINGS +#endif +#define ENV_MEM_LAYOUT_SETTINGS \ "scriptaddr=0x00c00000\0" \ "script_offset_f=0xffe000\0" \
PATCH 7/11 rockchip: Use rk3588_common.h by default for RK3588 boards
In reply to Jonas KarlmanEnsure rk3588_common.h can be used by boards directly by defining a blank ROCKCHIP_DEVICE_SETTINGS unless it already is defined.
Add a default SYS_CONFIG_NAME to include rk3588_common.h unless a board target overrides it in its board Kconfig.
--- arch/arm/mach-rockchip/rk3588/Kconfig | 3 +++ include/configs/rk3588_common.h | 4 ++++ 2 files changed, 7 insertions(+)
arch/arm/mach-rockchip/rk3588/Kconfig +3 -0
@@ -441,4 +441,7 @@ source "board/rockchip/toybrick_rk3588/Kconfig" source "board/theobroma-systems/jaguar_rk3588/Kconfig" source "board/theobroma-systems/tiger_rk3588/Kconfig" +config SYS_CONFIG_NAME + default "rk3588_common" + endif
include/configs/rk3588_common.h +4 -0
@@ -14,6 +14,10 @@#define CFG_SYS_SDRAM_BASE 0#define SDRAM_MAX_SIZE 0xf0000000 +#ifndef ROCKCHIP_DEVICE_SETTINGS +#define ROCKCHIP_DEVICE_SETTINGS +#endif +#define ENV_MEM_LAYOUT_SETTINGS \ "scriptaddr=0x00c00000\0" \ "script_offset_f=0xffe000\0" \
Signature · 1 line
2.49.0
Re: [PATCH 07/11] rockchip: Use rk3588_common.h by default for RK3588 boards
Quoted 7 lines · Jonas Karlman
Ensure
rk3588_common.hcan be used by boards directly by defining a blankROCKCHIP_DEVICE_SETTINGSunless it already is defined.Add a default
SYS_CONFIG_NAMEto includerk3588_common.hunless a board target overrides it in its boardKconfig.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 32 lines
--- arch/arm/mach-rockchip/rk3588/Kconfig | 3 +++ include/configs/rk3588_common.h | 4 ++++ 2 files changed, 7 insertions(+)arch/arm/mach-rockchip/rk3588/Kconfig +3
-0@@ -441,4 +441,7 @@ source "board/rockchip/toybrick_rk3588/Kconfig" source "board/theobroma-systems/jaguar_rk3588/Kconfig" source "board/theobroma-systems/tiger_rk3588/Kconfig" +config SYS_CONFIG_NAME + default "rk3588_common" + endifinclude/configs/rk3588_common.h +4
-0@@ -14,6 +14,10 @@#define CFG_SYS_SDRAM_BASE 0#define SDRAM_MAX_SIZE 0xf0000000 +#ifndef ROCKCHIP_DEVICE_SETTINGS +#define ROCKCHIP_DEVICE_SETTINGS +#endif +#define ENV_MEM_LAYOUT_SETTINGS \ "scriptaddr=0x00c00000\0" \ "script_offset_f=0xffe000\0" \
PATCH 8/11 rockchip: rk3568: Drop BOARD_LATE_INIT from target config
In reply to Jonas KarlmanBOARD_LATE_INIT is already selected by ROCKCHIP_RK3568 so there is no need to select it under any board target config.
--- arch/arm/mach-rockchip/rk3568/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-rockchip/rk3568/Kconfig +0 -1
@@ -5,7 +5,6 @@ choice config TARGET_EVB_RK3568 bool "RK3568 evaluation board" - select BOARD_LATE_INIT help RK3568 EVB is a evaluation board for Rockchp RK3568.
Signature · 1 line
2.49.0
Re: [PATCH 08/11] rockchip: rk3568: Drop BOARD_LATE_INIT from target config
Quoted 4 lines · Jonas Karlman
BOARD_LATE_INITis already selected byROCKCHIP_RK3568so there is no need to select it under any board target config.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 16 lines
--- arch/arm/mach-rockchip/rk3568/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-rockchip/rk3568/Kconfig +0
-1@@ -5,7 +5,6 @@ choice config TARGET_EVB_RK3568 bool "RK3568 evaluation board" - select BOARD_LATE_INIT help RK3568 EVB is a evaluation board for Rockchp RK3568.
PATCH 9/11 rockchip: rk3588: Drop BOARD_LATE_INIT from target config
In reply to Jonas KarlmanBOARD_LATE_INIT is already selected by ROCKCHIP_RK3588 so there is no need to select it under any board target config.
--- arch/arm/mach-rockchip/rk3588/Kconfig | 20 -------------------- 1 file changed, 20 deletions(-)
arch/arm/mach-rockchip/rk3588/Kconfig +0 -20
@@ -2,13 +2,11 @@ if ROCKCHIP_RK3588 config TARGET_EVB_RK3588 bool "Rockchip EVB1 v10" - select BOARD_LATE_INIT help RK3588 EVB is a evaluation board for Rockchp RK3588. config TARGET_CM3588_NAS_RK3588 bool "FriendlyElec CM3588 NAS" - select BOARD_LATE_INIT help The CM3588 NAS by FriendlyElec pairs the CM3588 compute module, based on the Rockchip RK3588 SoC, with the CM3588 NAS Kit carrier board.
@@ -31,7 +29,6 @@ config TARGET_CM3588_NAS_RK3588 config TARGET_GENBOOK_CM5_RK3588 bool "Cool Pi CM5 GenBook" - select BOARD_LATE_INIT help GeenBook is a notebook based on Rockchip RK3588, and works as a carrier board connect with CM5 SOM.
@@ -49,7 +46,6 @@ config TARGET_GENBOOK_CM5_RK3588 config TARGET_JAGUAR_RK3588 bool "Theobroma Systems SBC-RK3588-AMR (Jaguar)" - select BOARD_LATE_INIT help The SBC-RK3588-AMR is a Single Board Computer designed by Theobroma Systems for autonomous mobile robots.
@@ -76,7 +72,6 @@ config TARGET_JAGUAR_RK3588 config TARGET_KHADAS_EDGE2_RK3588 bool "Khadas Edge2 RK3588 board" - select BOARD_LATE_INIT help Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.
@@ -98,7 +93,6 @@ config TARGET_KHADAS_EDGE2_RK3588 config TARGET_NANOPCT6_RK3588 bool "FriendlyElec NanoPC-T6 RK3588 board" - select BOARD_LATE_INIT help The NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec.
@@ -143,7 +137,6 @@ config TARGET_NANOPCT6_RK3588 config TARGET_NANOPI_R6C_RK3588S bool "FriendlyElec NanoPi R6C" - select BOARD_LATE_INIT help The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s.
@@ -155,7 +148,6 @@ config TARGET_NANOPI_R6C_RK3588S config TARGET_NANOPI_R6S_RK3588S bool "FriendlyElec NanoPi R6S" - select BOARD_LATE_INIT help The NanoPi R6S is a SBC by FriendlyElec based on the Rockchip RK3588s.
@@ -167,7 +159,6 @@ config TARGET_NANOPI_R6S_RK3588S config TARGET_NOVA_RK3588 bool "Indiedroid Nova RK3588" - select BOARD_LATE_INIT help Indiedroid Nova is a Rockchip RK3588s based SBC by Indiedroid. It comes in configurations from 4GB of RAM to 16GB of RAM,
@@ -176,13 +167,11 @@ config TARGET_NOVA_RK3588 config TARGET_ODROID_M2_RK3588S bool "Hardkernel ODROID-M2" - select BOARD_LATE_INIT help Hardkernel ODROID-M2 single board computer with a RK3588S2 SoC. config TARGET_RK3588_NEU6 bool "Edgeble Neural Compute Module 6(Neu6) SoM" - select BOARD_LATE_INIT help Neu6A: Neural Compute Module 6A(Neu6A) is a 96boards SoM-CB compute module
@@ -204,7 +193,6 @@ config TARGET_RK3588_NEU6 config TARGET_ROCK5A_RK3588 bool "Radxa ROCK5A RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK5A is a Rockchip RK3588S based SBC (Single Board Computer) by Radxa.
@@ -231,7 +219,6 @@ config TARGET_ROCK5A_RK3588 config TARGET_ROCK5B_RK3588 bool "Radxa ROCK5B RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK5B is a Rockchip RK3588 based SBC (Single Board Computer) by Radxa.
@@ -256,7 +243,6 @@ config TARGET_ROCK5B_RK3588 config TARGET_ROCK_5_ITX_RK3588 bool "Radxa ROCK-5-ITX RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK-5-ITX is a Rockchip RK3588 based SBC (Single Board Computer) by Radxa in the ITX formfactor.
@@ -284,7 +270,6 @@ config TARGET_ROCK_5_ITX_RK3588 config TARGET_ROCK_5C_RK3588S bool "Radxa ROCK 5C RK3588S2 board" - select BOARD_LATE_INIT help Radxa ROCK 5C is a Rockchip RK3588S2 based single board computer.
@@ -304,7 +289,6 @@ config TARGET_ROCK_5C_RK3588S config TARGET_SIGE7_RK3588 bool "ArmSoM Sige7 RK3588 board" - select BOARD_LATE_INIT help ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by ArmSoM.
@@ -329,14 +313,12 @@ config TARGET_SIGE7_RK3588 config TARGET_QUARTZPRO64_RK3588 bool "Pine64 QuartzPro64 RK3588 board" - select BOARD_LATE_INIT help Pine64 QuartzPro64 is a Rockchip RK3588 based SBC (Single Board Computer) by Pine64. config TARGET_TIGER_RK3588 bool "Theobroma Systems SOM-RK3588-Q7 (Tiger)" - select BOARD_LATE_INIT help The RK3588-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the
@@ -366,7 +348,6 @@ config TARGET_TIGER_RK3588 config TARGET_TURINGRK1_RK3588 bool "Turing Machines RK1 RK3588 board" - select BOARD_LATE_INIT help The Turing RK1 is a Rockchip RK3588 based SoM from Turing Machines.
@@ -389,7 +370,6 @@ config TARGET_TURINGRK1_RK3588 config TARGET_TOYBRICK_RK3588 bool "Toybrick TB-RK3588X board" - select BOARD_LATE_INIT help Rockchip Toybrick TB-RK3588X is a Rockchip RK3588 based development board. TB-RK3588X adopts core board and mainboard design. The core board is connected
Signature · 1 line
2.49.0
Re: [PATCH 09/11] rockchip: rk3588: Drop BOARD_LATE_INIT from target config
Quoted 4 lines · Jonas Karlman
BOARD_LATE_INITis already selected byROCKCHIP_RK3588so there is no need to select it under any board target config.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 163 lines
--- arch/arm/mach-rockchip/rk3588/Kconfig | 20 -------------------- 1 file changed, 20 deletions(-)arch/arm/mach-rockchip/rk3588/Kconfig +0
-20@@ -2,13 +2,11 @@ if ROCKCHIP_RK3588 config TARGET_EVB_RK3588 bool "Rockchip EVB1 v10" - select BOARD_LATE_INIT help RK3588 EVB is a evaluation board for Rockchp RK3588. config TARGET_CM3588_NAS_RK3588 bool "FriendlyElec CM3588 NAS" - select BOARD_LATE_INIT help The CM3588 NAS by FriendlyElec pairs the CM3588 compute module, based on the Rockchip RK3588 SoC, with the CM3588 NAS Kit carrier board.@@ -31,7 +29,6 @@ config TARGET_CM3588_NAS_RK3588 config TARGET_GENBOOK_CM5_RK3588 bool "Cool Pi CM5 GenBook" - select BOARD_LATE_INIT help GeenBook is a notebook based on Rockchip RK3588, and works as a carrier board connect with CM5 SOM.@@ -49,7 +46,6 @@ config TARGET_GENBOOK_CM5_RK3588 config TARGET_JAGUAR_RK3588 bool "Theobroma Systems SBC-RK3588-AMR (Jaguar)" - select BOARD_LATE_INIT help The SBC-RK3588-AMR is a Single Board Computer designed by Theobroma Systems for autonomous mobile robots.@@ -76,7 +72,6 @@ config TARGET_JAGUAR_RK3588 config TARGET_KHADAS_EDGE2_RK3588 bool "Khadas Edge2 RK3588 board" - select BOARD_LATE_INIT help Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.@@ -98,7 +93,6 @@ config TARGET_KHADAS_EDGE2_RK3588 config TARGET_NANOPCT6_RK3588 bool "FriendlyElec NanoPC-T6 RK3588 board" - select BOARD_LATE_INIT help The NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec.@@ -143,7 +137,6 @@ config TARGET_NANOPCT6_RK3588 config TARGET_NANOPI_R6C_RK3588S bool "FriendlyElec NanoPi R6C" - select BOARD_LATE_INIT help The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s.@@ -155,7 +148,6 @@ config TARGET_NANOPI_R6C_RK3588S config TARGET_NANOPI_R6S_RK3588S bool "FriendlyElec NanoPi R6S" - select BOARD_LATE_INIT help The NanoPi R6S is a SBC by FriendlyElec based on the Rockchip RK3588s.@@ -167,7 +159,6 @@ config TARGET_NANOPI_R6S_RK3588S config TARGET_NOVA_RK3588 bool "Indiedroid Nova RK3588" - select BOARD_LATE_INIT help Indiedroid Nova is a Rockchip RK3588s based SBC by Indiedroid. It comes in configurations from 4GB of RAM to 16GB of RAM,@@ -176,13 +167,11 @@ config TARGET_NOVA_RK3588 config TARGET_ODROID_M2_RK3588S bool "Hardkernel ODROID-M2" - select BOARD_LATE_INIT help Hardkernel ODROID-M2 single board computer with a RK3588S2 SoC. config TARGET_RK3588_NEU6 bool "Edgeble Neural Compute Module 6(Neu6) SoM" - select BOARD_LATE_INIT help Neu6A: Neural Compute Module 6A(Neu6A) is a 96boards SoM-CB compute module@@ -204,7 +193,6 @@ config TARGET_RK3588_NEU6 config TARGET_ROCK5A_RK3588 bool "Radxa ROCK5A RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK5A is a Rockchip RK3588S based SBC (Single Board Computer) by Radxa.@@ -231,7 +219,6 @@ config TARGET_ROCK5A_RK3588 config TARGET_ROCK5B_RK3588 bool "Radxa ROCK5B RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK5B is a Rockchip RK3588 based SBC (Single Board Computer) by Radxa.@@ -256,7 +243,6 @@ config TARGET_ROCK5B_RK3588 config TARGET_ROCK_5_ITX_RK3588 bool "Radxa ROCK-5-ITX RK3588 board" - select BOARD_LATE_INIT help Radxa ROCK-5-ITX is a Rockchip RK3588 based SBC (Single Board Computer) by Radxa in the ITX formfactor.@@ -284,7 +270,6 @@ config TARGET_ROCK_5_ITX_RK3588 config TARGET_ROCK_5C_RK3588S bool "Radxa ROCK 5C RK3588S2 board" - select BOARD_LATE_INIT help Radxa ROCK 5C is a Rockchip RK3588S2 based single board computer.@@ -304,7 +289,6 @@ config TARGET_ROCK_5C_RK3588S config TARGET_SIGE7_RK3588 bool "ArmSoM Sige7 RK3588 board" - select BOARD_LATE_INIT help ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by ArmSoM.@@ -329,14 +313,12 @@ config TARGET_SIGE7_RK3588 config TARGET_QUARTZPRO64_RK3588 bool "Pine64 QuartzPro64 RK3588 board" - select BOARD_LATE_INIT help Pine64 QuartzPro64 is a Rockchip RK3588 based SBC (Single Board Computer) by Pine64. config TARGET_TIGER_RK3588 bool "Theobroma Systems SOM-RK3588-Q7 (Tiger)" - select BOARD_LATE_INIT help The RK3588-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the@@ -366,7 +348,6 @@ config TARGET_TIGER_RK3588 config TARGET_TURINGRK1_RK3588 bool "Turing Machines RK1 RK3588 board" - select BOARD_LATE_INIT help The Turing RK1 is a Rockchip RK3588 based SoM from Turing Machines.@@ -389,7 +370,6 @@ config TARGET_TURINGRK1_RK3588 config TARGET_TOYBRICK_RK3588 bool "Toybrick TB-RK3588X board" - select BOARD_LATE_INIT help Rockchip Toybrick TB-RK3588X is a Rockchip RK3588 based development board. TB-RK3588X adopts core board and mainboard design. The core board is connected
PATCH 10/11 rockchip: Enable meminfo and rng commands for Generic RK3566/RK3568
In reply to Jonas KarlmanThe meminfo and rng commands are helpful for testing, enable them.
--- configs/generic-rk3568_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/generic-rk3568_defconfig +3 -0
@@ -28,6 +28,8 @@ CONFIG_SPL_PAD_TO=0x7f8000 CONFIG_SPL_SPI_LOAD=y CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000 CONFIG_SPL_ATF=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEMINFO_MAP=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_MISC=y
@@ -35,6 +37,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_ROCKUSB=y CONFIG_CMD_USB_MASS_STORAGE=y # CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_RNG=y # CONFIG_SPL_DOS_PARTITION is not set CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIVE=y
Signature · 1 line
2.49.0
Re: [PATCH 10/11] rockchip: Enable meminfo and rng commands for Generic RK3566/RK3568
Quoted 3 lines · Jonas Karlman
The meminfo and rng commands are helpful for testing, enable them.
Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 25 lines
--- configs/generic-rk3568_defconfig | 3 +++ 1 file changed, 3 insertions(+)configs/generic-rk3568_defconfig +3
-0@@ -28,6 +28,8 @@ CONFIG_SPL_PAD_TO=0x7f8000 CONFIG_SPL_SPI_LOAD=y CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000 CONFIG_SPL_ATF=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEMINFO_MAP=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_MISC=y@@ -35,6 +37,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_ROCKUSB=y CONFIG_CMD_USB_MASS_STORAGE=y # CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_RNG=y # CONFIG_SPL_DOS_PARTITION is not set CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIVE=y
PATCH 11/11 rockchip: Enable meminfo and rng commands for Generic RK3588
In reply to Jonas KarlmanThe meminfo and rng commands are helpful for testing, enable them.
--- configs/generic-rk3588_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/generic-rk3588_defconfig +3 -0
@@ -22,6 +22,8 @@ CONFIG_SPL_MAX_SIZE=0x40000 CONFIG_SPL_PAD_TO=0x7f8000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_ATF=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEMINFO_MAP=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_MISC=y
@@ -29,6 +31,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_ROCKUSB=y CONFIG_CMD_USB_MASS_STORAGE=y # CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_RNG=y # CONFIG_SPL_DOS_PARTITION is not set CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIVE=y
Signature · 1 line
2.49.0
Re: [PATCH 11/11] rockchip: Enable meminfo and rng commands for Generic RK3588
Quoted 3 lines · Jonas Karlman
The meminfo and rng commands are helpful for testing, enable them.
Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 25 lines
--- configs/generic-rk3588_defconfig | 3 +++ 1 file changed, 3 insertions(+)configs/generic-rk3588_defconfig +3
-0@@ -22,6 +22,8 @@ CONFIG_SPL_MAX_SIZE=0x40000 CONFIG_SPL_PAD_TO=0x7f8000 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_ATF=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEMINFO_MAP=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_MISC=y@@ -29,6 +31,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_ROCKUSB=y CONFIG_CMD_USB_MASS_STORAGE=y # CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_RNG=y # CONFIG_SPL_DOS_PARTITION is not set CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIVE=y