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 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_BUILD 27 bool "Enable regmap build" 28 depends on KUNIT 29 select REGMAP 30 help 31 This option exists purely to allow the regmap KUnit tests to 32 be enabled without having to enable some driver that uses 33 regmap due to unfortunate issues with how KUnit tests are 34 normally enabled. 35 36config REGMAP_AC97 37 tristate 38 39config REGMAP_I2C 40 tristate 41 depends on I2C 42 43config REGMAP_SLIMBUS 44 tristate 45 depends on SLIMBUS 46 47config REGMAP_SPI 48 tristate 49 depends on SPI 50 51config REGMAP_SPMI 52 tristate 53 depends on SPMI 54 55config REGMAP_W1 56 tristate 57 depends on W1 58 59config REGMAP_MDIO 60 tristate 61 62config REGMAP_MMIO 63 tristate 64 65config REGMAP_IRQ 66 bool 67 68config REGMAP_RAM 69 tristate 70 71config REGMAP_SOUNDWIRE 72 tristate 73 depends on SOUNDWIRE 74 75config REGMAP_SOUNDWIRE_MBQ 76 tristate 77 depends on SOUNDWIRE 78 79config REGMAP_SCCB 80 tristate 81 depends on I2C 82 83config REGMAP_I3C 84 tristate 85 depends on I3C 86 87config REGMAP_SPI_AVMM 88 tristate 89 depends on SPI 90 91config REGMAP_FSI 92 tristate 93 depends on FSI 94