[U-Boot] [PATCH 3/3] cm4008: use common cfi_flash support
Yann Vernier
yann.vernier at orsoc.se
Thu Jul 5 10:05:06 CEST 2012
This change allows use of other flash chips than the two supported by
the cm4008 flash.c. Tested with Micrel KSZ8695X demo board.
Signed-off-by: Yann Vernier <yann.vernier at orsoc.se>
---
board/cm4008/Makefile | 2 +-
include/configs/cm4008.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/board/cm4008/Makefile b/board/cm4008/Makefile
index 5b98824..22fd74e 100644
--- a/board/cm4008/Makefile
+++ b/board/cm4008/Makefile
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).o
-COBJS := cm4008.o flash.o
+COBJS := cm4008.o # flash.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
diff --git a/include/configs/cm4008.h b/include/configs/cm4008.h
index 7c2e113..6d1a1ae 100644
--- a/include/configs/cm4008.h
+++ b/include/configs/cm4008.h
@@ -125,6 +125,10 @@
#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors (x1) */
#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_FLASH_CFI_DRIVER 1
+#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT
+
/*-----------------------------------------------------------------------
* FLASH and environment organization
*/
--
1.7.10
More information about the U-Boot
mailing list