mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
regmap-irq: Introduce inverted status registers support
Some interrupt controllers have inverted status register: cleared bits is active interrupts and set bits is inactive interrupts, so add inverted status support to the framework. Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru> Link: https://lore.kernel.org/r/20210525034204.5272-1-fido_max@inbox.ru Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
b24412aff3
commit
bcd23f93d3
@@ -1449,6 +1449,7 @@ struct regmap_irq_sub_irq_map {
|
||||
* @not_fixed_stride: Used when chip peripherals are not laid out with fixed
|
||||
* stride. Must be used with sub_reg_offsets containing the
|
||||
* offsets to each peripheral.
|
||||
* @status_invert: Inverted status register: cleared bits are active interrupts.
|
||||
* @runtime_pm: Hold a runtime PM lock on the device when accessing it.
|
||||
*
|
||||
* @num_regs: Number of registers in each control bank.
|
||||
@@ -1501,6 +1502,7 @@ struct regmap_irq_chip {
|
||||
bool type_in_mask:1;
|
||||
bool clear_on_unmask:1;
|
||||
bool not_fixed_stride:1;
|
||||
bool status_invert:1;
|
||||
|
||||
int num_regs;
|
||||
|
||||
|
Reference in New Issue
Block a user