[PATCH] board: phytec: common: k3: Making setup_mac_from_eeprom optional
John Ma
jma at phytec.com
Wed Aug 13 23:31:16 CEST 2025
Making the setup_mac_from_eeprom optional for boards without
CONFIG_PHYTEC_SOM_DETECTION_BLOCKS.
Signed-off-by: John Ma <jma at phytec.com>
---
board/phytec/common/k3/board.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c
index 7f34d71d530..647f93a1d7a 100644
--- a/board/phytec/common/k3/board.c
+++ b/board/phytec/common/k3/board.c
@@ -176,6 +176,7 @@ static void boot_targets_setup(void)
env_set("boot_targets", boot_targets);
}
+#if IS_ENABLED(CONFIG_PHYTEC_SOM_DETECTION_BLOCKS)
static void setup_mac_from_eeprom(void)
{
struct phytec_api3_element *block_element;
@@ -197,13 +198,15 @@ static void setup_mac_from_eeprom(void)
}
}
}
+#endif
int board_late_init(void)
{
boot_targets_setup();
- if (IS_ENABLED(CONFIG_PHYTEC_SOM_DETECTION_BLOCKS))
- setup_mac_from_eeprom();
+#if IS_ENABLED(CONFIG_PHYTEC_SOM_DETECTION_BLOCKS)
+ setup_mac_from_eeprom();
+#endif
#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
configure_capsule_updates();
--
2.25.1
More information about the U-Boot
mailing list