2019-11-01 20:45:29 +08:00
|
|
|
# SiFive SPI Driver configuration options
|
2018-11-22 03:28:29 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2018 SiFive Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig SPI_SIFIVE
|
|
|
|
bool "SiFive SPI controller driver"
|
2019-07-19 11:05:53 +08:00
|
|
|
depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM
|
2018-11-22 03:28:29 +08:00
|
|
|
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
|
2020-02-10 05:26:07 +08:00
|
|
|
depends on SPI_SIFIVE
|
2018-11-22 03:28:29 +08:00
|
|
|
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.
|