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*47ee108aSMark Brown bool 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 1170a640c0SGeert Uytterhoeven help 1270a640c0SGeert Uytterhoeven Enable support for the Register Map (regmap) access API. 1370a640c0SGeert Uytterhoeven 1470a640c0SGeert Uytterhoeven Usually, this option is automatically selected when needed. 1570a640c0SGeert Uytterhoeven However, you may want to enable it manually for running the regmap 1670a640c0SGeert Uytterhoeven KUnit tests. 1770a640c0SGeert Uytterhoeven 1870a640c0SGeert Uytterhoeven If unsure, say N. 1934a730aaSJonas Gorski 202238959bSMark Brownconfig REGMAP_KUNIT 212238959bSMark Brown tristate "KUnit tests for regmap" 2270a640c0SGeert Uytterhoeven depends on KUNIT && REGMAP 232238959bSMark Brown default KUNIT_ALL_TESTS 242238959bSMark Brown select REGMAP_RAM 252238959bSMark Brown 26*47ee108aSMark Brownconfig REGMAP_BUILD 27*47ee108aSMark Brown bool "Enable regmap build" 28*47ee108aSMark Brown depends on KUNIT 29*47ee108aSMark Brown select REGMAP 30*47ee108aSMark Brown help 31*47ee108aSMark Brown This option exists purely to allow the regmap KUnit tests to 32*47ee108aSMark Brown be enabled without having to enable some driver that uses 33*47ee108aSMark Brown regmap due to unfortunate issues with how KUnit tests are 34*47ee108aSMark Brown normally enabled. 35*47ee108aSMark Brown 3622853223SMark Brownconfig REGMAP_AC97 3722853223SMark Brown tristate 3822853223SMark Brown 399943fa30SMark Brownconfig REGMAP_I2C 409943fa30SMark Brown tristate 419ba1e456SGeert Uytterhoeven depends on I2C 42a676f083SMark Brown 437d6f7fb0SSrinivas Kandagatlaconfig REGMAP_SLIMBUS 447d6f7fb0SSrinivas Kandagatla tristate 457d6f7fb0SSrinivas Kandagatla depends on SLIMBUS 467d6f7fb0SSrinivas Kandagatla 47a676f083SMark Brownconfig REGMAP_SPI 48a676f083SMark Brown tristate 499ba1e456SGeert Uytterhoeven depends on SPI 50f8beab2bSMark Brown 51a01779f8SJosh Cartwrightconfig REGMAP_SPMI 52a01779f8SJosh Cartwright tristate 539ba1e456SGeert Uytterhoeven depends on SPMI 54a01779f8SJosh Cartwright 55cc5d0db3SAlex A. Mihaylovconfig REGMAP_W1 56cc5d0db3SAlex A. Mihaylov tristate 57cc5d0db3SAlex A. Mihaylov depends on W1 58cc5d0db3SAlex A. Mihaylov 591f89d2feSSander Vanheuleconfig REGMAP_MDIO 601f89d2feSSander Vanheule tristate 611f89d2feSSander Vanheule 6245f5ff81SStephen Warrenconfig REGMAP_MMIO 6345f5ff81SStephen Warren tristate 6445f5ff81SStephen Warren 65f8beab2bSMark Brownconfig REGMAP_IRQ 66f8beab2bSMark Brown bool 677c22ce6eSVinod Koul 68f6352424SMark Brownconfig REGMAP_RAM 69f6352424SMark Brown tristate 70f6352424SMark Brown 717c22ce6eSVinod Koulconfig REGMAP_SOUNDWIRE 727c22ce6eSVinod Koul tristate 738676b3caSPierre-Louis Bossart depends on SOUNDWIRE 74bcf7eac3SAkinobu Mita 75fb5103f9SPierre-Louis Bossartconfig REGMAP_SOUNDWIRE_MBQ 76fb5103f9SPierre-Louis Bossart tristate 77fb5103f9SPierre-Louis Bossart depends on SOUNDWIRE 78fb5103f9SPierre-Louis Bossart 79bcf7eac3SAkinobu Mitaconfig REGMAP_SCCB 80bcf7eac3SAkinobu Mita tristate 81bcf7eac3SAkinobu Mita depends on I2C 826445500bSVitor Soares 836445500bSVitor Soaresconfig REGMAP_I3C 846445500bSVitor Soares tristate 856445500bSVitor Soares depends on I3C 867f9fb673SXu Yilun 877f9fb673SXu Yilunconfig REGMAP_SPI_AVMM 887f9fb673SXu Yilun tristate 897f9fb673SXu Yilun depends on SPI 90bf0d29fbSEddie James 91bf0d29fbSEddie Jamesconfig REGMAP_FSI 92bf0d29fbSEddie James tristate 93bf0d29fbSEddie James depends on FSI 94