common/Kconfig: Reword text for BOARD_TYPES
Subsystems (9)
PATCH 1/13 common/Kconfig: Reword text for BOARD_TYPES
While it is true that for some Samsung platforms, we call get_board_type() the main usage of this CONFIG switch is to enable board_types in global data, which is then used by various platforms.
--- common/Kconfig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
common/Kconfig +4 -5
@@ -551,12 +551,11 @@ endmenu menu "Init options" config BOARD_TYPES - bool "Call get_board_type() to get and display the board type" + bool "Enable board_type entry in global data struct" help - If this option is enabled, checkboard() will call get_board_type() - to get a string containing the board type and this will be - displayed immediately after the model is shown on the console - early in boot. + If this option is enabled, a field will be added to the global + data struct to store an unsigned long value for the type of + platform that we have determined we are on, at run-time. config DISPLAY_CPUINFO bool "Display information about the CPU during start up"
Signature · 1 line
2.34.1
PATCH 2/13 arm: mvebu: Add select on ARCH_EARLY_INIT_R if ARM64
We need to be calling arch_early_init_r() on 64bit mvebu platforms, so move this to a select.
--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
@@ -588,6 +588,7 @@ config ARCH_KIRKWOOD config ARCH_MVEBU bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)" + select ARCH_EARLY_INIT_R if ARM64 select DM select DM_SERIAL select DM_SPI
Signature · 1 line
2.34.1
Re: [PATCH 02/13] arm: mvebu: Add select on ARCH_EARLY_INIT_R if ARM64
Quoted 5 lines · Tom Rini
We need to be calling
arch_early_init_r()on 64bit mvebu platforms, so move this to a select.Cc Stefan Roese <[email protected]>Signed-off-by Tom Rini <[email protected]>
Thanks,
Stefan
Quoted 9 lines
--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig +0
-0
arch/arm/Kconfig config ARCH_KIRKWOOD · line 594
Quoted 7 lines
arch/arm/Kconfig +1
-0@@ -588,6 +588,7 @@ config ARCH_KIRKWOOD config ARCH_MVEBU bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)" + select ARCH_EARLY_INIT_R if ARM64 select DM select DM_SERIAL select DM_SPI
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Re: [PATCH 02/13] arm: mvebu: Add select on ARCH_EARLY_INIT_R if ARM64
In reply to Tom RiniQuoted 6 lines · Tom Rini
We need to be calling
arch_early_init_r()on 64bit mvebu platforms, so move this to a select.Cc Stefan Roese <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Stefan Roese <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 3/13 arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA
In reply to Tom RiniThe function arch_early_init_r only does anything on these platforms if we have FPGA (or SPL and SPL_FPGA) enabled, so move the logic to select based on that.
--- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
@@ -1209,6 +1209,7 @@ config ARCH_VF610 config ARCH_ZYNQ bool "Xilinx Zynq based platform" select ARM_TWD_TIMER + select ARCH_EARLY_INIT_R if FPGA || (SPL && SPL_FPGA) select CLK select CLK_ZYNQ select CPU_V7A
@@ -1230,7 +1231,6 @@ config ARCH_ZYNQ select SPL_TIMER if SPL select SUPPORT_SPL select TIMER - imply ARCH_EARLY_INIT_R imply BOARD_LATE_INIT imply CMD_CLK imply CMD_DM
Signature · 1 line
2.34.1
Re: [PATCH 03/13] arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA
Quoted 23 lines · Tom Rini
The function
arch_early_init_ronly does anything on these platforms if we have FPGA (or SPL andSPL_FPGA) enabled, so move the logic to select based on that.Cc Michal Simek <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/Kconfig +1
-0@@ -1209,6 +1209,7 @@ config ARCH_VF610 config ARCH_ZYNQ bool "Xilinx Zynq based platform" select ARM_TWD_TIMER + select ARCH_EARLY_INIT_R if FPGA || (SPL && SPL_FPGA) select CLK select CLK_ZYNQ select CPU_V7A
arch/arm/Kconfig config ARCH_ZYNQ · line 1236
Quoted 7 lines
arch/arm/Kconfig +0
-1@@ -1230,7 +1231,6 @@ config ARCH_ZYNQ select SPL_TIMER if SPL select SUPPORT_SPL select TIMER - imply ARCH_EARLY_INIT_R imply BOARD_LATE_INIT imply CMD_CLK imply CMD_DM
Thanks,
Michal
Simon Glass
Reviewed-byRe: [PATCH 03/13] arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA
Quoted 8 lines · Michal Simek
Quoted 4 lines · Tom Rini
The function
arch_early_init_ronly does anything on these platforms if we have FPGA (or SPL andSPL_FPGA) enabled, so move the logic to select based on that.
Quoted 5 lines
Quoted 5 lines
Cc Michal Simek <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Re: [PATCH 03/13] arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA
In reply to Tom RiniQuoted 8 lines · Tom Rini
The function
arch_early_init_ronly does anything on these platforms if we have FPGA (or SPL andSPL_FPGA) enabled, so move the logic to select based on that.Cc Michal Simek <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Michal Simek <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 4/13 arm: rk3368: Select ARCH_EARLY_INIT_R when used
In reply to Tom RiniOn the lion and evb-px5 platforms, we need this function, so select it.
--- arch/arm/mach-rockchip/rk3368/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-rockchip/rk3368/Kconfig +2 -0
@@ -5,6 +5,7 @@ choice config TARGET_LION_RK3368 bool "Theobroma Systems RK3368-uQ7 (Lion) module" + select ARCH_EARLY_INIT_R help The RK3368-uQ7 is a micro-Qseven form-factor (40mm x 70mm, MXM-230 connector) system-on-module designed by Theobroma
@@ -34,6 +35,7 @@ config TARGET_GEEKBOX config TARGET_EVB_PX5 bool "Evb-PX5" + select ARCH_EARLY_INIT_R help PX5 EVB is designed by Rockchip for automotive field with integrated CVBS (TP2825) / MIPI DSI / CSI / LVDS
Signature · 1 line
2.34.1
Re: [PATCH 04/13] arm: rk3368: Select ARCH_EARLY_INIT_R when used
arch/arm/mach-rockchip/rk3368/Kconfig choice
Quoted 16 lines · Tom Rini
On the lion and evb-px5 platforms, we need this function, so select it.
Cc Andy Yan <[email protected]>Cc Quentin Schulz <[email protected]>Cc Klaus Goger <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/mach-rockchip/rk3368/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/rk3368/Kconfig +0
-0@@ -5,6 +5,7 @@ choice
Re: [PATCH 04/13] arm: rk3368: Select ARCH_EARLY_INIT_R when used
In reply to Tom RiniHi Tom,
Quoted 4 lines · Tom Rini
On the lion and evb-px5 platforms, we need this function, so select it.
Cc Andy Yan <[email protected]>Cc Quentin Schulz <[email protected]>
Thanks,
Quentin
Re: [PATCH 04/13] arm: rk3368: Select ARCH_EARLY_INIT_R when used
In reply to Tom RiniQuoted 8 lines · Tom Rini
On the lion and evb-px5 platforms, we need this function, so select it.
Cc Andy Yan <[email protected]>Cc Quentin Schulz <[email protected]>Cc Klaus Goger <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Quentin Schulz <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 5/13 common: Make ARCH_EARLY_INIT_R be selected only
In reply to Tom RiniAs platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text.
--- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/Kconfig +1 -1
@@ -633,7 +633,7 @@ config EVENT_DEBUG endif # EVENT config ARCH_EARLY_INIT_R - bool "Call arch-specific init soon after relocation" + bool help With this option U-Boot will call arch_early_init_r() soon after relocation. Driver model is running by this point, and the cache
Signature · 1 line
2.34.1
Re: [PATCH 05/13] common: Make ARCH_EARLY_INIT_R be selected only
Quoted 11 lines · Tom Rini
As platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text.
Signed-off-by Tom Rini <[email protected]>--- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Re: [PATCH 05/13] common: Make ARCH_EARLY_INIT_R be selected only
In reply to Tom RiniQuoted 7 lines · Tom Rini
As platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text.
Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 6/13 imx9: Remove ARCH_MISC_INIT
In reply to Tom RiniWe don't need an empty function, we can just not enable the hook we don't use.
--- arch/arm/mach-imx/imx9/soc.c | 5 ----- configs/imx93_11x11_evk_defconfig | 1 - 2 files changed, 6 deletions(-)
arch/arm/mach-imx/imx9/soc.c +0 -5
@@ -208,11 +208,6 @@ int print_cpuinfo(void)return 0 ; } -int arch_misc_init (void ) -{ -return 0 ; -} -int ft_system_setup (void *blob,struct bd_info *bd) {return 0 ;
configs/imx93_11x11_evk_defconfig +0 -1
@@ -25,7 +25,6 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_REMAKE_ELF=y CONFIG_SYS_MONITOR_LEN=524288 CONFIG_DEFAULT_FDT_FILE="imx93-11x11-evk.dtb" -CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x26000
Signature · 1 line
2.34.1
Re: [PATCH 06/13] imx9: Remove ARCH_MISC_INIT
Quoted 10 lines · Tom Rini
We don't need an empty function, we can just not enable the hook we don't use.
Cc Peng Fan <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/mach-imx/imx9/soc.c | 5 ----- configs/imx93_11x11_evk_defconfig | 1 - 2 files changed, 6 deletions(-)
Re: [PATCH 06/13] imx9: Remove ARCH_MISC_INIT
In reply to Tom RiniQuoted 5 lines · Tom Rini
We don't need an empty function, we can just not enable the hook we don't use.
Cc Peng Fan <[email protected]>Signed-off-by Tom Rini <[email protected]>
Quoted 33 lines
--- arch/arm/mach-imx/imx9/soc.c | 5 ----- configs/imx93_11x11_evk_defconfig | 1 - 2 files changed, 6 deletions(-)arch/arm/mach-imx/imx9/soc.c +0
-5@@ -208,11 +208,6 @@ int print_cpuinfo(void)return 0 ; } -int arch_misc_init (void ) -{ -return 0 ; -} -int ft_system_setup (void *blob,struct bd_info *bd) {return 0 ;configs/imx93_11x11_evk_defconfig +0
-1@@ -25,7 +25,6 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_REMAKE_ELF=y CONFIG_SYS_MONITOR_LEN=524288 CONFIG_DEFAULT_FDT_FILE="imx93-11x11-evk.dtb" -CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x26000
Re: [PATCH 06/13] imx9: Remove ARCH_MISC_INIT
In reply to Tom RiniQuoted 7 lines · Tom Rini
We don't need an empty function, we can just not enable the hook we don't use.
Cc Peng Fan <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 7/13 mvebe: Drop ARCH_MISC_INIT from alleycat 5
In reply to Tom RiniIn this platform, arch_misc_init doesn't perform any real function. The call to get_soc_type_rev has no lasting side effects.
--- arch/arm/mach-mvebu/alleycat5/soc.c | 9 --------- configs/mvebu_ac5_rd_defconfig | 1 - 2 files changed, 10 deletions(-)
arch/arm/mach-mvebu/alleycat5/soc.c +0 -9
@@ -287,12 +287,3 @@ int mach_cpu_init(void)return 0 ; } - -int arch_misc_init (void ) -{ -u32 type, rev; - -get_soc_type_rev (&type, &rev); - -return 0 ; -}
configs/mvebu_ac5_rd_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_ARCH_EARLY_INIT_R=y -CONFIG_ARCH_MISC_INIT=y CONFIG_CMD_BOOTZ=y CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=10 CONFIG_CMD_MEMTEST=y
Signature · 1 line
2.34.1
Re: [PATCH 07/13] mvebe: Drop ARCH_MISC_INIT from alleycat 5
Quoted 10 lines · Tom Rini
In this platform,
arch_misc_initdoesn't perform any real function. The call toget_soc_type_revhas no lasting side effects.Cc Chris Packham <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/mach-mvebu/alleycat5/soc.c | 9 --------- configs/mvebu_ac5_rd_defconfig | 1 - 2 files changed, 10 deletions(-)
Re: [PATCH 07/13] mvebe: Drop ARCH_MISC_INIT from alleycat 5
In reply to Tom RiniQuoted 5 lines · Tom Rini
In this platform,
arch_misc_initdoesn't perform any real function. The call toget_soc_type_revhas no lasting side effects.Cc Chris Packham <[email protected]>Signed-off-by Tom Rini <[email protected]>\
A hangover from the Marvell code I started with. They've replaced it with an empty arch_misc_init() in their newer u-boot code but not selecting CONFIG_ARCH_MISC_INIT is a much better approach.
Quoted 34 lines
--- arch/arm/mach-mvebu/alleycat5/soc.c | 9 --------- configs/mvebu_ac5_rd_defconfig | 1 - 2 files changed, 10 deletions(-)arch/arm/mach-mvebu/alleycat5/soc.c +0
-9@@ -287,12 +287,3 @@ int mach_cpu_init(void)return 0 ; } - -int arch_misc_init (void ) -{ -u32 type, rev; - -get_soc_type_rev (&type, &rev); - -return 0 ; -}configs/mvebu_ac5_rd_defconfig +0
-1@@ -22,7 +22,6 @@ CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_ARCH_EARLY_INIT_R=y -CONFIG_ARCH_MISC_INIT=y CONFIG_CMD_BOOTZ=y CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=10 CONFIG_CMD_MEMTEST=y
Re: [PATCH 07/13] mvebe: Drop ARCH_MISC_INIT from alleycat 5
In reply to Tom RiniQuoted 7 lines · Tom Rini
In this platform,
arch_misc_initdoesn't perform any real function. The call toget_soc_type_revhas no lasting side effects.Cc Chris Packham <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Chris Packham <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 8/13 mvebu: Drop empty arch_misc_init
In reply to Tom RiniIf this hooks is needed later, it should be added and populated for real.
--- arch/arm/mach-mvebu/Kconfig | 1 - arch/arm/mach-mvebu/cpu.c | 11 ----------- 2 files changed, 12 deletions(-)
arch/arm/mach-mvebu/Kconfig +0 -1
@@ -5,7 +5,6 @@ config HAVE_MVEBU_EFUSE config ARMADA_32BIT bool - select ARCH_MISC_INIT select BOARD_EARLY_INIT_F select CPU_V7A select SPL_DM if SPL
arch/arm/mach-mvebu/cpu.c +0 -11
@@ -514,17 +514,6 @@ u32 mvebu_get_nand_clock(void) NAND_ECC_DIVCKL_RATIO_MASK) >> NAND_ECC_DIVCKL_RATIO_OFFS); } -/* -* SOC specific misc init -*/ -#if defined(CONFIG_ARCH_MISC_INIT ) -int arch_misc_init (void ) -{ -/* Nothing yet, perhaps we need something here later */ -return 0 ; -} -#endif /* CONFIG_ARCH_MISC_INIT */ -#if defined(CONFIG_MMC_SDHCI_MV ) && !defined(CONFIG_DM_MMC )int board_mmc_init (struct bd_info *bis) {
Signature · 1 line
2.34.1
Re: [PATCH 08/13] mvebu: Drop empty arch_misc_init
Quoted 5 lines · Tom Rini
If this hooks is needed later, it should be added and populated for real.
Cc Stefan Roese <[email protected]>Signed-off-by Tom Rini <[email protected]>
Thanks,
Stefan
Quoted 29 lines
--- arch/arm/mach-mvebu/Kconfig | 1 - arch/arm/mach-mvebu/cpu.c | 11 ----------- 2 files changed, 12 deletions(-)arch/arm/mach-mvebu/Kconfig +0
-1@@ -5,7 +5,6 @@ config HAVE_MVEBU_EFUSE config ARMADA_32BIT bool - select ARCH_MISC_INIT select BOARD_EARLY_INIT_F select CPU_V7A select SPL_DM if SPLarch/arm/mach-mvebu/cpu.c +0
-4@@ -514,17 +514,6 @@ u32 mvebu_get_nand_clock(void) NAND_ECC_DIVCKL_RATIO_MASK) >> NAND_ECC_DIVCKL_RATIO_OFFS); } -/* -* SOC specific misc init -*/ -#if defined(CONFIG_ARCH_MISC_INIT )
arch/arm/mach-mvebu/cpu.c u32 mvebu_get_nand_clock(void) · line 519
Quoted 10 lines
arch/arm/mach-mvebu/cpu.c +0
-7-int arch_misc_init (void ) -{ -/* Nothing yet, perhaps we need something here later */ -return 0 ; -} -#endif /* CONFIG_ARCH_MISC_INIT */ -#if defined(CONFIG_MMC_SDHCI_MV ) && !defined(CONFIG_DM_MMC )int board_mmc_init (struct bd_info *bis) {
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Re: [PATCH 08/13] mvebu: Drop empty arch_misc_init
In reply to Tom RiniQuoted 6 lines · Tom Rini
If this hooks is needed later, it should be added and populated for real.
Cc Stefan Roese <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Stefan Roese <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 9/13 s5p: Remove empty arch_misc_init
In reply to Tom RiniWe don't need to provide an empty arch_misc_init function here, we can just not enable the hook.
--- arch/arm/cpu/armv7/s5p4418/cpu.c | 7 ------- configs/s5p4418_nanopi2_defconfig | 1 - 2 files changed, 8 deletions(-)
arch/arm/cpu/armv7/s5p4418/cpu.c +0 -7
@@ -84,10 +84,3 @@ void enable_caches(void)/* Enable D-cache. I-cache is already enabled in start.S */ dcache_enable (); } - -#if defined(CONFIG_ARCH_MISC_INIT ) -int arch_misc_init (void ) -{ -return 0 ; -} -#endif /* CONFIG_ARCH_MISC_INIT */
configs/s5p4418_nanopi2_defconfig +0 -1
@@ -29,7 +29,6 @@ CONFIG_FIT_BEST_MATCH=y CONFIG_SUPPORT_RAW_INITRD=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=1 -CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_LATE_INIT=y CONFIG_HUSH_PARSER=y CONFIG_SYS_PBSIZE=1050
Signature · 1 line
2.34.1
Re: [PATCH 09/13] s5p: Remove empty arch_misc_init
Quoted 11 lines · Tom Rini
We don't need to provide an empty
arch_misc_initfunction here, we can just not enable the hook.Cc Stefan Bosch <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/cpu/armv7/s5p4418/cpu.c | 7 ------- configs/s5p4418_nanopi2_defconfig | 1 - 2 files changed, 8 deletions(-)
Minkyu Kang
Reviewed-byRe: [PATCH 09/13] s5p: Remove empty arch_misc_init
Quoted 13 lines · Simon Glass
Quoted 11 lines · Tom Rini
We don't need to provide an empty
arch_misc_initfunction here, we can just not enable the hook.Cc Stefan Bosch <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/cpu/armv7/s5p4418/cpu.c | 7 ------- configs/s5p4418_nanopi2_defconfig | 1 - 2 files changed, 8 deletions(-)
Quoted 2 lines
Reviewed-by Simon Glass <[email protected]>
Signature · 2 lines
Thanks, Minkyu Kang.
Re: [PATCH 09/13] s5p: Remove empty arch_misc_init
In reply to Tom RiniQuoted 7 lines · Tom Rini
We don't need to provide an empty
arch_misc_initfunction here, we can just not enable the hook.Cc Stefan Bosch <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Minkyu Kang <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 10/13 verdin-imx8mm: Remove unused SPL_BOARD_INIT
In reply to Tom RiniOn this platform SPL_BOARD_INIT is used to call arch_misc_init which is in turn empty, drop the call.
--- board/toradex/verdin-imx8mm/spl.c | 5 ----- configs/verdin-imx8mm_defconfig | 1 - 2 files changed, 6 deletions(-)
board/toradex/verdin-imx8mm/spl.c +0 -5
@@ -51,11 +51,6 @@ void spl_dram_init(void)ddr_init (&dram_timing); } -void spl_board_init (void ) -{ -arch_misc_init (); -} -#ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match (const char *name) {
configs/verdin-imx8mm_defconfig +0 -1
@@ -40,7 +40,6 @@ CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x910000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 -CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set CONFIG_SPL_STACK=0x920000 CONFIG_SYS_SPL_MALLOC=y
Signature · 1 line
2.34.1
Re: [PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT
Quoted 5 lines · Tom Rini
On this platform
SPL_BOARD_INITis used to callarch_misc_initwhich is in turn empty, drop the call.Cc Marcel Ziswiler <[email protected]>Signed-off-by Tom Rini <[email protected]>
Quoted 33 lines
---
board/toradex/verdin-imx8mm/spl.c | 5 -----
configs/verdin-imx8mm_defconfig | 1 -2 files changed, 6 deletions(-)board/toradex/verdin-imx8mm/spl.c +0
-0@@ -51,11 +51,6 @@ void spl_dram_init(void) ddr_init(&dram_timing); }board/toradex/verdin-imx8mm/spl.c +0
-5-void spl_board_init (void ) -{ - arch_misc_init(); -} -#ifdef
CONFIG_SPL_LOAD_FIT
intboard_fit_config_name_match(const char *name){configs/verdin-imx8mm_defconfig +0
-0@@ -40,7 +40,6 @@ CONFIG_BOARD_LATE_INIT=yCONFIG_SPL_HAS_BSS_LINKER_SECTION=y
CONFIG_SPL_BSS_START_ADDR=0x910000
CONFIG_SPL_BSS_MAX_SIZE=0x2000
-CONFIG_SPL_BOARD_INIT=y
#CONFIG_SPL_SHARES_INIT_SP_ADDRis not set
CONFIG_SPL_STACK=0x920000
CONFIG_SYS_SPL_MALLOC=y
Re: [PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT
Hi Tom
Quoted 8 lines · Marcel Ziswiler
Quoted 5 lines · Tom Rini
On this platform
SPL_BOARD_INITis used to callarch_misc_initwhich is in turn empty, drop the call.Cc Marcel Ziswiler <[email protected]>Signed-off-by Tom Rini <[email protected]>Acked-by Marcel Ziswiler <[email protected]>
Sorry, I have to take my ack back. Marek (and Francesco) are, of course, right and this is indeed needed for CAAM. Please see also [1] where it got changed/introduced in/to the current form.
[1] https://lore.kernel.org/all/[email protected]/
Cheers
Marcel
Quoted 33 lines
Quoted 33 lines
---
board/toradex/verdin-imx8mm/spl.c | 5 -----
configs/verdin-imx8mm_defconfig | 1 -2 files changed, 6 deletions(-)board/toradex/verdin-imx8mm/spl.c +0
-0@@ -51,11 +51,6 @@ void spl_dram_init(void) ddr_init(&dram_timing); }board/toradex/verdin-imx8mm/spl.c +0
-5-void spl_board_init (void ) -{ - arch_misc_init(); -} -#ifdef
CONFIG_SPL_LOAD_FIT
intboard_fit_config_name_match(const char *name){configs/verdin-imx8mm_defconfig +0
-0@@ -40,7 +40,6 @@ CONFIG_BOARD_LATE_INIT=yCONFIG_SPL_HAS_BSS_LINKER_SECTION=y
CONFIG_SPL_BSS_START_ADDR=0x910000
CONFIG_SPL_BSS_MAX_SIZE=0x2000
-CONFIG_SPL_BOARD_INIT=y
#CONFIG_SPL_SHARES_INIT_SP_ADDRis not set
CONFIG_SPL_STACK=0x920000
CONFIG_SYS_SPL_MALLOC=y
Re: [PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT
Quoted 10 lines · Marcel Ziswiler
Hi Tom
Quoted 7 lines · Marcel Ziswiler
Quoted 5 lines · Tom Rini
On this platform
SPL_BOARD_INITis used to callarch_misc_initwhich is in turn empty, drop the call.Cc Marcel Ziswiler <[email protected]>Signed-off-by Tom Rini <[email protected]>
Quoted 6 lines
Quoted 1 line
Acked-by Marcel Ziswiler <[email protected]>Sorry, I have to take my ack back. Marek (and Francesco) are, of course, right and this is indeed needed for CAAM. Please see also [1] where it got changed/introduced in/to the current form.
Alright, yeah. I've posted v2 which preserves the existing behavior, but it could be improved further still by someone with the hardware to confirm behavior on.
Signature · 1 line
Tom
Re: [PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT
Quoted 13 lines · Tom Rini
Quoted 12 lines · Marcel Ziswiler
Hi Tom
Quoted 8 lines · Marcel Ziswiler
Quoted 5 lines · Tom Rini
On this platform
SPL_BOARD_INITis used to callarch_misc_initwhich is in turn empty, drop the call.Cc Marcel Ziswiler <[email protected]>Signed-off-by Tom Rini <[email protected]>Acked-by Marcel Ziswiler <[email protected]>
Quoted 8 lines
Quoted 4 lines
Sorry, I have to take my ack back. Marek (and Francesco) are, of course, right and this is indeed needed for CAAM. Please see also [1] where it got changed/introduced in/to the current form.
Alright, yeah. I've posted v2 which preserves the existing behavior, but it could be improved further still by someone with the hardware to confirm behavior on.
[PATCHv2 12/13] global: Add a select for ARCH_MISC_INIT where used -- ?
I would say that even with that patch in, this specific one should be dropped.
At least this is what I understand from your comment here:
Quoted 1 line
Yes, it's still on the board to call
arch_misc_init()insidespl_board_init().
We can test your changes on the Verdin iMX8MM, even Marek should have one to my understanding, in case we are somehow late.
Thanks,
Francesco
Re: [PATCH 10/13] verdin-imx8mm: Remove unused SPL_BOARD_INIT
Quoted 19 lines · Francesco Dolcini
Quoted 18 lines · Tom Rini
Quoted 16 lines · Marcel Ziswiler
Hi Tom
Quoted 8 lines · Marcel Ziswiler
Quoted 5 lines · Tom Rini
On this platform
SPL_BOARD_INITis used to callarch_misc_initwhich is in turn empty, drop the call.Cc Marcel Ziswiler <[email protected]>Signed-off-by Tom Rini <[email protected]>Acked-by Marcel Ziswiler <[email protected]>Sorry, I have to take my ack back. Marek (and Francesco) are, of course, right and this is indeed needed for CAAM. Please see also [1] where it got changed/introduced in/to the current form.
Quoted 8 lines
Quoted 3 lines
Alright, yeah. I've posted v2 which preserves the existing behavior, but it could be improved further still by someone with the hardware to confirm behavior on.
[PATCHv2 12/13] global: Add a select for
ARCH_MISC_INITwhere used -- ?I would say that even with that patch in, this specific one should be dropped.
Yes, with v2 of 12/13, patches 10 and 11 from v1 of the series are dropped, to be clear.
Quoted 5 lines
At least this is what I understand from your comment here:
Quoted 1 line
Yes, it's still on the board to call
arch_misc_init()insidespl_board_init().We can test your changes on the Verdin iMX8MM, even Marek should have one to my understanding, in case we are somehow late.
What I mean is that Marek has suggested a more specific fix to this problem (it should not be per-board to get the CAAM working for HAB here, it should be in the SoC code and hooks), and I would quite welcome the general clean-up but can't test it, so won't write it, right now.
Signature · 1 line
Tom
PATCH 11/13 imx8mm-mx8menlo: Drop SPL_BOARD_INIT
In reply to Tom RiniOn this platform spl_board_init is a call to arch_misc_init which is a no-op, so drop the CONFIG options.
--- configs/imx8mm-mx8menlo_defconfig | 1 - 1 file changed, 1 deletion(-)
configs/imx8mm-mx8menlo_defconfig +0 -1
@@ -40,7 +40,6 @@ CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x910000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 -CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set CONFIG_SPL_STACK=0x920000 CONFIG_SYS_SPL_MALLOC=y
Signature · 1 line
2.34.1
Re: [PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT
Quoted 5 lines · Tom Rini
On this platform
spl_board_initis a call toarch_misc_initwhich is a no-op, so drop the CONFIG options.Cc Marek Vasut <[email protected]>Cc Olaf Mandel <[email protected]>
btw. put those under --- next time, that way they don't end up in commit message.
Quoted 1 line
Signed-off-by Tom Rini <[email protected]>
If CAAM is enabled, ARCH_MISC_INIT brings up the CAAM , and this is needed in SPL for U-Boot authentication using HABv4 . I believe that is why Verdin spl.c calls it.
Re: [PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT
Quoted 9 lines · Marek Vasut
Quoted 5 lines · Tom Rini
On this platform
spl_board_initis a call toarch_misc_initwhich is a no-op, so drop the CONFIG options.Cc Marek Vasut <[email protected]>Cc Olaf Mandel <[email protected]>btw. put those under --- next time, that way they don't end up in commit message.
Er, did the kernel change expected behavior here?
Quoted 5 lines
Quoted 1 line
Signed-off-by Tom Rini <[email protected]>If CAAM is enabled,
ARCH_MISC_INITbrings up the CAAM , and this is needed in SPL for U-Boot authentication using HABv4 . I believe that is why Verdinspl.ccalls it.
Then I'll put doing a follow-up on SPL_BOARD_INIT (which is another option that shouldn't be directly asked, but select'd when used) for that case. It fails to build in this series because CAAM isn't enabled so there's no arch_misc_init.
Signature · 1 line
Tom
Re: [PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT
Quoted 5 lines · Tom Rini
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Tom Rini
On this platform
spl_board_initis a call toarch_misc_initwhich is a no-op, so drop the CONFIG options.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Cc Marek Vasut <[email protected]>Cc Olaf Mandel <[email protected]>btw. put those under --- next time, that way they don't end up in commit message.
Er, did the kernel change expected behavior here?
Er ... wasn't that the case for like a year now ?
Quoted 10 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Tom Rini <[email protected]>If CAAM is enabled,
ARCH_MISC_INITbrings up the CAAM , and this is needed in SPL for U-Boot authentication using HABv4 . I believe that is why Verdinspl.ccalls it.Then I'll put doing a follow-up on
SPL_BOARD_INIT(which is another option that shouldn't be directly asked, but select'd when used) for that case. It fails to build in this series because CAAM isn't enabled so there's noarch_misc_init.
Just call the arch_board_init unconditionally, the CAAM inside of it is already conditional, so the compiler should inline the result if CAAM is disabled.
Re: [PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Tom Rini
Quoted 7 lines · Marek Vasut
Quoted 5 lines · Tom Rini
On this platform
spl_board_initis a call toarch_misc_initwhich is a no-op, so drop the CONFIG options.Cc Marek Vasut <[email protected]>Cc Olaf Mandel <[email protected]>
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
btw. put those under --- next time, that way they don't end up in commit message.
Er, did the kernel change expected behavior here?
Er ... wasn't that the case for like a year now ?
Is that a yes then?
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Tom Rini <[email protected]>If CAAM is enabled,
ARCH_MISC_INITbrings up the CAAM , and this is needed in SPL for U-Boot authentication using HABv4 . I believe that is why Verdinspl.ccalls it.
Quoted 8 lines
Quoted 4 lines
Then I'll put doing a follow-up on
SPL_BOARD_INIT(which is another option that shouldn't be directly asked, but select'd when used) for that case. It fails to build in this series because CAAM isn't enabled so there's noarch_misc_init.Just call the
arch_board_initunconditionally, the CAAM inside of it is already conditional, so the compiler should inline the result if CAAM is disabled.
It doesn't, and only maybe does with LTO. But we also shouldn't be enabling unused hooks. It sounds like imx8m should follow the other platforms that have an spl_board_init under arch/ ?
Signature · 1 line
Tom
Re: [PATCH 11/13] imx8mm-mx8menlo: Drop SPL_BOARD_INIT
Quoted 10 lines · Tom Rini
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Tom Rini
Quoted 7 lines · Marek Vasut
Quoted 5 lines · Tom Rini
On this platform
spl_board_initis a call toarch_misc_initwhich is a no-op, so drop the CONFIG options.Cc Marek Vasut <[email protected]>Cc Olaf Mandel <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
btw. put those under --- next time, that way they don't end up in commit message.
Er, did the kernel change expected behavior here?
Er ... wasn't that the case for like a year now ?
Is that a yes then?
I got repeated flak for sticking a wall of Cc: into the commit message recently, so I guess that's a yes .
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Tom Rini <[email protected]>If CAAM is enabled,
ARCH_MISC_INITbrings up the CAAM , and this is needed in SPL for U-Boot authentication using HABv4 . I believe that is why Verdinspl.ccalls it.Then I'll put doing a follow-up on
SPL_BOARD_INIT(which is another option that shouldn't be directly asked, but select'd when used) for that case. It fails to build in this series because CAAM isn't enabled so there's noarch_misc_init.
Quoted 7 lines
Quoted 3 lines
Just call the
arch_board_initunconditionally, the CAAM inside of it is already conditional, so the compiler should inline the result if CAAM is disabled.It doesn't, and only maybe does with LTO. But we also shouldn't be enabling unused hooks. It sounds like imx8m should follow the other platforms that have an
spl_board_initunderarch/?
spl_BOARD_init shouldn't be in arch in the first place, but I think what needs to be done here in the long run is, set DM_FLAG_PROBE_AFTER_BIND on CAAM in SPL if CAAM is enabled. That can be done somewhere in arch/arm/mach-imx/imx8m early boot code. And then let DM bring the CAAM up. I think that's the way to go with cleaning up the CAAM and spl_board_init part, without breaking support for HABv4.
PATCH 12/13 global: Add a select for ARCH_MISC_INIT where used
In reply to Tom RiniWhen we have an arch_misc_init function, we can select it to ensure it's used.
In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
--- arch/arm/Kconfig | 7 +++++++ arch/arm/cpu/armv7/ls102xa/Kconfig | 1 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + arch/arm/mach-imx/imx8/Kconfig | 2 -- arch/arm/mach-imx/imx8m/Kconfig | 6 ------ arch/arm/mach-imx/mx6/Kconfig | 5 ----- arch/arm/mach-imx/mx7ulp/Kconfig | 1 - arch/arm/mach-imx/mxs/Kconfig | 3 +++ arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-tegra/tegra124/Kconfig | 1 + arch/arm/mach-tegra/tegra20/Kconfig | 1 + arch/arm/mach-tegra/tegra30/Kconfig | 2 ++ arch/mips/Kconfig | 1 + arch/powerpc/Kconfig | 1 + 14 files changed, 19 insertions(+), 14 deletions(-)
arch/arm/Kconfig +7 -0
@@ -605,6 +605,7 @@ config ARCH_MVEBU config ARCH_ORION5X bool "Marvell Orion" + select ARCH_MISC_INIT select CPU_ARM926EJS select GPIO_EXTRA_HEADER select SPL_SEPARATE_BSS if SPL
@@ -819,6 +820,7 @@ config ARCH_LPC32XX config ARCH_IMX8 bool "NXP i.MX8 platform" select ARM64 + select ARCH_MISC_INIT if FSL_CAAM select SYS_FSL_HAS_SEC select SYS_FSL_SEC_COMPAT_4 select SYS_FSL_SEC_LE
@@ -832,6 +834,7 @@ config ARCH_IMX8 config ARCH_IMX8M bool "NXP i.MX8M platform" select ARM64 + select ARCH_MISC_INIT if FSL_CAAM select GPIO_EXTRA_HEADER select MACH_IMX select SYS_FSL_HAS_SEC
@@ -902,6 +905,7 @@ config ARCH_MX31 config ARCH_MX7ULP bool "NXP MX7ULP" + select ARCH_MISC_INIT if FSL_CAAM select BOARD_POSTCLK_INIT select CPU_V7A select GPIO_EXTRA_HEADER
@@ -929,6 +933,7 @@ config ARCH_MX7 config ARCH_MX6 bool "Freescale MX6" + select ARCH_MISC_INIT select BOARD_POSTCLK_INIT select CPU_V7A select GPIO_EXTRA_HEADER
@@ -1023,6 +1028,7 @@ config ARCH_QEMU config ARCH_RMOBILE bool "Renesas ARM SoCs" + select ARCH_MISC_INIT if !RZA1 select DM select DM_SERIAL select GPIO_EXTRA_HEADER
@@ -1198,6 +1204,7 @@ config ARCH_VERSAL_NET config ARCH_VF610 bool "Freescale Vybrid" + select ARCH_MISC_INIT select CPU_V7A select GPIO_EXTRA_HEADER select IOMUX_SHARE_CONF_REG
arch/arm/cpu/armv7/ls102xa/Kconfig +1 -0
@@ -1,5 +1,6 @@ config ARCH_LS1021A bool + select ARCH_MISC_INIT if FSL_CAAM select FSL_DEVICE_DISABLE select FSL_IFC if !QSPI_BOOT && !SD_BOOT_QSPI select LS102XA_STREAM_ID
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
@@ -328,6 +328,7 @@ config ARCH_LX2160A config FSL_LSCH2 bool + select ARCH_MISC_INIT if FSL_CAAM select SKIP_LOWLEVEL_INIT select SYS_FSL_CCSR_GUR_BE select SYS_FSL_CCSR_SCFG_BE
arch/arm/mach-imx/imx8/Kconfig +0 -2
@@ -75,7 +75,6 @@ config TARGET_IMX8QM_MEK select BOARD_LATE_INIT select IMX8QM select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_CONGA_QMX8
@@ -98,7 +97,6 @@ config TARGET_IMX8QXP_MEK select BOARD_LATE_INIT select IMX8QXP select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL endchoice
arch/arm/mach-imx/imx8m/Kconfig +0 -6
@@ -51,7 +51,6 @@ config TARGET_IMX8MQ_EVK select IMX8MQ select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MQ_PHANBELL
@@ -74,7 +73,6 @@ config TARGET_IMX8MM_EVK select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MM_ICORE_MX8MM
@@ -126,7 +124,6 @@ config TARGET_KONTRON_MX8MM select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MN_BSH_SMM_S2
@@ -198,7 +195,6 @@ config TARGET_IMX8MP_EVK select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MP_VENICE
@@ -250,7 +246,6 @@ config TARGET_IMX8MM_BEACON select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MN_BEACON
@@ -260,7 +255,6 @@ config TARGET_IMX8MN_BEACON select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_PHYCORE_IMX8MM
arch/arm/mach-imx/mx6/Kconfig +0 -5
@@ -364,7 +364,6 @@ config TARGET_MX6SABREAUTO select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SABRESD bool "mx6sabresd"
@@ -376,7 +375,6 @@ config TARGET_MX6SABRESD select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SLEVK bool "mx6slevk"
@@ -401,7 +399,6 @@ config TARGET_MX6SXSABRESD select DM_THERMAL select SUPPORT_SPL select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SXSABREAUTO bool "mx6sxsabreauto"
@@ -421,7 +418,6 @@ config TARGET_MX6UL_9X9_EVK select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6UL_14X14_EVK bool "mx6ul_14x14_evk"
@@ -432,7 +428,6 @@ config TARGET_MX6UL_14X14_EVK select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6UL_ENGICAM bool "Support Engicam GEAM6UL/Is.IoT"
arch/arm/mach-imx/mx7ulp/Kconfig +0 -1
@@ -41,7 +41,6 @@ config TARGET_MX7ULP_EVK select MX7ULP select SYS_ARCH_TIMER select FSL_CAAM - select ARCH_MISC_INIT endchoice
arch/arm/mach-imx/mxs/Kconfig +3 -0
@@ -10,10 +10,12 @@ choice config TARGET_MX23_OLINUXINO bool "Support mx23_olinuxino" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_MX23EVK bool "Support mx23evk" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_XFI3
@@ -41,6 +43,7 @@ choice config TARGET_MX28EVK bool "Support mx28evk" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_XEA
arch/arm/mach-omap2/Kconfig +1 -0
@@ -113,6 +113,7 @@ config AM43XX config AM33XX bool "AM33XX SoC" select ARM_CORTEX_A8_CVE_2017_5715 + select ARCH_MISC_INIT if USB select DM_EVENT select SPECIFY_CONSOLE_INDEX imply NAND_OMAP_ELM
arch/arm/mach-tegra/tegra124/Kconfig +1 -0
@@ -6,6 +6,7 @@ choice config TARGET_APALIS_TK1 bool "Toradex Apalis TK1 module" + select ARCH_MISC_INIT select ARCH_SUPPORT_PSCI select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT
arch/arm/mach-tegra/tegra20/Kconfig +1 -0
@@ -57,6 +57,7 @@ config TARGET_VENTANA config TARGET_COLIBRI_T20 bool "Toradex Colibri T20 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT select TEGRA_UARTA_SDIO1
arch/arm/mach-tegra/tegra30/Kconfig +2 -0
@@ -12,6 +12,7 @@ choice config TARGET_APALIS_T30 bool "Toradex Apalis T30 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT config TARGET_BEAVER
@@ -26,6 +27,7 @@ config TARGET_CARDHU config TARGET_COLIBRI_T30 bool "Toradex Colibri T30 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT config TARGET_TEC_NG
arch/mips/Kconfig +1 -0
@@ -98,6 +98,7 @@ config ARCH_JZ47XX config ARCH_OCTEON bool "Support Marvell Octeon CN7xxx platforms" select ARCH_EARLY_INIT_R + select ARCH_MISC_INIT select CPU_CAVIUM_OCTEON select DISPLAY_CPUINFO select DMA_ADDR_T_64BIT
arch/powerpc/Kconfig +1 -0
@@ -17,6 +17,7 @@ config MPC83xx config MPC85xx bool "MPC85xx" + select ARCH_MISC_INIT if FSL_CAAM && !(ARCH_P1010 || TARGET_KMCENT2) select CREATE_ARCH_SYMLINK select SYS_FSL_DDR select SYS_FSL_DDR_BE
Signature · 1 line
2.34.1
PATCH v2 12/13 global: Add a select for ARCH_MISC_INIT where used
When we have an arch_misc_init function, we can select it to ensure it's used.
In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
---
Cc: Marcel Ziswiler <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Olaf Mandel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP i.MX U-Boot Team <[email protected]>
Changes in v2:
- Always select ARCH_MISC_INIT on IMX8M as dealing with FSL_CAAM or not needs further SoC-specific clean up work. This replaces patches 10 and 11 from before so that if the user enables FSL_CAAM then they will continue to get the functionality they had before. As Marek noted in the thread, further clean-up in this area would be good.
--- arch/arm/Kconfig | 7 +++++++ arch/arm/cpu/armv7/ls102xa/Kconfig | 1 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + arch/arm/mach-imx/imx8/Kconfig | 2 -- arch/arm/mach-imx/imx8m/Kconfig | 6 ------ arch/arm/mach-imx/mx6/Kconfig | 5 ----- arch/arm/mach-imx/mx7ulp/Kconfig | 1 - arch/arm/mach-imx/mxs/Kconfig | 3 +++ arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-tegra/tegra124/Kconfig | 1 + arch/arm/mach-tegra/tegra20/Kconfig | 1 + arch/arm/mach-tegra/tegra30/Kconfig | 2 ++ arch/mips/Kconfig | 1 + arch/powerpc/Kconfig | 1 + 14 files changed, 19 insertions(+), 14 deletions(-)
arch/arm/Kconfig +7 -0
@@ -605,6 +605,7 @@ config ARCH_MVEBU config ARCH_ORION5X bool "Marvell Orion" + select ARCH_MISC_INIT select CPU_ARM926EJS select GPIO_EXTRA_HEADER select SPL_SEPARATE_BSS if SPL
@@ -819,6 +820,7 @@ config ARCH_LPC32XX config ARCH_IMX8 bool "NXP i.MX8 platform" select ARM64 + select ARCH_MISC_INIT if FSL_CAAM select SYS_FSL_HAS_SEC select SYS_FSL_SEC_COMPAT_4 select SYS_FSL_SEC_LE
@@ -832,6 +834,7 @@ config ARCH_IMX8 config ARCH_IMX8M bool "NXP i.MX8M platform" select ARM64 + select ARCH_MISC_INIT select GPIO_EXTRA_HEADER select MACH_IMX select SYS_FSL_HAS_SEC
@@ -902,6 +905,7 @@ config ARCH_MX31 config ARCH_MX7ULP bool "NXP MX7ULP" + select ARCH_MISC_INIT if FSL_CAAM select BOARD_POSTCLK_INIT select CPU_V7A select GPIO_EXTRA_HEADER
@@ -929,6 +933,7 @@ config ARCH_MX7 config ARCH_MX6 bool "Freescale MX6" + select ARCH_MISC_INIT select BOARD_POSTCLK_INIT select CPU_V7A select GPIO_EXTRA_HEADER
@@ -1023,6 +1028,7 @@ config ARCH_QEMU config ARCH_RMOBILE bool "Renesas ARM SoCs" + select ARCH_MISC_INIT if !RZA1 select DM select DM_SERIAL select GPIO_EXTRA_HEADER
@@ -1198,6 +1204,7 @@ config ARCH_VERSAL_NET config ARCH_VF610 bool "Freescale Vybrid" + select ARCH_MISC_INIT select CPU_V7A select GPIO_EXTRA_HEADER select IOMUX_SHARE_CONF_REG
arch/arm/cpu/armv7/ls102xa/Kconfig +1 -0
@@ -1,5 +1,6 @@ config ARCH_LS1021A bool + select ARCH_MISC_INIT if FSL_CAAM select FSL_DEVICE_DISABLE select FSL_IFC if !QSPI_BOOT && !SD_BOOT_QSPI select LS102XA_STREAM_ID
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
@@ -328,6 +328,7 @@ config ARCH_LX2160A config FSL_LSCH2 bool + select ARCH_MISC_INIT if FSL_CAAM select SKIP_LOWLEVEL_INIT select SYS_FSL_CCSR_GUR_BE select SYS_FSL_CCSR_SCFG_BE
arch/arm/mach-imx/imx8/Kconfig +0 -2
@@ -75,7 +75,6 @@ config TARGET_IMX8QM_MEK select BOARD_LATE_INIT select IMX8QM select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_CONGA_QMX8
@@ -98,7 +97,6 @@ config TARGET_IMX8QXP_MEK select BOARD_LATE_INIT select IMX8QXP select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL endchoice
arch/arm/mach-imx/imx8m/Kconfig +0 -6
@@ -51,7 +51,6 @@ config TARGET_IMX8MQ_EVK select IMX8MQ select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MQ_PHANBELL
@@ -74,7 +73,6 @@ config TARGET_IMX8MM_EVK select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MM_ICORE_MX8MM
@@ -126,7 +124,6 @@ config TARGET_KONTRON_MX8MM select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MN_BSH_SMM_S2
@@ -198,7 +195,6 @@ config TARGET_IMX8MP_EVK select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MP_VENICE
@@ -250,7 +246,6 @@ config TARGET_IMX8MM_BEACON select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_IMX8MN_BEACON
@@ -260,7 +255,6 @@ config TARGET_IMX8MN_BEACON select SUPPORT_SPL select IMX8M_LPDDR4 select FSL_CAAM - select ARCH_MISC_INIT select SPL_CRYPTO if SPL config TARGET_PHYCORE_IMX8MM
arch/arm/mach-imx/mx6/Kconfig +0 -5
@@ -364,7 +364,6 @@ config TARGET_MX6SABREAUTO select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SABRESD bool "mx6sabresd"
@@ -376,7 +375,6 @@ config TARGET_MX6SABRESD select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SLEVK bool "mx6slevk"
@@ -401,7 +399,6 @@ config TARGET_MX6SXSABRESD select DM_THERMAL select SUPPORT_SPL select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6SXSABREAUTO bool "mx6sxsabreauto"
@@ -421,7 +418,6 @@ config TARGET_MX6UL_9X9_EVK select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6UL_14X14_EVK bool "mx6ul_14x14_evk"
@@ -432,7 +428,6 @@ config TARGET_MX6UL_14X14_EVK select SUPPORT_SPL imply CMD_DM select FSL_CAAM - select ARCH_MISC_INIT config TARGET_MX6UL_ENGICAM bool "Support Engicam GEAM6UL/Is.IoT"
arch/arm/mach-imx/mx7ulp/Kconfig +0 -1
@@ -41,7 +41,6 @@ config TARGET_MX7ULP_EVK select MX7ULP select SYS_ARCH_TIMER select FSL_CAAM - select ARCH_MISC_INIT endchoice
arch/arm/mach-imx/mxs/Kconfig +3 -0
@@ -10,10 +10,12 @@ choice config TARGET_MX23_OLINUXINO bool "Support mx23_olinuxino" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_MX23EVK bool "Support mx23evk" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_XFI3
@@ -41,6 +43,7 @@ choice config TARGET_MX28EVK bool "Support mx28evk" + select ARCH_MISC_INIT select BOARD_EARLY_INIT_F config TARGET_XEA
arch/arm/mach-omap2/Kconfig +1 -0
@@ -113,6 +113,7 @@ config AM43XX config AM33XX bool "AM33XX SoC" select ARM_CORTEX_A8_CVE_2017_5715 + select ARCH_MISC_INIT if USB select DM_EVENT select SPECIFY_CONSOLE_INDEX imply NAND_OMAP_ELM
arch/arm/mach-tegra/tegra124/Kconfig +1 -0
@@ -6,6 +6,7 @@ choice config TARGET_APALIS_TK1 bool "Toradex Apalis TK1 module" + select ARCH_MISC_INIT select ARCH_SUPPORT_PSCI select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT
arch/arm/mach-tegra/tegra20/Kconfig +1 -0
@@ -57,6 +57,7 @@ config TARGET_VENTANA config TARGET_COLIBRI_T20 bool "Toradex Colibri T20 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT select TEGRA_UARTA_SDIO1
arch/arm/mach-tegra/tegra30/Kconfig +2 -0
@@ -12,6 +12,7 @@ choice config TARGET_APALIS_T30 bool "Toradex Apalis T30 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT config TARGET_BEAVER
@@ -26,6 +27,7 @@ config TARGET_CARDHU config TARGET_COLIBRI_T30 bool "Toradex Colibri T30 board" + select ARCH_MISC_INIT select BOARD_LATE_INIT config TARGET_TEC_NG
arch/mips/Kconfig +1 -0
@@ -98,6 +98,7 @@ config ARCH_JZ47XX config ARCH_OCTEON bool "Support Marvell Octeon CN7xxx platforms" select ARCH_EARLY_INIT_R + select ARCH_MISC_INIT select CPU_CAVIUM_OCTEON select DISPLAY_CPUINFO select DMA_ADDR_T_64BIT
arch/powerpc/Kconfig +1 -0
@@ -17,6 +17,7 @@ config MPC83xx config MPC85xx bool "MPC85xx" + select ARCH_MISC_INIT if FSL_CAAM && !(ARCH_P1010 || TARGET_KMCENT2) select CREATE_ARCH_SYMLINK select SYS_FSL_DDR select SYS_FSL_DDR_BE
Signature · 1 line
2.34.1
Re: [PATCHv2 12/13] global: Add a select for ARCH_MISC_INIT where used
Quoted 16 lines · Tom Rini
When we have an
arch_misc_initfunction, we can select it to ensure it's used.In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
Signed-off-by Tom Rini <[email protected]>---
Cc: Marcel Ziswiler <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Olaf Mandel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP i.MX U-Boot Team <[email protected]>
Quoted 6 lines
Changes in v2:
- Always selectARCH_MISC_INITon IMX8M as dealing withFSL_CAAMor not needs further SoC-specific clean up work. This replaces patches 10 and 11 from before so that if the user enablesFSL_CAAMthen they will continue to get the functionality they had before. As Marek noted in the thread, further clean-up in this area would be good.
The SPL code does not automatically call arch_misc_init() if ARCH_MISC_INIT is selected , so this won't work as-is. Is there another patch on which I wasn't CCed which deals with that ?
Re: [PATCHv2 12/13] global: Add a select for ARCH_MISC_INIT where used
Quoted 24 lines · Marek Vasut
Quoted 16 lines · Tom Rini
When we have an
arch_misc_initfunction, we can select it to ensure it's used.In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
Signed-off-by Tom Rini <[email protected]>---
Cc: Marcel Ziswiler <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Olaf Mandel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP i.MX U-Boot Team <[email protected]>Quoted 6 lines
Changes in v2:
- Always selectARCH_MISC_INITon IMX8M as dealing withFSL_CAAMor not needs further SoC-specific clean up work. This replaces patches 10 and 11 from before so that if the user enablesFSL_CAAMthen they will continue to get the functionality they had before. As Marek noted in the thread, further clean-up in this area would be good.
Quoted 3 lines
The SPL code does not automatically call
arch_misc_init()ifARCH_MISC_INITis selected , so this won't work as-is. Is there another patch on which I wasn't CCed which deals with that ?
This preserves the exiting behavior, nothing more.
Signature · 1 line
Tom
Re: [PATCHv2 12/13] global: Add a select for ARCH_MISC_INIT where used
Quoted 25 lines · Tom Rini
Quoted 24 lines · Marek Vasut
Quoted 22 lines · Tom Rini
When we have an
arch_misc_initfunction, we can select it to ensure it's used.In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
Signed-off-by Tom Rini <[email protected]>---
Cc: Marcel Ziswiler <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Olaf Mandel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP i.MX U-Boot Team <[email protected]>Changes in v2:
- Always selectARCH_MISC_INITon IMX8M as dealing withFSL_CAAMor not needs further SoC-specific clean up work. This replaces patches 10 and 11 from before so that if the user enablesFSL_CAAMthen they will continue to get the functionality they had before. As Marek noted in the thread, further clean-up in this area would be good.
Quoted 5 lines
Quoted 3 lines
The SPL code does not automatically call
arch_misc_init()ifARCH_MISC_INITis selected , so this won't work as-is. Is there another patch on which I wasn't CCed which deals with that ?This preserves the exiting behavior, nothing more.
Where does the arch_misc_init() get called from in SPL ? If that remains in board code for now, then yeah, fine by me.
Re: [PATCHv2 12/13] global: Add a select for ARCH_MISC_INIT where used
Quoted 26 lines · Marek Vasut
Quoted 25 lines · Tom Rini
Quoted 24 lines · Marek Vasut
Quoted 22 lines · Tom Rini
When we have an
arch_misc_initfunction, we can select it to ensure it's used.In that there is a functional change here, it's that on i.MX6 it's always been possible to populate "serial#" with something meaningful, but not every platform was taking the hook, and now it is.
Signed-off-by Tom Rini <[email protected]>---
Cc: Marcel Ziswiler <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Olaf Mandel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: NXP i.MX U-Boot Team <[email protected]>Changes in v2:
- Always selectARCH_MISC_INITon IMX8M as dealing withFSL_CAAMor not needs further SoC-specific clean up work. This replaces patches 10 and 11 from before so that if the user enablesFSL_CAAMthen they will continue to get the functionality they had before. As Marek noted in the thread, further clean-up in this area would be good.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
The SPL code does not automatically call
arch_misc_init()ifARCH_MISC_INITis selected , so this won't work as-is. Is there another patch on which I wasn't CCed which deals with that ?This preserves the exiting behavior, nothing more.
Where does the
arch_misc_init()get called from in SPL ? If that remains in board code for now, then yeah, fine by me.
Yes, it's still on the board to call arch_misc_init() inside spl_board_init().
Signature · 1 line
Tom
PATCH 13/13 common: Make ARCH_MISC_INIT be selected only
In reply to Tom RiniAs platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text.
--- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/Kconfig +1 -1
@@ -641,7 +641,7 @@ config ARCH_EARLY_INIT_R enabled. This can be used to set up architecture-specific devices. config ARCH_MISC_INIT - bool "Call arch-specific init after relocation, when console is ready" + bool help With this option U-Boot will call arch_misc_init() after relocation to allow miscellaneous arch-dependent initialisation
Signature · 1 line
2.34.1
Re: [PATCH 13/13] common: Make ARCH_MISC_INIT be selected only
Quoted 11 lines · Tom Rini
As platforms which require this hook need this hook enabled, in order to function, or do not need this hook, it doesn't make sense to prompt the user. As all platforms that need this hook now select the symbol, remove the prompt text.
Signed-off-by Tom Rini <[email protected]>--- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 9 lines · Tom Rini
While it is true that for some Samsung platforms, we call
get_board_type()the main usage of this CONFIG switch is to enableboard_typesin global data, which is then used by various platforms.Signed-off-by Tom Rini <[email protected]>--- common/Kconfig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Quoted 6 lines · Tom Rini
While it is true that for some Samsung platforms, we call
get_board_type()the main usage of this CONFIG switch is to enableboard_typesin global data, which is then used by various platforms.Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom