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
|
|
|
#
|
|
|
|
|
2018-11-21 00:56:37 +08:00
|
|
|
config HAS_SPI_DW
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Signifies whether DesignWare SPI compatible HW is available
|
|
|
|
|
2016-03-18 02:21:49 +08:00
|
|
|
menuconfig SPI_DW
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "Designware SPI controller driver"
|
2018-11-21 00:56:37 +08:00
|
|
|
depends on HAS_SPI_DW
|
2016-03-18 02:21:49 +08:00
|
|
|
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.
|
|
|
|
|
2018-02-27 14:31:05 +08:00
|
|
|
config SPI_DW_FIFO_DEPTH
|
|
|
|
int "RX and TX FIFO Depth"
|
|
|
|
help
|
|
|
|
Corresponds to the SSI_TX_FIFO_DEPTH and
|
|
|
|
SSI_RX_FIFO_DEPTH of the DesignWare Synchronous
|
|
|
|
Serial Interface. Depth ranges from 2-256.
|
2016-03-18 02:21:49 +08:00
|
|
|
|
2018-02-27 14:31:05 +08:00
|
|
|
if SPI_0
|
|
|
|
|
|
|
|
config SPI_DW_PORT_0_INTERRUPT_SINGLE_LINE
|
2016-03-18 02:21:49 +08:00
|
|
|
bool "Single interrupt line for all interrupts"
|
2018-02-27 14:31:05 +08:00
|
|
|
default y
|
2016-03-18 02:21:49 +08:00
|
|
|
help
|
|
|
|
Only one line is used to trigger interrupts: RX, TX and ERROR
|
|
|
|
interrupt go all through that line, undifferentiated.
|
|
|
|
|
2018-02-27 14:31:05 +08:00
|
|
|
config SPI_DW_PORT_0_CLOCK_GATE
|
2017-05-06 06:37:53 +08:00
|
|
|
bool "Enable clock gating"
|
2018-02-27 14:31:05 +08:00
|
|
|
depends on CLOCK_CONTROL
|
2016-03-18 02:21:49 +08:00
|
|
|
|
2018-02-27 14:31:05 +08:00
|
|
|
if SPI_DW_PORT_0_CLOCK_GATE
|
|
|
|
|
|
|
|
config SPI_DW_PORT_0_CLOCK_GATE_DRV_NAME
|
2016-03-18 02:21:49 +08:00
|
|
|
string
|
|
|
|
|
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"
|
2018-02-27 14:31:05 +08:00
|
|
|
|
|
|
|
endif # SPI_DW_PORT_0_CLOCK_GATE
|
|
|
|
|
|
|
|
endif # SPI_0
|
|
|
|
|
|
|
|
if SPI_1
|
|
|
|
|
|
|
|
config SPI_DW_PORT_1_INTERRUPT_SINGLE_LINE
|
|
|
|
bool "Single interrupt line for all interrupts"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config SPI_DW_PORT_1_CLOCK_GATE
|
|
|
|
bool "Enable clock gating"
|
|
|
|
depends on CLOCK_CONTROL
|
|
|
|
|
|
|
|
if SPI_DW_PORT_1_CLOCK_GATE
|
|
|
|
|
|
|
|
config SPI_DW_PORT_1_CLOCK_GATE_DRV_NAME
|
|
|
|
string
|
2016-03-18 02:21:49 +08:00
|
|
|
|
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"
|
|
|
|
|
2018-02-27 14:31:05 +08:00
|
|
|
endif # SPI_DW_PORT_1_CLOCK_GATE
|
|
|
|
|
|
|
|
endif # SPI_1
|
2018-02-27 16:25:50 +08:00
|
|
|
|
|
|
|
if SPI_2
|
|
|
|
|
|
|
|
config SPI_DW_PORT_2_INTERRUPT_SINGLE_LINE
|
|
|
|
bool "Single interrupt line for all interrupts"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Only one line is used to trigger interrupts: RX, TX and ERROR
|
|
|
|
interrupt go all through that line, undifferentiated.
|
|
|
|
|
|
|
|
config SPI_DW_PORT_2_CLOCK_GATE
|
|
|
|
bool "Enable clock gating"
|
|
|
|
depends on CLOCK_CONTROL
|
|
|
|
|
|
|
|
if SPI_DW_PORT_2_CLOCK_GATE
|
|
|
|
|
|
|
|
config SPI_DW_PORT_2_CLOCK_GATE_DRV_NAME
|
|
|
|
string
|
|
|
|
default ""
|
|
|
|
|
|
|
|
config SPI_DW_PORT_2_CLOCK_GATE_SUBSYS
|
|
|
|
int "Clock controller's subsystem"
|
|
|
|
|
|
|
|
endif # SPI_DW_PORT_2_CLOCK_GATE
|
|
|
|
|
|
|
|
endif # SPI_2
|
|
|
|
|
|
|
|
if SPI_3
|
|
|
|
|
|
|
|
config SPI_DW_PORT_3_INTERRUPT_SINGLE_LINE
|
|
|
|
bool "Single interrupt line for all interrupts"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Only one line is used to trigger interrupts: RX, TX and ERROR
|
|
|
|
interrupt go all through that line, undifferentiated.
|
|
|
|
|
|
|
|
config SPI_DW_PORT_3_CLOCK_GATE
|
|
|
|
bool "Enable clock gating"
|
|
|
|
depends on CLOCK_CONTROL
|
|
|
|
|
|
|
|
if SPI_DW_PORT_3_CLOCK_GATE
|
|
|
|
|
|
|
|
config SPI_DW_PORT_3_CLOCK_GATE_DRV_NAME
|
|
|
|
string
|
|
|
|
default ""
|
|
|
|
|
|
|
|
config SPI_DW_PORT_3_CLOCK_GATE_SUBSYS
|
|
|
|
int "Clock controller's subsystem"
|
|
|
|
|
|
|
|
endif # SPI_DW_PORT_3_CLOCK_GATE
|
|
|
|
|
|
|
|
endif # SPI_3
|
|
|
|
|
2016-03-18 02:21:49 +08:00
|
|
|
endif # SPI_DW
|