x86: Write configuration tables in last_stage_init()
[oweals/u-boot.git] / include / config_distro_defaults.h
index 11b5b793046f0046579806eda4dc6bc30ff799fa..5eea5cf900d83876cdc68c748ac870fe5a95cfa3 100644 (file)
@@ -8,8 +8,9 @@
 #define _CONFIG_CMD_DISTRO_DEFAULTS_H
 
 /*
- * List of all commands and options that when defined enables support for features
- * required by distros to support boards in a standardised and consitant manner.
+ * List of all commands and options that when defined enables support for
+ * features required by distros to support boards in a standardised and
+ * consistent manner.
  */
 
 #define CONFIG_BOOTP_BOOTPATH
 #define CONFIG_BOOTP_PXE
 #define CONFIG_BOOTP_SUBNETMASK
 
-#if defined(__arm__)
+#if defined(__arm__) || defined(__aarch64__)
 #define CONFIG_BOOTP_PXE_CLIENTARCH     0x100
 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
 #define CONFIG_BOOTP_VCI_STRING         "U-boot.armv7"
+#elif defined(__aarch64__)
+#define CONFIG_BOOTP_VCI_STRING         "U-boot.armv8"
 #else
 #define CONFIG_BOOTP_VCI_STRING         "U-boot.arm"
 #endif
+#elif defined(__i386__)
+#define CONFIG_BOOTP_PXE_CLIENTARCH     0x0
+#elif defined(__x86_64__)
+#define CONFIG_BOOTP_PXE_CLIENTARCH     0x9
 #endif
 
 #define CONFIG_OF_LIBFDT
 
+#ifdef CONFIG_ARM64
+#define CONFIG_CMD_BOOTI
+#else
 #define CONFIG_CMD_BOOTZ
+#endif
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_EXT2