From 998eaaecd46ee5f00550e30e606cb5556e0b9345 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 18 Apr 2004 19:43:36 +0000 Subject: * 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 --- board/dave/common/flash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'board/dave/common/flash.c') diff --git a/board/dave/common/flash.c b/board/dave/common/flash.c index b0e411617f..446defc4b9 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 */ -- cgit