summaryrefslogtreecommitdiff
path: root/include/configs/bf537-pnav.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-05 04:55:05 -0400
committerScott Wood <scottwood@freescale.com>2010-07-08 16:52:13 -0500
commit67ceefa79b86d9d72b7487005a6a8a61cd6a1d66 (patch)
tree90430499b096d3817bdeae9f685ca26f4aca04a8 /include/configs/bf537-pnav.h
parentbc1a8846862049f435ee4e3d57c86c05b28567ad (diff)
downloadu-boot-imx-67ceefa79b86d9d72b7487005a6a8a61cd6a1d66.zip
u-boot-imx-67ceefa79b86d9d72b7487005a6a8a61cd6a1d66.tar.gz
u-boot-imx-67ceefa79b86d9d72b7487005a6a8a61cd6a1d66.tar.bz2
Blackfin: convert plat-nand code to GPIO framework
Use the new GPIO framework code in both the Blackfin arch and the nand_plat driver to simplify things greatly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/configs/bf537-pnav.h')
-rw-r--r--include/configs/bf537-pnav.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/configs/bf537-pnav.h b/include/configs/bf537-pnav.h
index cf40d06..73ad95e 100644
--- a/include/configs/bf537-pnav.h
+++ b/include/configs/bf537-pnav.h
@@ -132,7 +132,6 @@
#define BFIN_NAND_CLE(chip) ((unsigned long)(chip)->IO_ADDR_W | (1 << 2))
#define BFIN_NAND_ALE(chip) ((unsigned long)(chip)->IO_ADDR_W | (1 << 1))
-#define BFIN_NAND_READY PF12
#define BFIN_NAND_WRITE(addr, cmd) \
do { \
bfin_write8(addr, cmd); \
@@ -141,13 +140,7 @@
#define NAND_PLAT_WRITE_CMD(chip, cmd) BFIN_NAND_WRITE(BFIN_NAND_CLE(chip), cmd)
#define NAND_PLAT_WRITE_ADR(chip, cmd) BFIN_NAND_WRITE(BFIN_NAND_ALE(chip), cmd)
-#define NAND_PLAT_DEV_READY(chip) (bfin_read_PORTHIO() & BFIN_NAND_READY)
-#define NAND_PLAT_INIT() \
- do { \
- bfin_write_PORTH_FER(bfin_read_PORTH_FER() & ~BFIN_NAND_READY); \
- bfin_write_PORTHIO_DIR(bfin_read_PORTHIO_DIR() & ~BFIN_NAND_READY); \
- bfin_write_PORTHIO_INEN(bfin_read_PORTHIO_INEN() | BFIN_NAND_READY); \
- } while (0)
+#define NAND_PLAT_GPIO_DEV_READY GPIO_PF12
/*