84089205db
[ Upstream commit 3fcce133f0d9a50d3a23f8e2bc950197b4e03900 ]
regmap is a library function that gets selected by drivers that need it. No
driver modules should depend on it. Instead depends on SPI and select
REGMAP_SPI. Depending on REGMAP_SPI makes this driver only build if another
driver already selected REGMAP_SPI, as the symbol can't be selected through the
menu kernel configuration.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: http://lore.kernel.org/r/20200413141013.506613-1-enric.balletbo@collabora.com
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Fixes: 5443c226ba
("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
26 lines
889 B
Plaintext
26 lines
889 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config CAN_M_CAN
|
|
tristate "Bosch M_CAN support"
|
|
---help---
|
|
Say Y here if you want support for Bosch M_CAN controller framework.
|
|
This is common support for devices that embed the Bosch M_CAN IP.
|
|
|
|
config CAN_M_CAN_PLATFORM
|
|
tristate "Bosch M_CAN support for io-mapped devices"
|
|
depends on HAS_IOMEM
|
|
depends on CAN_M_CAN
|
|
---help---
|
|
Say Y here if you want support for IO Mapped Bosch M_CAN controller.
|
|
This support is for devices that have the Bosch M_CAN controller
|
|
IP embedded into the device and the IP is IO Mapped to the processor.
|
|
|
|
config CAN_M_CAN_TCAN4X5X
|
|
depends on CAN_M_CAN
|
|
depends on SPI
|
|
select REGMAP_SPI
|
|
tristate "TCAN4X5X M_CAN device"
|
|
---help---
|
|
Say Y here if you want support for Texas Instruments TCAN4x5x
|
|
M_CAN controller. This device is a peripherial device that uses the
|
|
SPI bus for communication.
|