configs: imx93-phycore_defconfig: Disable CONFIG_AHAB_BOOT
PATCH 1/2 configs: imx93-phycore_defconfig: Disable CONFIG_AHAB_BOOT
By default, lets disable configuration option CONFIG_AHAB_BOOT=y on the phyCORE-i.MX93 based boards. This option is only used in the secureboot context which is not provided by default anyway. Lets remove it from the defconfig to not give false impressions it is supported out of the box for this board.
On the other hand, in the context of PHYTEC secureboot, this option is selected by the distro which enables CONFIG_AHAB_BOOT among other secure boot related options and tweaks needed to properly support it.
--- configs/imx93-phycore_defconfig | 1 - 1 file changed, 1 deletion(-)
configs/imx93-phycore_defconfig +0 -1
@@ -13,7 +13,6 @@ CONFIG_ENV_OFFSET=0x700000 CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg" CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="freescale/imx93-phyboard-segin" -CONFIG_AHAB_BOOT=y CONFIG_TARGET_PHYCORE_IMX93=y CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_SYS_MONITOR_LEN=524288
Signature · 1 line
2.34.1
PATCH 2/2 board: phytec: phycore-imx93: Use CONFIG_PHYTEC_EEPROM_BUS
Switch to use CONFIG_PHYTEC_EEPROM_BUS instead of the hard coded value of 2 for the EEPROM I2C bus for both SPL and U-Boot proper. Possible since commit 88a1816a9b4e ("board: phytec: common: Add PHYTEC_EEPROM_BUS to Kconfig").
--- board/phytec/phycore_imx93/phycore-imx93.c | 2 +- board/phytec/phycore_imx93/spl.c | 2 +- configs/imx93-phycore_defconfig | 1 + 3 files changed, 3 insertions(+), 2 deletions(-)
board/phytec/phycore_imx93/phycore-imx93.c +1 -1
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;int board_init (void ) { -int ret =phytec_eeprom_data_setup (NULL ,2 ,EEPROM_ADDR ); +int ret =phytec_eeprom_data_setup (NULL ,CONFIG_PHYTEC_EEPROM_BUS ,EEPROM_ADDR );if (ret)printf ("%s: EEPROM data init failed\n" , __func__);
board/phytec/phycore_imx93/spl.c +1 -1
@@ -52,7 +52,7 @@ void spl_dram_init(void)int ret;enum phytec_imx93_ddr_eeprom_code ddr_opt =PHYTEC_IMX93_DDR_INVALID ; - ret =phytec_eeprom_data_setup (NULL ,2 ,EEPROM_ADDR ); + ret =phytec_eeprom_data_setup (NULL ,CONFIG_PHYTEC_EEPROM_BUS ,EEPROM_ADDR );if (ret && !IS_ENABLED (CONFIG_PHYCORE_IMX93_RAM_TYPE_FIX )) goto out;
configs/imx93-phycore_defconfig +1 -0
@@ -7,6 +7,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_PHYTEC_SOM_DETECTION=y +CONFIG_PHYTEC_EEPROM_BUS=2 CONFIG_ENV_SOURCE_FILE="phycore_imx93" CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x700000
Signature · 1 line
2.34.1
Re: [Upstream] [PATCH 2/2] board: phytec: phycore-imx93: Use CONFIG_PHYTEC_EEPROM_BUS
Quoted 4 lines · Primoz Fiser
Switch to use
CONFIG_PHYTEC_EEPROM_BUSinstead of the hard coded value of 2 for the EEPROM I2C bus for both SPL and U-Boot proper. Possible since commit88a1816a9b4e("board: phytec: common: AddPHYTEC_EEPROM_BUStoKconfig").
^ is this not a next-commit? I am not sure if the commit hash will survive.
Quoted 2 lines
Signed-off-by Primoz Fiser <[email protected]>
Besides that,
Quoted 44 lines
--- board/phytec/phycore_imx93/phycore-imx93.c | 2 +- board/phytec/phycore_imx93/spl.c | 2 +- configs/imx93-phycore_defconfig | 1 + 3 files changed, 3 insertions(+), 2 deletions(-)board/phytec/phycore_imx93/phycore-imx93.c +1
-1@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;int board_init (void ) { -int ret =phytec_eeprom_data_setup (NULL ,2 ,EEPROM_ADDR ); +int ret =phytec_eeprom_data_setup (NULL ,CONFIG_PHYTEC_EEPROM_BUS ,EEPROM_ADDR );if (ret)printf ("%s: EEPROM data init failed\n" , __func__);board/phytec/phycore_imx93/spl.c +1
-1@@ -52,7 +52,7 @@ void spl_dram_init(void)int ret;enum phytec_imx93_ddr_eeprom_code ddr_opt =PHYTEC_IMX93_DDR_INVALID ; - ret =phytec_eeprom_data_setup (NULL ,2 ,EEPROM_ADDR ); + ret =phytec_eeprom_data_setup (NULL ,CONFIG_PHYTEC_EEPROM_BUS ,EEPROM_ADDR );if (ret && !IS_ENABLED (CONFIG_PHYCORE_IMX93_RAM_TYPE_FIX )) goto out;configs/imx93-phycore_defconfig +1
-0@@ -7,6 +7,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_PHYTEC_SOM_DETECTION=y +CONFIG_PHYTEC_EEPROM_BUS=2 CONFIG_ENV_SOURCE_FILE="phycore_imx93" CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x700000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Quoted 27 lines · Primoz Fiser
By default, lets disable configuration option
CONFIG_AHAB_BOOT=yon the
phyCORE-i.MX93 based boards. This option is only used in the secureboot
context which is not provided by default anyway. Lets remove it from the
defconfig to not give false impressions it is supported out of the box
for this board.On the other hand, in the context of PHYTEC secureboot, this option is
selected by the distro which enablesCONFIG_AHAB_BOOTamong other secure
boot related options and tweaks needed to properly support it.Signed-off-by Primoz Fiser <[email protected]>---
configs/imx93-phycore_defconfig | 1 -1 file changed, 1 deletion(-)configs/imx93- renamed from configs/imx93-phycore_defconfig +0
-0
phycore_defconfig
indexaf149128ed41..53cd28dfcba6100644configs/imx93-phycore_defconfig +0
-0@@ -13,7 +13,6 @@ CONFIG_ENV_OFFSET=0x700000
Quoted 7 lines
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg"
CONFIG_DM_GPIO=yCONFIG_DEFAULT_DEVICE_TREE="freescale/imx93-phyboard-segin" -CONFIG_AHAB_BOOT=y
CONFIG_TARGET_PHYCORE_IMX93=yCONFIG_OF_LIBFDT_OVERLAY=yCONFIG_SYS_MONITOR_LEN=524288
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQTh9jc8NBVKmMG9gxNR3YU452eTAQUCaLAZ5gAKCRBR3YU452eT ATa/AQCC9HS9ut0pRZHQp/i8gxdFQcU4wlhJQMAG+XbAcvo8jAD9H7JYafj5yO0Q loYEB4wne+ukPloLDn8wwD7fAjyDhQo=
=QRNk
-----END PGP SIGNATURE-----
Quoted 5 lines · Martin Schwan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512Reviewed-by Martin Schwan <[email protected]>
Applied both for next, thanks.