summaryrefslogtreecommitdiff
path: root/board/prodrive/alpr/nand.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-01-06 15:56:13 +0100
committerStefan Roese <sr@denx.de>2007-01-06 15:56:13 +0100
commitf16c1da9577f06c5fc08651a4065537407de4635 (patch)
tree9f9a628ee787188221f7345d8fbbda89a71a6cee /board/prodrive/alpr/nand.c
parentcd1d937f90250a32988c37b2b4af8364d25de8ed (diff)
downloadu-boot-imx-f16c1da9577f06c5fc08651a4065537407de4635.zip
u-boot-imx-f16c1da9577f06c5fc08651a4065537407de4635.tar.gz
u-boot-imx-f16c1da9577f06c5fc08651a4065537407de4635.tar.bz2
[PATCH] Update ALPR board files
This update brings the ALPR board support to the newest version. It also fixes a problem with the NAND driver. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/prodrive/alpr/nand.c')
-rw-r--r--board/prodrive/alpr/nand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/prodrive/alpr/nand.c b/board/prodrive/alpr/nand.c
index e63c921..d66b088 100644
--- a/board/prodrive/alpr/nand.c
+++ b/board/prodrive/alpr/nand.c
@@ -154,7 +154,7 @@ static int alpr_nand_dev_ready(struct mtd_info *mtd)
return 1;
}
-void board_nand_init(struct nand_chip *nand)
+int board_nand_init(struct nand_chip *nand)
{
alpr_ndfc = (struct alpr_ndfc_regs *)CFG_NAND_BASE;
@@ -169,5 +169,7 @@ void board_nand_init(struct nand_chip *nand)
nand->read_buf = alpr_nand_read_buf;
nand->verify_buf = alpr_nand_verify_buf;
nand->dev_ready = alpr_nand_dev_ready;
+
+ return 0;
}
#endif