]> git.sur5r.net Git - u-boot/commitdiff
arm: mvebu: clearfog: Fix SPI-NOR flash access
authorJon Nettleton <jon@solid-run.com>
Mon, 13 Nov 2017 05:04:30 +0000 (07:04 +0200)
committerStefan Roese <sr@denx.de>
Thu, 16 Nov 2017 10:45:20 +0000 (11:45 +0100)
The production variant of the SPI flash used by the clearfog
devices are based on winbond chips.  Additionally enable
SPI_FLASH_BAR since some variants will have 16MB of flash
that requires this to be enabled.

Remove the default speed and mode; these values are taken from the
device tree when CONFIG_DM_SPI_FLASH is enabled.

Add default bus, so that 'sf' detects the SPI flash by default.

Signed-off-by: Jon Nettleton <jon@solid-run.com>
[baruch: remove speed/mode; add bus; move winbond to defconfig]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
configs/clearfog_defconfig
include/configs/clearfog.h

index 3de204346d88b9e3cb216f38a94d91d9dbde9c35..5fa645a45e23ee99005e7f2e6a38cf68c41e73ac 100644 (file)
@@ -46,3 +46,6 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_MVEBU=y
 CONFIG_USB_STORAGE=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_SPI_FLASH_MTD=y
index 5061f6c6fd16a4eb4d0271f514d100cb0c7aad50..bf87bac30021a72dbe914997b0483a734c7e55cc 100644 (file)
@@ -33,9 +33,7 @@
 #define CONFIG_SYS_I2C_SPEED           100000
 
 /* SPI NOR flash default params, used by sf commands */
-#define CONFIG_SF_DEFAULT_SPEED                1000000
-#define CONFIG_SF_DEFAULT_MODE         SPI_MODE_3
-#define CONFIG_SPI_FLASH_STMICRO
+#define CONFIG_SF_DEFAULT_BUS          1
 
 /*
  * SDIO/MMC Card Configuration