net: Move the VCI and client arch values to Kconfig
authorAlexander Graf <agraf@suse.de>
Fri, 6 May 2016 19:01:03 +0000 (21:01 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 14:01:12 +0000 (10:01 -0400)
We have a bunch of boards that define their vendor class identifier and
client archs in the board files or in the distro config. Move everything
to the generic Kconfig options.

We're missing the distinction between i386 and x86_64, as I couldn't find
any config variable that would tell us the difference. Is that really important
to people? I guess not, so I left it out.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
18 files changed:
configs/ls2080a_emu_defconfig
configs/ls2080a_simu_defconfig
configs/thunderx_88xx_defconfig
configs/vexpress_aemv8a_dram_defconfig
configs/vexpress_aemv8a_juno_defconfig
configs/vexpress_aemv8a_semi_defconfig
configs/vexpress_ca15_tc2_defconfig
configs/vexpress_ca5x2_defconfig
configs/vexpress_ca9x4_defconfig
include/config_distro_defaults.h
include/configs/ls2080a_emu.h
include/configs/ls2080a_simu.h
include/configs/thunderx_88xx.h
include/configs/vexpress_aemv8a.h
include/configs/vexpress_ca15_tc2.h
include/configs/vexpress_ca5x2.h
include/configs/vexpress_ca9x4.h
net/Kconfig

index f9b4eacb643f4f4cc9c5d34891c8da0ad5e63941..30a63818c3e572c83fe6ea9f4e209d6fd880fef2 100644 (file)
@@ -25,3 +25,4 @@ CONFIG_CMD_CACHE=y
 # CONFIG_CMD_MISC is not set
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.LS2080A-EMU"
index 728fa25549638bcbbc7c603fd8da4433410c646c..a095b8ac484ed11101464a88510f010fab676a98 100644 (file)
@@ -28,3 +28,4 @@ CONFIG_CMD_FAT=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.LS2080A-SIMU"
index b7078e03906dd7444fbeed50d6cdde72c89deace..cb33f601bb6bcc715a91cc20f8fceba897a4bc9b 100644 (file)
@@ -22,3 +22,4 @@ CONFIG_DEBUG_UART_BASE=0x87e024000000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_DEBUG_UART_SKIP_INIT=y
 CONFIG_REGEX=y
+CONFIG_BOOTP_VCI_STRING="Diagnostics"
index 989f06880ec9e88e3006e89efce8ceea6b9bfa83..c0708b288e2847f63ab5c8e85c652b5f536ab396 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_DM=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv8.vexpress_aemv8a"
index c70851fc4c1a168ff148efd326ebacf4f84e38cb..5af9f5823330ec7512f586048bc9c6d9898b86d7 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_DM=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv8.vexpress_aemv8a"
index b0a2f6710aef73eff5dde4ad3bf541d94d0026c4..379dff2499111e0f01c2124cb6cc234011e40434 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_DM=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv8.vexpress_aemv8a"
index 2f141dda06c6264e1465a81bccf1a0a54e960cd2..c39faaa67a9e2168eca77e5539a0b19f9f25aed5 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv7.vexpress_ca15x2_tc2"
index c495ee589c3d10d1fe664063ce0ab6f618a53ef3..e71d45ed055e957f7aae3d170bb89e35018d0b10 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv7.vexpress_ca5x2"
index fcd6e26db5f7fff5c1d0524c421d1fca94f46732..20100a3075819ddca00b41af6bf303a6c9917338 100644 (file)
@@ -24,3 +24,4 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIBFDT=y
+CONFIG_BOOTP_VCI_STRING="U-Boot.armv7.vexpress_ca9x4"
index 766a212b9705f941e5f0c0ee80579cb8b444da1f..dfc2cbc02238397acb3bafe4b626440bbcb82793 100644 (file)
 #define CONFIG_BOOTP_PXE
 #define CONFIG_BOOTP_SUBNETMASK
 
-#if defined(__arm__) || defined(__aarch64__)
-#define CONFIG_BOOTP_PXE_CLIENTARCH     0x100
-#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
-#if !defined(CONFIG_BOOTP_VCI_STRING)
-#define CONFIG_BOOTP_VCI_STRING         "U-Boot.armv7"
-#endif
-#elif defined(__aarch64__)
-#if !defined(CONFIG_BOOTP_VCI_STRING)
-#define CONFIG_BOOTP_VCI_STRING         "U-Boot.armv8"
-#endif
-#else
-#if !defined(CONFIG_BOOTP_VCI_STRING)
-#define CONFIG_BOOTP_VCI_STRING         "U-Boot.arm"
-#endif
-#endif
-#elif defined(__i386__)
-#define CONFIG_BOOTP_PXE_CLIENTARCH     0x0
-#elif defined(__x86_64__)
-#define CONFIG_BOOTP_PXE_CLIENTARCH     0x9
-#endif
-
 #ifdef CONFIG_ARM64
 #define CONFIG_CMD_BOOTI
 #endif
index f4ace856b87a338e4de1dcb2170e286f5bac9a68..16e37bff4fea6f1cd7c01e2b747aa6ae3302999c 100644 (file)
@@ -10,7 +10,6 @@
 #include "ls2080a_common.h"
 
 #define CONFIG_IDENT_STRING            " LS2080A-EMU"
-#define CONFIG_BOOTP_VCI_STRING                "U-Boot.LS2080A-EMU"
 
 #define CONFIG_SYS_CLK_FREQ    100000000
 #define CONFIG_DDR_CLK_FREQ    133333333
index bc0d678bf4f3b77da26ba53651a48d805bb5faee..7563aafbc62c3844a597af44265b6623fcd97c39 100644 (file)
@@ -10,7 +10,6 @@
 #include "ls2080a_common.h"
 
 #define CONFIG_IDENT_STRING            " LS2080A-SIMU"
-#define CONFIG_BOOTP_VCI_STRING                "U-Boot.LS2080A-SIMU"
 
 #define CONFIG_SYS_CLK_FREQ    100000000
 #define CONFIG_DDR_CLK_FREQ    133333333
index 7c35d8cd468489b28dbf4cbdd771344ce1d2ee50..e43a7fdf3cfd3fad1600d08c23850bbd95323205 100644 (file)
@@ -17,7 +17,6 @@
 
 #define CONFIG_IDENT_STRING    \
        " for Cavium Thunder CN88XX ARM v8 Multi-Core"
-#define CONFIG_BOOTP_VCI_STRING                "Diagnostics"
 
 #define MEM_BASE                       0x00500000
 
@@ -62,7 +61,6 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 #define CONFIG_BOOTP_PXE
-#define CONFIG_BOOTP_PXE_CLIENTARCH    0x100
 
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_LOAD_ADDR           (MEM_BASE)
index 1b5fc2ee82199e0ab40140f177c03bc1efdb6778..6a3758216fd39937ec03829eca4ce43a65b46faf 100644 (file)
@@ -23,7 +23,6 @@
 #define CONFIG_SYS_CACHELINE_SIZE      64
 
 #define CONFIG_IDENT_STRING            " vexpress_aemv8a"
-#define CONFIG_BOOTP_VCI_STRING                "U-Boot.armv8.vexpress_aemv8a"
 
 /* Link Definitions */
 #if defined(CONFIG_TARGET_VEXPRESS64_BASE_FVP) || \
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 #define CONFIG_BOOTP_PXE
-#define CONFIG_BOOTP_PXE_CLIENTARCH    0x100
 
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_LOAD_ADDR           (V2M_BASE + 0x10000000)
index 883e58e66023c9bf1afc441d1b2c2192b238bf7c..b509a9cfd4e57308530c8f4d53fc2b40c6366891 100644 (file)
@@ -12,7 +12,6 @@
 #define __VEXPRESS_CA15X2_TC2_h
 
 #define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP
-#define CONFIG_BOOTP_VCI_STRING     "U-Boot.armv7.vexpress_ca15x2_tc2"
 #include "vexpress_common.h"
 
 #define CONFIG_SYSFLAGS_ADDR   0x1c010030
index 43850272a6b0d0b6e048fd2476be9033138ac82a..20b92dc88841016313365aa6ad6b46b4a8f0e97a 100644 (file)
@@ -12,7 +12,6 @@
 #define __VEXPRESS_CA5X2_h
 
 #define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP
-#define CONFIG_BOOTP_VCI_STRING     "U-Boot.armv7.vexpress_ca5x2"
 #include "vexpress_common.h"
 
 #endif /* __VEXPRESS_CA5X2_h */
index 99be50a5bd8008cf3bf86af0b8b8b740b4ce0b7b..993398ccc696c70d7f4c23c13f00fda6c0f536fe 100644 (file)
@@ -12,7 +12,6 @@
 #define __VEXPRESS_CA9X4_H
 
 #define CONFIG_VEXPRESS_ORIGINAL_MEMORY_MAP
-#define CONFIG_BOOTP_VCI_STRING     "U-Boot.armv7.vexpress_ca9x4"
 #include "vexpress_common.h"
 
 #endif /* VEXPRESS_CA9X4_H */
index a44a783cae239e54cd572149024f8c84743d726c..64fd0f94bf45dd4f921f5e5dc145a060044717b2 100644 (file)
@@ -32,4 +32,16 @@ config NET_TFTP_VARS
          If unset, timeout and maximum are hard-defined as 1 second
          and 10 timouts per TFTP transfer.
 
+config BOOTP_PXE_CLIENTARCH
+       hex
+        default 0x100 if ARM
+        default 0 if X86
+
+config BOOTP_VCI_STRING
+       string
+       default "U-Boot.armv7" if CPU_V7 || CPU_V7M
+       default "U-Boot.armv8" if ARM64
+       default "U-Boot.arm" if ARM
+       default "U-Boot"
+
 endif   # if NET