Also move command config to common file.
Signed-off-by: Michal Simek <monstr@monstr.eu>
-#include <config_cmd_default.h>
#define CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */
#define CONFIG_TIMESTAMP /* print image timestamp on bootm, etc */
*/
#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
-/*
- * Ethernet Settings
- */
-#undef CONFIG_CMD_NET
-#undef CONFIG_CMD_NFS
-#undef CONFIG_BOOTM_NETBSD
-
/*
* SPI Settings
*/
# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
# define CONFIG_PHYLIB
# define CONFIG_PHY_MARVELL
+# define CONFIG_SYS_ENET
#endif
/* SCU timer address is hardcoded */
# endif
#endif
+
+
+#include <config_cmd_default.h>
+
+
+#ifdef CONFIG_SYS_ENET
+# define CONFIG_CMD_PING
+# define CONFIG_CMD_MII
+#else
+# undef CONFIG_CMD_NET
+# undef CONFIG_CMD_NFS
+#endif
+
+
+
#include <asm/arch/xparameters.h>
#define CONFIG_SYS_TEXT_BASE 0x04000000
#define CONFIG_BOARD_LATE_INIT
+#undef CONFIG_BOOTM_NETBSD
+
#endif /* __CONFIG_ZYNQ_COMMON_H */
-#include <config_cmd_default.h>
-#undef CONFIG_CMD_PING /* Might be useful for debugging */
#undef CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */
#undef CONFIG_CMD_EDITENV
#undef CONFIG_CMD_SAVEENV
-#undef CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
-#undef CONFIG_CMD_NFS /* NFS support */
#undef CONFIG_CMD_FPGA
#undef CONFIG_CMD_XIMG
"go 0x8000\0"
-#include <config_cmd_default.h>
-#define CONFIG_CMD_PING /* Might be useful for debugging */
#define CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */
#include <configs/zynq_common.h>
-#include <config_cmd_default.h>
-#define CONFIG_CMD_PING /* Might be useful for debugging */
#define CONFIG_CMD_SAVEENV /* Command to save ENV to Flash */
#define CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */
-#define CONFIG_CMD_MII
#define CONFIG_TIMESTAMP /* print image timestamp on bootm, etc */
#include <configs/zynq_common.h>
-#include <config_cmd_default.h>
#define CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */
#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024)
-/*
- * Ethernet Settings
- */
-#if defined(CONFIG_ZC770_XM010) || defined(CONFIG_ZC770_XM013)
-#define CONFIG_CMD_PING
-#else
-#undef CONFIG_CMD_NET
-#undef CONFIG_CMD_NFS
-#undef CONFIG_BOOTM_NETBSD
-#endif
-
/*
* SPI Settings
*/
"tftp 0x800000 ramdisk8M.image.gz;" \
"go 0x8000\0"
-#include <config_cmd_default.h>
-#define CONFIG_CMD_PING /* Might be useful for debugging */
#define CONFIG_REGINFO /* Again, debugging */
#undef CONFIG_CMD_SETGETDCR /* README says 4xx only */