0e1380683f
The format for VPD has changed s.t. the first NIC should always have a zero concat to the end. Adjust all the respective boards to shift back by one and adjust drivers/net friends to remove the 'special casing' of idx == 0. Background: https://chromeos.google.com/partner/dlm/docs/factory/vpd.html#field-ethernet_macn V.2: Fixup a code comment typo while we are here. V.3: Vary special casing semantics for idx==0 => default mac addr is set. V.4: Rework to still support the legacy path. BUG=b:152157720 BRANCH=none TEST=none Change-Id: Idf83cc621a9333186dabb668b22c4b78e211930a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39771 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
55 lines
1.8 KiB
Text
55 lines
1.8 KiB
Text
config REALTEK_8168_RESET
|
|
bool
|
|
help
|
|
This forces a realtek 10ec:8168 card to reset to ensure power state
|
|
is correct at boot.
|
|
|
|
config REALTEK_8168_MACADDRESS
|
|
string "Realtek rt8168 mac address"
|
|
depends on REALTEK_8168_RESET && !RT8168_GET_MAC_FROM_VPD
|
|
default "00:e0:4c:00:c0:b0"
|
|
help
|
|
This is a string to set the mac address on a Realtek rt8168 card.
|
|
It must be in the form of "xx:xx:xx:xx:xx:xx", where x is a
|
|
hexadecimal number for it to be valid. Failing to do so will
|
|
result in the default macaddress being used.
|
|
|
|
config RT8168_GET_MAC_FROM_VPD
|
|
bool
|
|
default n
|
|
select REALTEK_8168_RESET
|
|
|
|
config RT8168_SUPPORT_LEGACY_VPD_MAC
|
|
bool
|
|
default n
|
|
help
|
|
Previously VPD expected that device_indexes set to zero were
|
|
special cased. Selecting this Kconfig restores the legacy
|
|
VPD format and behaviour. If unsure, you likely do not need this!
|
|
|
|
config RT8168_SET_LED_MODE
|
|
bool
|
|
default n
|
|
select REALTEK_8168_RESET
|
|
help
|
|
This is to set a customized LED mode to distinguish 10/100/1000
|
|
link and speed status with limited LEDs avaiable on a board.
|
|
Please refer to RTL811x datasheet section 7.2 Customizable LED
|
|
Configuration for details. With this flag enabled, the
|
|
customized_leds variable will be read from devicetree setting.
|
|
|
|
config ATHEROS_ATL1E_SETMAC
|
|
bool
|
|
help
|
|
This sets the MAC address on boards featuring the atheros 1968:1026
|
|
NIC which lack an eeprom to store it.
|
|
|
|
config ATHEROS_ATL1E_MACADDRESS
|
|
string "Atheros AR8121/AR8113/AR8114 mac address"
|
|
depends on ATHEROS_ATL1E_SETMAC
|
|
default "90:e6:ba:24:f9:d2"
|
|
help
|
|
This is a string to set the mac address on an Atheros atl1e card.
|
|
It must be in the form of "xx:xx:xx:xx:xx:xx", where x is a
|
|
hexadecimal number for it to be valid. Failing to do so will
|
|
result in the default MAC address being used.
|