summaryrefslogtreecommitdiff
path: root/board/prodrive/alpr/nand.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-11-27 14:12:17 +0100
committerStefan Roese <sr@denx.de>2006-11-27 14:12:17 +0100
commit1c2ce2262069510f31c7d3fd7efd3d58b8c0c148 (patch)
treeda4f0c35f18200eab6953d163866bdb11a9eb6c6 /board/prodrive/alpr/nand.c
parent48c7d6dba9140869a1d644248aa8cfabe01c98a6 (diff)
downloadu-boot-imx-1c2ce2262069510f31c7d3fd7efd3d58b8c0c148.zip
u-boot-imx-1c2ce2262069510f31c7d3fd7efd3d58b8c0c148.tar.gz
u-boot-imx-1c2ce2262069510f31c7d3fd7efd3d58b8c0c148.tar.bz2
[PATCH] Update Prodrive ALPR board support (440GX)
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/prodrive/alpr/nand.c')
-rw-r--r--board/prodrive/alpr/nand.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/board/prodrive/alpr/nand.c b/board/prodrive/alpr/nand.c
index 20a8098..e63c921 100644
--- a/board/prodrive/alpr/nand.c
+++ b/board/prodrive/alpr/nand.c
@@ -32,19 +32,19 @@
#include <nand.h>
struct alpr_ndfc_regs {
- u16 cmd[4];
- u16 addr_wait;
- u16 term;
- u16 dummy;
- u16 dummy2;
- u16 data;
+ u8 cmd[4];
+ u8 addr_wait;
+ u8 term;
+ u8 dummy;
+ u8 dummy2;
+ u8 data;
};
static u8 hwctl;
static struct alpr_ndfc_regs *alpr_ndfc = NULL;
-#define readb(addr) (u8)(*(volatile u16 *)(addr))
-#define writeb(d,addr) *(volatile u16 *)(addr) = ((u16)(d))
+#define readb(addr) (u8)(*(volatile u8 *)(addr))
+#define writeb(d,addr) *(volatile u8 *)(addr) = ((u8)(d))
/*
* The ALPR has a NAND Flash Controller (NDFC) that handles all accesses to