diff options
author | Stefan Agner <stefan@agner.ch> | 2014-04-24 09:05:40 +0200 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2014-04-24 16:32:52 +0200 |
commit | 4ac73411c90a79be1485d24c36adf580fcb60311 (patch) | |
tree | 89108517bd4c8342f92d40873a8bc8a114367e0f /include | |
parent | 01987c5d90c471e4fc5a34f5662875226920fede (diff) |
colibri_vf: enable NAND and use environment from NAND
This enables NAND for Colibri VF61/VF50. The environment is now
taken from NAND. The first block, the boot control block, is
definied as a seperate partition in order for easier erasing.
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/colibri_vf.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 54ca7d91537..8af213c4065 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -45,6 +45,25 @@ #define CONFIG_ENV_OVERWRITE #define CONFIG_BAUDRATE 115200 +/* NAND support */ +#define CONFIG_CMD_NAND +#define CONFIG_CMD_WRITEBCB +#define CONFIG_NAND_FSL_NFC +#define CONFIG_SYS_MAX_NAND_DEVICE 1 +#define CONFIG_SYS_NAND_BASE NFC_BASE_ADDR + +/* Dynamic MTD partition support */ +#define CONFIG_CMD_MTDPARTS /* Enable 'mtdparts' command line support */ +#define CONFIG_MTD_PARTITIONS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define MTDIDS_DEFAULT "nand0=fsl_nfc" +#define MTDPARTS_DEFAULT "mtdparts=fsl_nfc:" \ + "128k(vf-bcb)ro," \ + "1408k(u-boot)ro," \ + "512k(u-boot-env)ro," \ + "8m(kernel-ubi)," \ + "-(rootfs-ubi)" + #undef CONFIG_CMD_IMLS #define CONFIG_MMC @@ -211,10 +230,9 @@ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* Environment organization */ -#define CONFIG_ENV_IS_IN_MMC -#define CONFIG_SYS_MMC_ENV_DEV 0 -#define CONFIG_ENV_OFFSET (12 * 64 * 1024) -#define CONFIG_ENV_SIZE (8 * 1024) +#define CONFIG_ENV_IS_IN_NAND +#define CONFIG_ENV_SIZE (64 * 2048) +#define CONFIG_ENV_OFFSET (6 * 64 * 2048) #define CONFIG_OF_LIBFDT #define CONFIG_CMD_BOOTZ |