summaryrefslogtreecommitdiff
path: root/board/netstal/hcu4/hcu4.c
diff options
context:
space:
mode:
authorNiklaus Giger <niklaus.giger@netstal.com>2008-02-25 18:37:01 +0100
committerStefan Roese <sr@denx.de>2008-03-15 07:25:50 +0100
commita079494853cc2bfeddb26673219db0b4b2b31566 (patch)
tree240f80373cef4b7214bb5b660a8ea11c812a4389 /board/netstal/hcu4/hcu4.c
parente4170e5a50c8110f792bc37472833ae669d69951 (diff)
downloadu-boot-imx-a079494853cc2bfeddb26673219db0b4b2b31566.zip
u-boot-imx-a079494853cc2bfeddb26673219db0b4b2b31566.tar.gz
u-boot-imx-a079494853cc2bfeddb26673219db0b4b2b31566.tar.bz2
ppc4xx: HCU4/5. Use FLASH_CFI_LEGACY
Cleanup: Remove custom flash driver for 8 bit boot-eprom and replace it with the FLASH_CFI_LEGACY et al. config options. Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
Diffstat (limited to 'board/netstal/hcu4/hcu4.c')
-rw-r--r--board/netstal/hcu4/hcu4.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/netstal/hcu4/hcu4.c b/board/netstal/hcu4/hcu4.c
index bb610e2..12c2c2b 100644
--- a/board/netstal/hcu4/hcu4.c
+++ b/board/netstal/hcu4/hcu4.c
@@ -201,3 +201,19 @@ void ft_board_setup(void *blob, bd_t *bd)
}
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
+
+/*
+ * Hardcoded flash setup:
+ * Flash 0 is a non-CFI AMD AM29F040 flash, 8 bit flash / 8 bit bus.
+ */
+ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
+{
+ if (banknum == 0) { /* non-CFI boot flash */
+ info->portwidth = 1;
+ info->chipwidth = 1;
+ info->interface = FLASH_CFI_X8;
+ return 1;
+ } else
+ return 0;
+}
+