Convert CONFIG_MAC_ADDR_IN_SPIFLASH et al to Kconfig
authorAdam Ford <aford173@gmail.com>
Fri, 8 Sep 2017 22:01:18 +0000 (17:01 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2017 13:24:27 +0000 (09:24 -0400)
This converts the following to Kconfig:
   CONFIG_MAC_ADDR_IN_SPIFLASH
   CONFIG_MAC_ADDR_IN_EEPROM

Signed-off-by: Adam Ford <aford173@gmail.com>
board/davinci/da8xxevm/Kconfig
configs/da850_am18xxevm_defconfig
configs/da850evm_defconfig
configs/da850evm_direct_nor_defconfig
scripts/config_whitelist.txt

index d49d244672d46e1d5a2502393f681bd6c67275a0..bb1188b4ea2d27ed3efd8225301755b0adc1548c 100644 (file)
@@ -9,6 +9,30 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "da850evm"
 
+menuconfig DA850_MAC
+       bool "Use MAC Address"
+       default y
+
+if DA850_MAC
+config MAC_ADDR_IN_SPIFLASH
+       bool "MAC address in SPI Flash"
+       default y
+       help
+         The OMAP-L138 and AM1808 SoM are programmed with
+         their MAC address in SPI Flash from the factory
+         Enable this option to read the MAC from SPI Flash
+
+config MAC_ADDR_IN_EEPROM
+       bool "MAC address in EEPROM"
+       help
+         The DA850 EVM comes with SoM are programmed with
+         their MAC address in SPI Flash from the factory,
+         but the kit has an optional expansion board with
+         EEPROM available.  Enable this option to read the
+         MAC from the EEPROM
+
+endif
+
 endif
 
 if TARGET_OMAPL138_LCDK
index f187882814bd11881747498412e561d01d6ea2eb..27370e7c0c32623c8d820630fbff85edc87dc860 100644 (file)
@@ -2,12 +2,13 @@ CONFIG_ARM=y
 CONFIG_ARCH_DAVINCI=y
 CONFIG_TARGET_DA850EVM=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
+CONFIG_MAC_ADDR_IN_EEPROM=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
-CONFIG_SYS_EXTRA_OPTIONS="DA850_AM18X_EVM,MAC_ADDR_IN_EEPROM,SYS_I2C_EEPROM_ADDR_LEN=2,SYS_I2C_EEPROM_ADDR=0x50"
+CONFIG_SYS_EXTRA_OPTIONS="DA850_AM18X_EVM,SYS_I2C_EEPROM_ADDR_LEN=2,SYS_I2C_EEPROM_ADDR=0x50"
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="mem=32M console=ttyS2,115200n8 root=/dev/mtdblock2 rw noinitrd ip=dhcp"
index b923ec3b568fad2e9c84e15170bfbf498422988c..bfa5ea1c4bc6f8b089b6421599ea10c1735388ef 100644 (file)
@@ -7,7 +7,6 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
-CONFIG_SYS_EXTRA_OPTIONS="MAC_ADDR_IN_SPIFLASH"
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="mem=32M console=ttyS2,115200n8 root=/dev/mtdblock2 rw noinitrd ip=dhcp"
index fc62c8487737233ed267e0b3c032810a9e62efbd..24ab89224df17824ad0ac732b78af4179c4a8cfa 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_ARCH_DAVINCI=y
 CONFIG_TARGET_DA850EVM=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
-CONFIG_SYS_EXTRA_OPTIONS="MAC_ADDR_IN_SPIFLASH,USE_NOR,DIRECT_NOR_BOOT"
+CONFIG_SYS_EXTRA_OPTIONS="USE_NOR,DIRECT_NOR_BOOT"
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="mem=32M console=ttyS2,115200n8 root=/dev/mtdblock2 rw noinitrd ip=dhcp"
index a8178d1c19ef0ab20c86551e26df4c2955b2bd42..0368f2c3b892626d810e6555ef021efcfdc6ddc7 100644 (file)
@@ -1359,8 +1359,6 @@ CONFIG_MACH_SPECIFIC
 CONFIG_MACH_TYPE
 CONFIG_MACH_TYPE_COMPAT_REV
 CONFIG_MACRESET_TIMEOUT
-CONFIG_MAC_ADDR_IN_EEPROM
-CONFIG_MAC_ADDR_IN_SPIFLASH
 CONFIG_MALLOC_F_ADDR
 CONFIG_MALTA
 CONFIG_MARCO_MEMSET