summaryrefslogtreecommitdiff
path: root/include/configs/hcu4.h
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 /include/configs/hcu4.h
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 'include/configs/hcu4.h')
-rw-r--r--include/configs/hcu4.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/configs/hcu4.h b/include/configs/hcu4.h
index 5a85feb..4ecaf90 100644
--- a/include/configs/hcu4.h
+++ b/include/configs/hcu4.h
@@ -1,5 +1,5 @@
/*
- *(C) Copyright 2005-2007 Netstal Maschinen AG
+ *(C) Copyright 2005-2008 Netstal Maschinen AG
* Niklaus Giger (Niklaus.Giger@netstal.com)
*
* See file CREDITS for list of people who contributed to this
@@ -103,13 +103,19 @@
* Flash
*----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT 8 /* max number of sectors on one chip */
+/* Use common CFI driver */
+#define CFG_FLASH_CFI
+#define CFG_FLASH_CFI_DRIVER
+/* board provides its own flash_init code */
+#define CONFIG_FLASH_CFI_LEGACY 1
+#define CFG_FLASH_CFI_WIDTH FLASH_CFI_8BIT
+#define CFG_FLASH_LEGACY_512Kx8 1
-#define CFG_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
+/* print 'E' for empty sector on flinfo */
+#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
+#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
+#define CFG_MAX_FLASH_SECT 8 /* max number of sectors on one chip */
/*-----------------------------------------------------------------------
* Environment