Patchwork [U-Boot,14/15] x86: Enable SPI flash support for coreboot

login
register
mail settings
Submitter Simon Glass
Date Dec. 26, 2012, 10:28 p.m.
Message ID <1356560913-2205-15-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/208234/
State Superseded, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - Dec. 26, 2012, 10:28 p.m.
Turn on SPI flash support and related commands.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 include/configs/coreboot.h |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

Patch

diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h
index fd383ff..ea92ffe 100644
--- a/include/configs/coreboot.h
+++ b/include/configs/coreboot.h
@@ -258,10 +258,16 @@ 
 /*-----------------------------------------------------------------------
  * FLASH configuration
  */
+#define CONFIG_ICH_SPI
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_MACRONIX
+#define CONFIG_SPI_FLASH_WINBOND
+#define CONFIG_SPI_FLASH_GIGADEVICE
 #define CONFIG_SYS_NO_FLASH
-#undef CONFIG_FLASH_CFI_DRIVER
-#define CONFIG_SYS_MAX_FLASH_SECT		1
-#define CONFIG_SYS_MAX_FLASH_BANKS		1
+#define CONFIG_CMD_SF
+#define CONFIG_CMD_SF_TEST
+#define CONFIG_CMD_SPI
+#define CONFIG_SPI
 
 /*-----------------------------------------------------------------------
  * Environment configuration