Skip to contentSkip to conversation

configs: imx93-phycore_defconfig: Disable CONFIG_AHAB_BOOT

PATCH Applied Primoz Fiser 4 participants 5 messages Aug 28, 2025 – Sep 5, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

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
index af149128ed41..53cd28dfcba6 100644
@@ -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
#1 lore raw

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
index fab66caf2a1c..c6a4e923b074 100644
@@ -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
index beaa536c6007..7feee4bcf6fa 100644
@@ -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
index 53cd28dfcba6..0acdfd2bf53c 100644
@@ -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
Reviewed-by on v1 2/2
#2 lore raw

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_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").

^ is this not a next-commit? I am not sure if the commit hash will survive.

Quoted 2 lines

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
index fab66caf2a1c..c6a4e923b074 100644
@@ -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
index beaa536c6007..7feee4bcf6fa 100644
@@ -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
index 53cd28dfcba6..0acdfd2bf53c 100644
@@ -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
Reviewed-by on v1 1/2
#3 lore raw
In reply to Primoz Fiser

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Quoted 27 lines · Primoz Fiser

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- renamed from configs/imx93-phycore_defconfig +0 -0

phycore_defconfig
index af149128ed41..53cd28dfcba6 100644

configs/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=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

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTh9jc8NBVKmMG9gxNR3YU452eTAQUCaLAZ5gAKCRBR3YU452eT ATa/AQCC9HS9ut0pRZHQp/i8gxdFQcU4wlhJQMAG+XbAcvo8jAD9H7JYafj5yO0Q loYEB4wne+ukPloLDn8wwD7fAjyDhQo=
=QRNk
-----END PGP SIGNATURE-----