2016-03-18 02:21:49 +08:00
|
|
|
# Kconfig.dw - DesignWare SPI driver configuration options
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-18 02:21:49 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig SPI_DW
|
|
|
|
bool
|
|
|
|
prompt "Designware SPI controller driver"
|
|
|
|
depends on SPI
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable support for Designware's SPI controllers.
|
|
|
|
|
|
|
|
if SPI_DW
|
|
|
|
|
|
|
|
config SPI_DW_ARC_AUX_REGS
|
|
|
|
bool "Registers are part of ARC auxiliary registers"
|
|
|
|
depends on SPI_DW && ARC
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
SPI IP block registers are part of user extended auxiliary
|
|
|
|
registers and thus their access is different than memory
|
|
|
|
mapped registers.
|
|
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
depends on SPI_DW
|
|
|
|
prompt "DesignWare SPI interrupt management logic"
|
|
|
|
default SPI_DW_INTERRUPT_SINGLE_LINE
|
|
|
|
|
|
|
|
config SPI_DW_INTERRUPT_SINGLE_LINE
|
|
|
|
bool "Single interrupt line for all interrupts"
|
|
|
|
help
|
|
|
|
Only one line is used to trigger interrupts: RX, TX and ERROR
|
|
|
|
interrupt go all through that line, undifferentiated.
|
|
|
|
config SPI_DW_INTERRUPT_SEPARATED_LINES
|
|
|
|
bool "One line per-interrupt type (RX, TX and ERROR)"
|
|
|
|
help
|
|
|
|
Each interrupt gets a dedicated line
|
|
|
|
endchoice
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config SPI_DW_CLOCK_GATE
|
2017-05-06 06:37:53 +08:00
|
|
|
bool "Enable clock gating"
|
2016-08-30 20:41:04 +08:00
|
|
|
depends on SPI_DW && SOC_QUARK_SE_C1000
|
2016-03-18 02:21:49 +08:00
|
|
|
select CLOCK_CONTROL
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SPI_DW_CLOCK_GATE_DRV_NAME
|
|
|
|
string
|
|
|
|
depends on SPI_DW_CLOCK_GATE
|
|
|
|
default ""
|
|
|
|
|
2016-05-19 04:11:35 +08:00
|
|
|
config SPI_DW_FIFO_DEPTH
|
2017-04-25 02:30:10 +08:00
|
|
|
int "RX and TX FIFO Depth"
|
2016-05-19 04:11:35 +08:00
|
|
|
help
|
|
|
|
Corresponds to the SSI_TX_FIFO_DEPTH and
|
2017-04-22 01:29:51 +08:00
|
|
|
SSI_RX_FIFO_DEPTH of the DesignWare Synchronous
|
2016-05-19 04:11:35 +08:00
|
|
|
Serial Interface. Depth ranges from 2-256.
|
2016-03-18 02:21:49 +08:00
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config SPI_DW_PORT_0_CLOCK_GATE_SUBSYS
|
2016-03-18 02:21:49 +08:00
|
|
|
int "Clock controller's subsystem"
|
|
|
|
depends on SPI_DW_CLOCK_GATE
|
|
|
|
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config SPI_DW_PORT_1_CLOCK_GATE_SUBSYS
|
2016-03-18 02:21:49 +08:00
|
|
|
int "Clock controller's subsystem"
|
|
|
|
depends on SPI_DW_CLOCK_GATE
|
|
|
|
|
|
|
|
|
|
|
|
endif # SPI_DW
|