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 drivers/spi/Kconfig.sifive:14

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:34drivers/spi/Kconfig:235

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.)