aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-08-15 20:24:09 +0700
committerjt1134 <jt1134@gmail.com>2012-08-16 22:04:32 -0500
commit0c3f5d384b092e6d9874faed0c1122c95e6ca32b (patch)
tree72f2d9af587103b4d86fa2adf54fab765d985e95 /drivers/mtd/onenand
parenta0b426fbf00d6fcc7d031db98f777c2e61668ff2 (diff)
downloadkernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.zip
kernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.tar.gz
kernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.tar.bz2
Use OneNAND for /data
Writing on MoviNAND is very slow and so we use it on /system and use the space of /system for /data instead. Need corresponding modification on device tree Patch Set 2: fascinatemtd has a spare partition on MoviNAND, ~190MB use it for cache and remove cache from OneNAND Change-Id: Ife77bcda275970044a5abd448a6e853807d2a85d
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/samsung_fascinate.h9
-rw-r--r--drivers/mtd/onenand/samsung_gsm.h8
2 files changed, 6 insertions, 11 deletions
diff --git a/drivers/mtd/onenand/samsung_fascinate.h b/drivers/mtd/onenand/samsung_fascinate.h
index b7c08d5..9913ed1 100644
--- a/drivers/mtd/onenand/samsung_fascinate.h
+++ b/drivers/mtd/onenand/samsung_fascinate.h
@@ -40,14 +40,9 @@ struct mtd_partition s3c_partition_info[] = {
.size = (30*SZ_256K), //131
},
{
- .name = "system",
+ .name = "userdata",
.offset = (132*SZ_256K),
- .size = (1400*SZ_256K), //1531
- },
- {
- .name = "cache",
- .offset = (1532*SZ_256K),
- .size = (472*SZ_256K), //2003
+ .size = (1872*SZ_256K), //2003
},
{ /* The reservoir area is used by Samsung's Block Management Layer (BML)
to map good blocks from this reservoir to bad blocks in user
diff --git a/drivers/mtd/onenand/samsung_gsm.h b/drivers/mtd/onenand/samsung_gsm.h
index 3ac7d43..450b28f 100644
--- a/drivers/mtd/onenand/samsung_gsm.h
+++ b/drivers/mtd/onenand/samsung_gsm.h
@@ -40,14 +40,14 @@ struct mtd_partition s3c_partition_info[] = {
.size = (30*SZ_256K), //131
},
{
- .name = "system",
+ .name = "userdata",
.offset = (132*SZ_256K),
- .size = (1400*SZ_256K), //1531
+ .size = (1688*SZ_256K), //1819
},
{
.name = "cache",
- .offset = (1532*SZ_256K),
- .size = (358*SZ_256K), //1889
+ .offset = (1820*SZ_256K),
+ .size = (70*SZ_256K), //1889
},
{ /* we should consider moving this before the modem at the end
that would allow us to change the partitions before without