zephyr/drivers/spi/Kconfig.sifive
Ulf Magnusson 378d6b137a kconfig: Replace non-defconfig single-symbol 'if's with 'depends on'
Same deal as in commit eddd98f811 ("kconfig: Replace some single-symbol
'if's with 'depends on'"), for the remaining cases outside defconfig
files. See that commit for an explanation.

Will do the defconfigs separately in case there are any complaints
there.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-12 10:32:34 -06:00

23 lines
718 B
Plaintext

# SiFive SPI Driver configuration options
# Copyright (c) 2018 SiFive Inc.
# SPDX-License-Identifier: Apache-2.0
menuconfig SPI_SIFIVE
bool "SiFive SPI controller driver"
depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM
help
Enable the SPI peripherals on SiFive Freedom processors
config SIFIVE_SPI_0_ROM
bool "SPI 0 is used to access SPI Flash ROM"
default y
depends on SPI_SIFIVE
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.