mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
f8beab2bb6
There seem to be lots of regmap-using devices with very similar interrupt controllers with a small bank of interrupt registers and mask registers with an interrupt per bit. This won't cover everything but it's a good start. Each chip supplies a base for the status registers, a base for the mask registers, an optional base for writing acknowledgements (which may be the same as the status registers) and an array of bits within each of these register banks which indicate the interrupt. There is an assumption that the bit for each interrupt will be the same in each of the register bank. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
19 lines
389 B
Plaintext
19 lines
389 B
Plaintext
# Generic register map support. There are no user servicable options here,
|
|
# this is an API intended to be used by other kernel subsystems. These
|
|
# subsystems should select the appropriate symbols.
|
|
|
|
config REGMAP
|
|
default y if (REGMAP_I2C || REGMAP_SPI)
|
|
select LZO_COMPRESS
|
|
select LZO_DECOMPRESS
|
|
bool
|
|
|
|
config REGMAP_I2C
|
|
tristate
|
|
|
|
config REGMAP_SPI
|
|
tristate
|
|
|
|
config REGMAP_IRQ
|
|
bool
|