summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-12 00:43:22 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-12 00:43:22 +0000
commit0fac1d7d4b509afa5c0b10646c0f8194054e57a8 (patch)
tree2eb73e217c4f3878d536055fcb8ec6f5ce3aaf59
parentbedae66ccfdee6964e9f2825cf4ebf1f98e4fdb9 (diff)
Support large sector NAND flash for JFFS2
-rw-r--r--target/jffs2/Config.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/jffs2/Config.in b/target/jffs2/Config.in
index 23503a93d..2a4c48cf7 100644
--- a/target/jffs2/Config.in
+++ b/target/jffs2/Config.in
@@ -20,6 +20,11 @@ config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
depends on BR2_TARGET_ROOTFS_JFFS2
select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
+config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
+ bool "NAND flash with 2kB Page and 128 kB erasesize"
+ depends on BR2_TARGET_ROOTFS_JFFS2
+ select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
+
config BR2_TARGET_ROOTFS_JFFS2_FLASH_128
bool "Parallel flash with 4 kB pagesize and 128 kB erase size"
depends on BR2_TARGET_ROOTFS_JFFS2
@@ -53,6 +58,7 @@ config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
depends on BR2_TARGET_ROOTFS_JFFS2
default 0x420 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
default 0x210 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+ default 0x800 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
default $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE) if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
@@ -62,6 +68,7 @@ config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
depends on BR2_TARGET_ROOTFS_JFFS2
default 0x2100 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
default 0x1080 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+ default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
default 0x10000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
default $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE) if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
@@ -69,6 +76,9 @@ config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
bool "Do not use Cleanmarker"
depends on BR2_TARGET_ROOTFS_JFFS2
+ default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
+ default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+ default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
help
Do not use cleanmarkers if using NAND flash or Dataflash where
the pagesize is not a power of 2