summaryrefslogtreecommitdiff
path: root/drivers/cfi_flash.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-10-09 00:25:58 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-10-09 00:25:58 +0200
commit47340a46f6ff8be4f148b07bf42986c9054d8436 (patch)
tree09fe4e2b8f40ea68eba730ea1756ecf687a60226 /drivers/cfi_flash.c
parent96782c63d3bd4067623895b8691ed2823c715f1d (diff)
downloadu-boot-imx-47340a46f6ff8be4f148b07bf42986c9054d8436.zip
u-boot-imx-47340a46f6ff8be4f148b07bf42986c9054d8436.tar.gz
u-boot-imx-47340a46f6ff8be4f148b07bf42986c9054d8436.tar.bz2
Fixed compilation for ARM when using a (standard) hard-FP toolchain
Patch by Anders Larsen, 07 Oct 2005
Diffstat (limited to 'drivers/cfi_flash.c')
-rw-r--r--drivers/cfi_flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cfi_flash.c b/drivers/cfi_flash.c
index ca6bd89..d8dfb4c 100644
--- a/drivers/cfi_flash.c
+++ b/drivers/cfi_flash.c
@@ -221,7 +221,7 @@ static void flash_printqry (flash_info_t * info, flash_sect_t sect)
cfiptr_t cptr;
int x, y;
- for (x = 0; x < 0x40; x += 16 / info->portwidth) {
+ for (x = 0; x < 0x40; x += 16U / info->portwidth) {
cptr.cp =
flash_make_addr (info, sect,
x + FLASH_OFFSET_CFI_RESP);
@@ -807,7 +807,7 @@ static void flash_make_cmd (flash_info_t * info, uchar cmd, void *cmdbuf)
#else
for (i = 1; i <= info->portwidth; i++)
#endif
- *cp++ = (i % info->chipwidth) ? '\0' : cmd;
+ *cp++ = (i & (info->chipwidth - 1)) ? '\0' : cmd;
}
/*