Skip to content

Commit

Permalink
siemens: factoryset: use correct config for soc specific implementation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
letoe authored and trini committed Feb 5, 2024
1 parent 60ad0fd commit b062eef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions board/siemens/common/factoryset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion board/siemens/common/factoryset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b062eef

Please sign in to comment.