diff options
author | rick <rick@andestech.com> | 2017-08-28 15:13:09 +0800 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2017-09-21 10:30:22 +0800 |
commit | 7b1a50b7b660232196a5250ccaf6aa560944865d (patch) | |
tree | 17c4d0bc375f715d118c6784d39b44e51aa48134 /include/configs/adp-ae3xx.h | |
parent | 6d3cb0fdcd7d29ef54651576c3d0c5fb8c789a16 (diff) | |
download | u-boot-7b1a50b7b660232196a5250ccaf6aa560944865d.tar.gz u-boot-7b1a50b7b660232196a5250ccaf6aa560944865d.tar.bz2 u-boot-7b1a50b7b660232196a5250ccaf6aa560944865d.zip |
nds32: board: Support SPI driver.
Add spi dts node and enable spi dm flash config.
Signed-off-by: rick <rick@andestech.com>
Diffstat (limited to 'include/configs/adp-ae3xx.h')
-rw-r--r-- | include/configs/adp-ae3xx.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/configs/adp-ae3xx.h b/include/configs/adp-ae3xx.h index 4378df502c..6946029333 100644 --- a/include/configs/adp-ae3xx.h +++ b/include/configs/adp-ae3xx.h @@ -220,14 +220,25 @@ /* max number of sectors on one chip */ #define CONFIG_FLASH_SECTOR_SIZE (0x10000*2) -#define CONFIG_ENV_SECT_SIZE CONFIG_FLASH_SECTOR_SIZE #define CONFIG_SYS_MAX_FLASH_SECT 512 /* environments */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x140000) +#define CONFIG_ENV_SPI_BUS 0 +#define CONFIG_ENV_SPI_CS 0 +#define CONFIG_ENV_SPI_MAX_HZ 50000000 +#define CONFIG_ENV_SPI_MODE 0 +#define CONFIG_ENV_SECT_SIZE 0x1000 +#define CONFIG_ENV_OFFSET 0x140000 #define CONFIG_ENV_SIZE 8192 #define CONFIG_ENV_OVERWRITE + +/* SPI FLASH */ +#define CONFIG_SF_DEFAULT_BUS 0 +#define CONFIG_SF_DEFAULT_CS 0 +#define CONFIG_SF_DEFAULT_SPEED 1000000 +#define CONFIG_SF_DEFAULT_MODE 0 + /* * For booting Linux, the board info and command line data * have to be in the first 16 MB of memory, since this is |