xref: /openbmc/linux/drivers/base/regmap/Kconfig (revision d7955ce4)
1# SPDX-License-Identifier: GPL-2.0
2# Generic register map support.  There are no user servicable options here,
3# this is an API intended to be used by other kernel subsystems.  These
4# subsystems should select the appropriate symbols.
5
6config REGMAP
7	bool "Register Map support" if KUNIT_ALL_TESTS
8	default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SOUNDWIRE_MBQ || REGMAP_SCCB || REGMAP_I3C || REGMAP_SPI_AVMM || REGMAP_MDIO || REGMAP_FSI)
9	select IRQ_DOMAIN if REGMAP_IRQ
10	select MDIO_BUS if REGMAP_MDIO
11	help
12	  Enable support for the Register Map (regmap) access API.
13
14	  Usually, this option is automatically selected when needed.
15	  However, you may want to enable it manually for running the regmap
16	  KUnit tests.
17
18	  If unsure, say N.
19
20config REGMAP_KUNIT
21	tristate "KUnit tests for regmap"
22	depends on KUNIT && REGMAP
23	default KUNIT_ALL_TESTS
24	select REGMAP_RAM
25
26config REGMAP_AC97
27	tristate
28
29config REGMAP_I2C
30	tristate
31	depends on I2C
32
33config REGMAP_SLIMBUS
34	tristate
35	depends on SLIMBUS
36
37config REGMAP_SPI
38	tristate
39	depends on SPI
40
41config REGMAP_SPMI
42	tristate
43	depends on SPMI
44
45config REGMAP_W1
46	tristate
47	depends on W1
48
49config REGMAP_MDIO
50	tristate
51
52config REGMAP_MMIO
53	tristate
54
55config REGMAP_IRQ
56	bool
57
58config REGMAP_RAM
59	tristate
60
61config REGMAP_SOUNDWIRE
62	tristate
63	depends on SOUNDWIRE
64
65config REGMAP_SOUNDWIRE_MBQ
66	tristate
67	depends on SOUNDWIRE
68
69config REGMAP_SCCB
70	tristate
71	depends on I2C
72
73config REGMAP_I3C
74	tristate
75	depends on I3C
76
77config REGMAP_SPI_AVMM
78	tristate
79	depends on SPI
80
81config REGMAP_FSI
82	tristate
83	depends on FSI
84