summaryrefslogtreecommitdiff
path: root/board/dave/common/flash.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-04-18 19:43:36 +0000
committerwdenk <wdenk>2004-04-18 19:43:36 +0000
commit998eaaecd46ee5f00550e30e606cb5556e0b9345 (patch)
tree3b9784427a7c1ffd08d8b912d81c78681943b82c /board/dave/common/flash.c
parent6e5923851ec5c11a36136abc77160d834537c4dd (diff)
downloadu-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.zip
u-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.tar.gz
u-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.tar.bz2
* Configure PPChameleon board to use redundand environment in flash
* Configure PPChameleon board to use JFFS2 NAND support. * Added support for JFFS2 filesystem (read-only) on top of NAND flash
Diffstat (limited to 'board/dave/common/flash.c')
-rw-r--r--board/dave/common/flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/dave/common/flash.c b/board/dave/common/flash.c
index b0e4116..446defc 100644
--- a/board/dave/common/flash.c
+++ b/board/dave/common/flash.c
@@ -669,8 +669,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
int i;
/* Check if Flash is (sufficiently) erased */
- if ((*((volatile CFG_FLASH_WORD_SIZE *)dest) &
- (CFG_FLASH_WORD_SIZE)data) != (CFG_FLASH_WORD_SIZE)data) {
+ if ((*((volatile ulong *)dest) & data) != data) {
return (2);
}
/* Disable interrupts which might cause a timeout here */