summaryrefslogtreecommitdiff
path: root/include/configs/bf527-ezkit.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-11 17:29:35 -0500
committerMike Frysinger <vapier@gentoo.org>2010-01-17 09:17:26 -0500
commitb7659ef2e764f62fc334f0d970721496823e4888 (patch)
tree1413ff4b1a5a226b2219db4c7a21a3892d3e08c5 /include/configs/bf527-ezkit.h
parent7527feef06b13e9fd5b6d10a4bfc81b59ee56f27 (diff)
downloadu-boot-imx-b7659ef2e764f62fc334f0d970721496823e4888.zip
u-boot-imx-b7659ef2e764f62fc334f0d970721496823e4888.tar.gz
u-boot-imx-b7659ef2e764f62fc334f0d970721496823e4888.tar.bz2
Blackfin: bf527-ezkit: auto-select NAND settings
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/configs/bf527-ezkit.h')
-rw-r--r--include/configs/bf527-ezkit.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/configs/bf527-ezkit.h b/include/configs/bf527-ezkit.h
index 5f3cb83..c7322b8 100644
--- a/include/configs/bf527-ezkit.h
+++ b/include/configs/bf527-ezkit.h
@@ -61,7 +61,8 @@
* (can't be used same time as ethernet)
*/
#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
-#define CONFIG_BFIN_NFC
+# define CONFIG_BFIN_NFC
+# define CONFIG_BFIN_NFC_BOOTROM_ECC
#endif
#ifdef CONFIG_BFIN_NFC
#define CONFIG_BFIN_NFC_CTL_VAL 0x0033
@@ -69,7 +70,6 @@
#define CONFIG_SYS_NAND_BASE 0 /* not actually used */
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define NAND_MAX_CHIPS 1
-#define CONFIG_CMD_NAND
#endif
@@ -118,14 +118,19 @@
#define CONFIG_ENV_OFFSET 0x10000
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_SECT_SIZE 0x10000
+#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
+#elif (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_OFFSET 0x40000
+#define CONFIG_ENV_SIZE 0x20000
#else
#define CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_OFFSET 0x4000
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_SECT_SIZE 0x2000
-#endif
#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
+#endif
/*