Blackfin: bf527-ezkit: auto-select NAND settings

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2009-11-11 17:29:35 -05:00
parent 7527feef06
commit b7659ef2e7
3 changed files with 9 additions and 5 deletions

View File

@ -61,7 +61,8 @@
* (can't be used same time as ethernet) * (can't be used same time as ethernet)
*/ */
#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND) #if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
#define CONFIG_BFIN_NFC # define CONFIG_BFIN_NFC
# define CONFIG_BFIN_NFC_BOOTROM_ECC
#endif #endif
#ifdef CONFIG_BFIN_NFC #ifdef CONFIG_BFIN_NFC
#define CONFIG_BFIN_NFC_CTL_VAL 0x0033 #define CONFIG_BFIN_NFC_CTL_VAL 0x0033
@ -69,7 +70,6 @@
#define CONFIG_SYS_NAND_BASE 0 /* not actually used */ #define CONFIG_SYS_NAND_BASE 0 /* not actually used */
#define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_MAX_NAND_DEVICE 1
#define NAND_MAX_CHIPS 1 #define NAND_MAX_CHIPS 1
#define CONFIG_CMD_NAND
#endif #endif
@ -118,14 +118,19 @@
#define CONFIG_ENV_OFFSET 0x10000 #define CONFIG_ENV_OFFSET 0x10000
#define CONFIG_ENV_SIZE 0x2000 #define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_SECT_SIZE 0x10000 #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 #else
#define CONFIG_ENV_IS_IN_FLASH #define CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_OFFSET 0x4000 #define CONFIG_ENV_OFFSET 0x4000
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET) #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
#define CONFIG_ENV_SIZE 0x2000 #define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_SECT_SIZE 0x2000 #define CONFIG_ENV_SECT_SIZE 0x2000
#endif
#define CONFIG_ENV_IS_EMBEDDED_IN_LDR #define CONFIG_ENV_IS_EMBEDDED_IN_LDR
#endif
/* /*

View File

@ -133,7 +133,6 @@
#define CONFIG_SYS_NAND_BASE 0 /* not actually used */ #define CONFIG_SYS_NAND_BASE 0 /* not actually used */
#define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_MAX_NAND_DEVICE 1
#define NAND_MAX_CHIPS 1 #define NAND_MAX_CHIPS 1
#define CONFIG_CMD_NAND
/* /*

View File

@ -45,7 +45,7 @@
# define CONFIG_CMD_USB_STORAGE # define CONFIG_CMD_USB_STORAGE
# define CONFIG_DOS_PARTITION # define CONFIG_DOS_PARTITION
# endif # endif
# ifdef CONFIG_NAND_PLAT # if defined(CONFIG_NAND_PLAT) || defined(CONFIG_DRIVER_NAND_BFIN)
# define CONFIG_CMD_NAND # define CONFIG_CMD_NAND
# endif # endif
# ifdef CONFIG_POST # ifdef CONFIG_POST