]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Move things out of zynq_common.h
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 5 Jun 2012 20:19:16 +0000 (15:19 -0500)
committerJohn Linn <john.linn@xilinx.com>
Wed, 6 Jun 2012 18:02:24 +0000 (11:02 -0700)
Some things really are not generic settings... move them to each
board's config.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
include/configs/zynq_common.h
include/configs/zynq_cseflash.h
include/configs/zynq_ep107.h
include/configs/zynq_zc702.h
include/configs/zynq_zc770.h
include/configs/zynq_zed.h

index 63e1036c83b269111d8fbb4783abce1cacc9339b..277c3506a3b652e05b9710857a4bee63f83d22fe 100644 (file)
@@ -28,9 +28,6 @@
 #define CONFIG_SYS_BOOTMAPSZ   (16 << 20)
 
 /* Default environment */
-#define CONFIG_IPADDR   10.10.70.102
-#define CONFIG_SERVERIP 10.10.70.101
-
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "ethaddr=00:0a:35:00:01:22\0"   \
        "kernel_size=0x140000\0"        \
  * Physical Memory map
  */
 #define CONFIG_NR_DRAM_BANKS           1
-/* Semi-educated guess based on p.48 of DF Arch spec */
-#define PHYS_SDRAM_1                   (256 * 1024)
-/* Cameron guessed 256 or 512 MB */
-#define PHYS_SDRAM_1_SIZE              (256 * 1024 * 1024)
+#define PHYS_SDRAM_1                   0
 
-#define CONFIG_SYS_MEMTEST_START       PHYS_SDRAM_1
-#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x10000)
+#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1
+#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \
+                                   PHYS_SDRAM_1_SIZE - (16 * 1024 * 1024))
 
 #define CONFIG_SYS_SDRAM_BASE          0
 #define CONFIG_SYS_INIT_RAM_ADDR       0xFFFF0000
index 36e10c8e444c80978e1ee0f8cd638ce069842f9b..f2065da62268b6810caaa86e2e97fff482f20a2a 100644 (file)
 
 #include <configs/zynq_common.h>
 
+/* Default environment */
+#define CONFIG_IPADDR   10.10.70.102
+#define CONFIG_SERVERIP 10.10.70.101
+
 #define CONFIG_ARM_DCC
 #define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
 
 //#define CONFIG_GEM0  1
 
 /*
- * These were lifted straight from imx31_phycore, and may well be very wrong.
+ * Physical Memory map
  */
+#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
+
 //#define CONFIG_ENV_SIZE                      4096
 #define CONFIG_ENV_SIZE                            896
 #define CONFIG_SYS_GBL_DATA_SIZE       128
index 3e6c40454bd7f96a97b4cf115c9b24479ff38ba8..73559abaa608c7905a314282c3fed57842f7ede1 100644 (file)
 
 #include <configs/zynq_common.h>
 
+/* Default environment */
+#define CONFIG_IPADDR   10.10.70.102
+#define CONFIG_SERVERIP 10.10.70.101
+
 #undef CONFIG_ZYNQ_XIL_LQSPI
 
 /* Uncomment it if you don't want Flash */
@@ -75,9 +79,9 @@
 #define CONFIG_XGMAC_PHY_ADDR 0x17
 
 /*
- * These were lifted straight from imx31_phycore, and may well be very wrong.
+ * Physical Memory map
  */
-#define CONFIG_NR_DRAM_BANKS           1
+#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
 
 /*
  * SPI Settings
index 248e3475ea2a54f5132c6636809e17b11977160e..503126900f56d81b19429d20e8974da38ce10de0 100644 (file)
 
 #include <configs/zynq_common.h>
 
+/* Default environment */
+#define CONFIG_IPADDR   10.10.70.102
+#define CONFIG_SERVERIP 10.10.70.101
+
 #undef CONFIG_ZYNQ_XIL_LQSPI
 
 /* no NOR on zc702 */
@@ -51,8 +55,9 @@
 #define CONFIG_XGMAC_PHY_ADDR  0x7
 
 /*
- * These were lifted straight from imx31_phycore, and may well be very wrong.
+ * Physical Memory map
  */
+#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
 
 /*
  * SPI Settings
index 746ea5ea0c05c14c2a387d0748cd8e8e7c0a6c79..cfbf8a918e03073c1c9a36c1c68f2f1e40ca6545 100644 (file)
 
 #include <configs/zynq_common.h>
 
+/* Default environment */
+#define CONFIG_IPADDR   10.10.70.102
+#define CONFIG_SERVERIP 10.10.70.101
+
 #if defined(CONFIG_ZC770_XM012)
 #undef CONFIG_SYS_NO_FLASH
 #else
@@ -76,8 +80,9 @@
 #endif
 
 /*
- * These were lifted straight from imx31_phycore, and may well be very wrong.
+ * Physical Memory map
  */
+#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
 
 #if defined(CONFIG_ZC770_XM010) || defined(CONFIG_ZC770_XM011) \
        || defined(CONFIG_ZC770_XM012)
index d297be15e5868ee6f53f0f23d8103d5abcd55f39..4cf330cb9f34ad369b0c7eb8f952b3abed45606d 100644 (file)
@@ -9,10 +9,9 @@
 #define CONFIG_NET_MULTI
 
 /* Default environment */
-#undef CONFIG_IPADDR
 #define CONFIG_IPADDR   192.168.1.10
+/* ETHADDR should pretty much never be in the default env */
 #define CONFIG_ETHADDR  00:0a:35:00:01:22
-#undef CONFIG_SERVERIP
 #define CONFIG_SERVERIP 192.168.1.50
 
 #undef CONFIG_EXTRA_ENV_SETTINGS
@@ -97,8 +96,9 @@
 #define CONFIG_GEM0    1
 
 /*
- * These were lifted straight from imx31_phycore, and may well be very wrong.
+ * Physical Memory map
  */
+#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
 #define CONFIG_SYS_GBL_DATA_SIZE       128
 
 /*