CONFIG_SIFIVE_SPI_0_ROM

SPI 0 is used to access SPI Flash ROM

Type: bool

Help

If enabled, SPI 0 is reserved for accessing the SPI flash ROM and a driver interface won’t be instantiated for SPI 0.

Beware disabling this option on HiFive 1! The SPI flash ROM is where the program is stored, and if this driver initializes the interface for peripheral control the FE310 will crash on boot.

Direct dependencies

SPI_SIFIVE && SPI

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At <Zephyr>/drivers/spi/Kconfig.sifive:12

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:38<Zephyr>/drivers/spi/Kconfig:208

Menu path: (Top) → Device Drivers → SPI hardware bus support → SiFive SPI controller driver

config SIFIVE_SPI_0_ROM
    bool "SPI 0 is used to access SPI Flash ROM"
    default y
    depends on SPI_SIFIVE && SPI
    help
      If enabled, SPI 0 is reserved for accessing the SPI flash ROM and a
      driver interface won't be instantiated for SPI 0.

      Beware disabling this option on HiFive 1! The SPI flash ROM is where the
      program is stored, and if this driver initializes the interface for
      peripheral control the FE310 will crash on boot.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)