mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
riscv: Enable SPI flash env for SiFive Unmatched.
Enable saving environment to SPI flash memory on SiFive Unmatched. Signed-off-by: Thomas Skibo <thomas-git@skibo.net> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
6a863894ad
commit
c0ffc12a70
2 changed files with 14 additions and 0 deletions
|
@ -40,3 +40,16 @@ config SIFIVE_FU740
|
|||
imply DM_I2C
|
||||
imply SYS_I2C_OCORES
|
||||
imply SPL_I2C
|
||||
|
||||
if ENV_IS_IN_SPI_FLASH
|
||||
|
||||
config ENV_OFFSET
|
||||
default 0x505000
|
||||
|
||||
config ENV_SIZE
|
||||
default 0x20000
|
||||
|
||||
config ENV_SECT_SIZE
|
||||
default 0x10000
|
||||
|
||||
endif # ENV_IS_IN_SPI_FLASH
|
||||
|
|
|
@ -26,6 +26,7 @@ config SPL_OPENSBI_LOAD_ADDR
|
|||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
select SIFIVE_FU740
|
||||
select ENV_IS_IN_SPI_FLASH
|
||||
select SUPPORT_SPL
|
||||
select RESET_SIFIVE
|
||||
select BINMAN
|
||||
|
|
Loading…
Add table
Reference in a new issue