mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 17:28:15 +00:00
286bcdb40f
HiFive Unleashed A00 support is25wp256 spi-nor flash, So enable the same and add test result log for future reference. Tested on SiFive FU540 board. Thanks to Sagar for various use cases and tests. [QUAD mode in dt with spi-tx-bus-width: <4>] pp opcode = 0x34 [QUAD MODE] read opcode = 0x6c [QUAD MODE] erase opcode = 0x21 SPI-NOR: 1. erase entire flash: Pass 2. write entire flash: Pass 3. read entire flash: Pass 4. cmp 32MiB read back data: Pass 5. MMC: Booted Linux and dtb from mmc [SPI MODE in dt with spi-tx-bus-width: <1>] pp opcode = 0x12 [SPI MODE] read opcode = 0xc [SPI MODE] erase opcode = 0x21 SPI-NOR: 1. erase entire flash: Pass 2. write entire flash: Pass 3. read entire flash: Pass 4. cmp 32MiB read back data: Pass 5. MMC: Booted Linux and dtb from mmc Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Sagar Kadam <sagar.kadam@sifive.com>
55 lines
897 B
Text
55 lines
897 B
Text
if TARGET_SIFIVE_FU540
|
|
|
|
config SYS_BOARD
|
|
default "fu540"
|
|
|
|
config SYS_VENDOR
|
|
default "sifive"
|
|
|
|
config SYS_CPU
|
|
default "generic"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "sifive-fu540"
|
|
|
|
config SYS_TEXT_BASE
|
|
default 0x80000000 if !RISCV_SMODE
|
|
default 0x80200000 if RISCV_SMODE
|
|
|
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
|
def_bool y
|
|
select GENERIC_RISCV
|
|
imply CMD_DHCP
|
|
imply CMD_EXT2
|
|
imply CMD_EXT4
|
|
imply CMD_FAT
|
|
imply CMD_FS_GENERIC
|
|
imply CMD_NET
|
|
imply CMD_PING
|
|
imply CMD_SF
|
|
imply CLK_SIFIVE
|
|
imply CLK_SIFIVE_FU540_PRCI
|
|
imply DOS_PARTITION
|
|
imply EFI_PARTITION
|
|
imply IP_DYN
|
|
imply ISO_PARTITION
|
|
imply MACB
|
|
imply MII
|
|
imply NET_RANDOM_ETHADDR
|
|
imply PHY_LIB
|
|
imply PHY_MSCC
|
|
imply SIFIVE_SERIAL
|
|
imply SPI
|
|
imply SPI_SIFIVE
|
|
imply SPI_FLASH
|
|
imply SPI_FLASH_ISSI
|
|
imply MMC
|
|
imply MMC_SPI
|
|
imply MMC_BROKEN_CD
|
|
imply CMD_MMC
|
|
imply DM_GPIO
|
|
imply SIFIVE_GPIO
|
|
imply CMD_GPIO
|
|
imply SMP
|
|
|
|
endif
|