summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Leto <enrico.leto@siemens.com>2024-01-24 15:43:55 +0100
committerTom Rini <trini@konsulko.com>2024-02-05 13:32:48 -0500
commitb062eef0755d1f16eeddda0675e0e526747221af (patch)
tree12ea592ba31a15b8eb378370c54d92b209d5cf1b
parent60ad0fdb19087297635f97062ac082ba887dda3a (diff)
downloadu-boot-b062eef0755d1f16eeddda0675e0e526747221af.tar.gz
u-boot-b062eef0755d1f16eeddda0675e0e526747221af.tar.bz2
u-boot-b062eef0755d1f16eeddda0675e0e526747221af.zip
siemens: factoryset: use correct config for soc specific implementation
Adding the capricorn board family some parts diverge from draco family. The switches used were not pertinent and need to be enhanced for each new board of the capricorn family. Replace them through the SOC name 'AM33XX' and 'IMX8'. Signed-off-by: Enrico Leto <enrico.leto@siemens.com>
-rw-r--r--board/siemens/common/factoryset.c6
-rw-r--r--board/siemens/common/factoryset.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c
index b20af95d13..a250ccfe25 100644
--- a/board/siemens/common/factoryset.c
+++ b/board/siemens/common/factoryset.c
@@ -11,7 +11,7 @@
#include <g_dnl.h>
#include <net.h>
#include <asm/io.h>
-#if !CONFIG_IS_ENABLED(TARGET_GIEDI) && !CONFIG_IS_ENABLED(TARGET_DENEB)
+#if CONFIG_IS_ENABLED(AM33XX)
#include <asm/arch/cpu.h>
#endif
#include "eeprom.h"
@@ -197,7 +197,7 @@ int factoryset_read_eeprom(int i2c_addr)
cp1 += 3;
}
-#if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB)
+#if CONFIG_IS_ENABLED(IMX8)
/* get mac address for WLAN */
if (get_factory_record_val(cp, size, (uchar *)"WLAN1", (uchar *)"mac",
buf, MAX_STRING_LENGTH) > 0) {
@@ -304,7 +304,7 @@ static int factoryset_mac_env_set(void)
eth_env_set_enetaddr("ethaddr", mac_addr);
-#if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB)
+#if CONFIG_IS_ENABLED(IMX8)
eth_env_set_enetaddr("eth1addr", mac_addr);
/* wlan mac */
diff --git a/board/siemens/common/factoryset.h b/board/siemens/common/factoryset.h
index 8fa6c3b3d3..ee8bcd0f20 100644
--- a/board/siemens/common/factoryset.h
+++ b/board/siemens/common/factoryset.h
@@ -11,7 +11,7 @@
struct factorysetcontainer {
uchar mac[6];
-#if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB)
+#if CONFIG_IS_ENABLED(IMX8)
uchar mac_wlan[6];
#endif
int usb_vendor_id;