| 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 | |
| 6 | config REGMAP |
| 7 | bool |
| 8 | default y if (REGMAP_I2C || REGMAP_SLIMBUS || 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 | help |
| 10 | Enable support for the Register Map (regmap) access API. |
| 11 | |
| 12 | Usually, this option is automatically selected when needed. |
| 13 | However, you may want to enable it manually for running the regmap |
| 14 | KUnit tests. |
| 15 | |
| 16 | If unsure, say N. |
| 17 | |
| 18 | config REGMAP_KUNIT |
| 19 | tristate "KUnit tests for regmap" |
| 20 | depends on KUNIT && REGMAP |
| 21 | default KUNIT_ALL_TESTS |
| 22 | select REGMAP_RAM |
| 23 | |
| 24 | config REGMAP_BUILD |
| 25 | bool "Enable regmap build" |
| 26 | depends on KUNIT |
| 27 | select REGMAP |
| 28 | help |
| 29 | This option exists purely to allow the regmap KUnit tests to |
| 30 | be enabled without having to enable some driver that uses |
| 31 | regmap due to unfortunate issues with how KUnit tests are |
| 32 | normally enabled. |
| 33 | |
| 34 | config REGMAP_AC97 |
| 35 | tristate |
| 36 | |
| 37 | config REGMAP_I2C |
| 38 | tristate |
| 39 | depends on I2C |
| 40 | |
| 41 | config REGMAP_SLIMBUS |
| 42 | tristate |
| 43 | depends on SLIMBUS |
| 44 | |
| 45 | config REGMAP_SPI |
| 46 | tristate |
| 47 | depends on SPI |
| 48 | |
| 49 | config REGMAP_SPMI |
| 50 | tristate |
| 51 | depends on SPMI |
| 52 | |
| 53 | config REGMAP_W1 |
| 54 | tristate |
| 55 | depends on W1 |
| 56 | |
| 57 | config REGMAP_MDIO |
| 58 | tristate |
| 59 | depends on PHYLIB |
| 60 | |
| 61 | config REGMAP_MMIO |
| 62 | tristate |
| 63 | |
| 64 | config REGMAP_IRQ |
| 65 | bool |
| 66 | select IRQ_DOMAIN |
| 67 | |
| 68 | config REGMAP_RAM |
| 69 | tristate |
| 70 | |
| 71 | config REGMAP_SOUNDWIRE |
| 72 | tristate |
| 73 | depends on SOUNDWIRE |
| 74 | |
| 75 | config REGMAP_SOUNDWIRE_MBQ |
| 76 | tristate |
| 77 | depends on SOUNDWIRE |
| 78 | |
| 79 | config REGMAP_SCCB |
| 80 | tristate |
| 81 | depends on I2C |
| 82 | |
| 83 | config REGMAP_I3C |
| 84 | tristate |
| 85 | depends on I3C |
| 86 | |
| 87 | config REGMAP_SPI_AVMM |
| 88 | tristate |
| 89 | depends on SPI |
| 90 | |
| 91 | config REGMAP_FSI |
| 92 | tristate |
| 93 | depends on FSI |