aboutsummaryrefslogtreecommitdiff
path: root/include/configs/clearfog.h
diff options
context:
space:
mode:
authorJon Nettleton <jon@solid-run.com>2017-11-13 07:04:30 +0200
committerStefan Roese <sr@denx.de>2017-11-16 11:45:20 +0100
commit962b8fef91fbfa58c1045bee4d9a73c72b46c829 (patch)
tree3d67f6d0a794c7abd2274877b9d3307dd50f4d19 /include/configs/clearfog.h
parentb4b06ac6f767b833acf7cf6e7533ead2f4425378 (diff)
downloadu-boot-962b8fef91fbfa58c1045bee4d9a73c72b46c829.zip
u-boot-962b8fef91fbfa58c1045bee4d9a73c72b46c829.tar.gz
u-boot-962b8fef91fbfa58c1045bee4d9a73c72b46c829.tar.bz2
arm: mvebu: clearfog: Fix SPI-NOR flash access
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>
Diffstat (limited to 'include/configs/clearfog.h')
-rw-r--r--include/configs/clearfog.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index 5061f6c..bf87bac 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -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