arc: add Arcangel4 board support
[oweals/u-boot.git] / include / configs / zynq-common.h
index b1fa0cb8ea89899477448e143d842f8b9f6c80dd..e7a8e9fb11bec8ef68d64b0a477275e50ecc58f5 100644 (file)
 #define CONFIG_BOOTP_HOSTNAME
 #define CONFIG_BOOTP_MAY_FAIL
 
+/* Total Size of Environment Sector */
+#define CONFIG_ENV_SIZE                        (128 << 10)
+
+/* Allow to overwrite serial and ethaddr */
+#define CONFIG_ENV_OVERWRITE
+
 /* Environment */
-#define CONFIG_ENV_SIZE                0x10000 /* Env. sector size */
-#define CONFIG_ENV_IS_NOWHERE
-#define CONFIG_SYS_LOAD_ADDR   0
+#ifndef CONFIG_ENV_IS_NOWHERE
+# ifndef CONFIG_SYS_NO_FLASH
+#  define CONFIG_ENV_IS_IN_FLASH
+# elif defined(CONFIG_SYS_NO_FLASH)
+#  define CONFIG_ENV_IS_NOWHERE
+# endif
+
+# define CONFIG_ENV_SECT_SIZE          CONFIG_ENV_SIZE
+# define CONFIG_ENV_OFFSET             0xE0000
+# define CONFIG_CMD_SAVEENV
+#endif
+
+/* Default environment */
+#define CONFIG_EXTRA_ENV_SETTINGS      \
+       "fit_image=fit.itb\0"           \
+       "load_addr=0x2000000\0"         \
+       "fit_size=0x800000\0"           \
+       "flash_off=0x100000\0"          \
+       "nor_flash_off=0xE2100000\0"    \
+       "fdt_high=0x20000000\0"         \
+       "initrd_high=0x20000000\0"      \
+       "norboot=echo Copying FIT from NOR flash to RAM... && " \
+               "cp.b ${nor_flash_off} ${load_addr} ${fit_size} && " \
+               "bootm ${load_addr}\0" \
+       "sdboot=echo Copying FIT from SD to RAM... && " \
+               "fatload mmc 0 ${load_addr} ${fit_image} && " \
+               "bootm ${load_addr}\0" \
+       "jtagboot=echo TFTPing FIT to RAM... && " \
+               "tftp ${load_addr} ${fit_image} && " \
+               "bootm ${load_addr}\0"
+#define CONFIG_BOOTCOMMAND             "run $modeboot"
+#define CONFIG_BOOTDELAY               3 /* -1 to Disable autoboot */
+#define CONFIG_SYS_LOAD_ADDR           0 /* default? */
 
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_PROMPT              "zynq-uboot> "
 #define CONFIG_FIT
 #define CONFIG_FIT_VERBOSE     1 /* enable fit_format_{error,warning}() */
 
+/* FDT support */
+#define CONFIG_OF_CONTROL
+#define CONFIG_OF_SEPARATE
+#define CONFIG_DISPLAY_BOARDINFO_LATE
+
+/* RSA support */
+#define CONFIG_FIT_SIGNATURE
+#define CONFIG_RSA
+
 /* Boot FreeBSD/vxWorks from an ELF image */
 #if defined(CONFIG_ZYNQ_BOOT_FREEBSD)
 # define CONFIG_API