summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorScott Sweeny <scott.sweeny@timesys.com>2010-09-01 12:02:01 -0400
committerScott Sweeny <scott.sweeny@timesys.com>2010-09-01 12:06:18 -0400
commit3456a4958ec2ecb2b2e35b1f37039fb28274f182 (patch)
treebf6aef6608c5410ad8b7e4f49dc2cc58aad22538 /fs
parente1dce181db649aadcf5c83e9459ebf53dd038073 (diff)
Freescale board patch for MPC5125_TWR board
Diffstat (limited to 'fs')
-rw-r--r--fs/yaffs2/yaffscfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/yaffs2/yaffscfg.c b/fs/yaffs2/yaffscfg.c
index 16e84a4210..162b5deda1 100644
--- a/fs/yaffs2/yaffscfg.c
+++ b/fs/yaffs2/yaffscfg.c
@@ -185,8 +185,8 @@ int yaffs_StartUp(void)
nBlocks = mtd->size / mtd->erasesize;
flashDev->nCheckpointReservedBlocks = 10;
- flashDev->startBlock = 0;
- flashDev->endBlock = nBlocks - 1;
+ flashDev->startBlock = CONFIG_UBOOT_YAFFS2_START/mtd->erasesize;
+ flashDev->endBlock =(CONFIG_UBOOT_YAFFS2_START+CONFIG_UBOOT_YAFFS2_SIZE)/mtd->erasesize- 1;
}
else
{