1# SiFive SPI Driver configuration options
2
3# Copyright (c) 2018 SiFive Inc.
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig SPI_SIFIVE
7	bool "SiFive SPI controller driver"
8	depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM
9	help
10	  Enable the SPI peripherals on SiFive Freedom processors
11
12config SIFIVE_SPI_0_ROM
13	bool "SPI 0 is used to access SPI Flash ROM"
14	default y
15	depends on SPI_SIFIVE
16	help
17	  If enabled, SPI 0 is reserved for accessing the SPI flash ROM and a
18	  driver interface won't be instantiated for SPI 0.
19
20	  Beware disabling this option on HiFive 1! The SPI flash ROM is where the
21	  program is stored, and if this driver initializes the interface for
22	  peripheral control the FE310 will crash on boot.
23