xref: /linux/drivers/base/regmap/Kconfig (revision 70a640c0efa7667453c3911b13335304ce46ad8b)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2b83a313bSMark Brown# Generic register map support.  There are no user servicable options here,
3b83a313bSMark Brown# this is an API intended to be used by other kernel subsystems.  These
4b83a313bSMark Brown# subsystems should select the appropriate symbols.
5b83a313bSMark Brown
6b83a313bSMark Brownconfig REGMAP
7*70a640c0SGeert Uytterhoeven	bool "Register Map support" if KUNIT_ALL_TESTS
8bf0d29fbSEddie James	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)
934a730aaSJonas Gorski	select IRQ_DOMAIN if REGMAP_IRQ
101f89d2feSSander Vanheule	select MDIO_BUS if REGMAP_MDIO
11*70a640c0SGeert Uytterhoeven	help
12*70a640c0SGeert Uytterhoeven	  Enable support for the Register Map (regmap) access API.
13*70a640c0SGeert Uytterhoeven
14*70a640c0SGeert Uytterhoeven	  Usually, this option is automatically selected when needed.
15*70a640c0SGeert Uytterhoeven	  However, you may want to enable it manually for running the regmap
16*70a640c0SGeert Uytterhoeven	  KUnit tests.
17*70a640c0SGeert Uytterhoeven
18*70a640c0SGeert Uytterhoeven	  If unsure, say N.
1934a730aaSJonas Gorski
202238959bSMark Brownconfig REGMAP_KUNIT
212238959bSMark Brown	tristate "KUnit tests for regmap"
22*70a640c0SGeert Uytterhoeven	depends on KUNIT && REGMAP
232238959bSMark Brown	default KUNIT_ALL_TESTS
242238959bSMark Brown	select REGMAP_RAM
252238959bSMark Brown
2622853223SMark Brownconfig REGMAP_AC97
2722853223SMark Brown	tristate
2822853223SMark Brown
299943fa30SMark Brownconfig REGMAP_I2C
309943fa30SMark Brown	tristate
319ba1e456SGeert Uytterhoeven	depends on I2C
32a676f083SMark Brown
337d6f7fb0SSrinivas Kandagatlaconfig REGMAP_SLIMBUS
347d6f7fb0SSrinivas Kandagatla	tristate
357d6f7fb0SSrinivas Kandagatla	depends on SLIMBUS
367d6f7fb0SSrinivas Kandagatla
37a676f083SMark Brownconfig REGMAP_SPI
38a676f083SMark Brown	tristate
399ba1e456SGeert Uytterhoeven	depends on SPI
40f8beab2bSMark Brown
41a01779f8SJosh Cartwrightconfig REGMAP_SPMI
42a01779f8SJosh Cartwright	tristate
439ba1e456SGeert Uytterhoeven	depends on SPMI
44a01779f8SJosh Cartwright
45cc5d0db3SAlex A. Mihaylovconfig REGMAP_W1
46cc5d0db3SAlex A. Mihaylov	tristate
47cc5d0db3SAlex A. Mihaylov	depends on W1
48cc5d0db3SAlex A. Mihaylov
491f89d2feSSander Vanheuleconfig REGMAP_MDIO
501f89d2feSSander Vanheule	tristate
511f89d2feSSander Vanheule
5245f5ff81SStephen Warrenconfig REGMAP_MMIO
5345f5ff81SStephen Warren	tristate
5445f5ff81SStephen Warren
55f8beab2bSMark Brownconfig REGMAP_IRQ
56f8beab2bSMark Brown	bool
577c22ce6eSVinod Koul
58f6352424SMark Brownconfig REGMAP_RAM
59f6352424SMark Brown	tristate
60f6352424SMark Brown
617c22ce6eSVinod Koulconfig REGMAP_SOUNDWIRE
627c22ce6eSVinod Koul	tristate
638676b3caSPierre-Louis Bossart	depends on SOUNDWIRE
64bcf7eac3SAkinobu Mita
65fb5103f9SPierre-Louis Bossartconfig REGMAP_SOUNDWIRE_MBQ
66fb5103f9SPierre-Louis Bossart	tristate
67fb5103f9SPierre-Louis Bossart	depends on SOUNDWIRE
68fb5103f9SPierre-Louis Bossart
69bcf7eac3SAkinobu Mitaconfig REGMAP_SCCB
70bcf7eac3SAkinobu Mita	tristate
71bcf7eac3SAkinobu Mita	depends on I2C
726445500bSVitor Soares
736445500bSVitor Soaresconfig REGMAP_I3C
746445500bSVitor Soares	tristate
756445500bSVitor Soares	depends on I3C
767f9fb673SXu Yilun
777f9fb673SXu Yilunconfig REGMAP_SPI_AVMM
787f9fb673SXu Yilun	tristate
797f9fb673SXu Yilun	depends on SPI
80bf0d29fbSEddie James
81bf0d29fbSEddie Jamesconfig REGMAP_FSI
82bf0d29fbSEddie James	tristate
83bf0d29fbSEddie James	depends on FSI
84