shared_irq: add config options for interrupt triggers
This adds options to the shared IRQ driver so the interrupt triggering condition can be specified. For example, the GPIO and I2C controllers are under same interrupt line through PCI bus. The triggering condition is level, active-low. So this option can be used by the Galileo platform to program the IO-APIC correctly. Change-Id: I1c3af98442e775b4987ab36a644c856052d85ec4 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
002c53b225
commit
006555a17b
1 changed files with 54 additions and 0 deletions
|
@ -41,6 +41,33 @@ config SHARED_IRQ_0_PRI
|
|||
help
|
||||
Prioity of shared interrupt handler for the configured interrupt
|
||||
|
||||
choice
|
||||
depends on SHARED_IRQ_0
|
||||
prompt "Shared IRQ #0 Trigger Condition"
|
||||
default SHARED_IRQ_0_RISING_EDGE
|
||||
|
||||
config SHARED_IRQ_0_FALLING_EDGE
|
||||
bool "Falling Edge"
|
||||
help
|
||||
Interrupt triggers on falling edge.
|
||||
|
||||
config SHARED_IRQ_0_RISING_EDGE
|
||||
bool "Rising Edge"
|
||||
help
|
||||
Interrupt triggers on rising edge.
|
||||
|
||||
config SHARED_IRQ_0_LEVEL_HIGH
|
||||
bool "Level High"
|
||||
help
|
||||
Interrupt triggers when level is high.
|
||||
|
||||
config SHARED_IRQ_0_LEVEL_LOW
|
||||
bool "Level Low"
|
||||
help
|
||||
Interrupt triggers when level is low.
|
||||
|
||||
endchoice
|
||||
|
||||
config SHARED_IRQ_1
|
||||
bool "Shared interrupt instance 1"
|
||||
select SHARED_IRQ
|
||||
|
@ -65,3 +92,30 @@ config SHARED_IRQ_1_PRI
|
|||
depends on SHARED_IRQ_0
|
||||
help
|
||||
Prioity of shared interrupt handler for the configured interrupt
|
||||
|
||||
choice
|
||||
depends on SHARED_IRQ_1
|
||||
prompt "Shared IRQ #1 Trigger Condition"
|
||||
default SHARED_IRQ_1_RISING_EDGE
|
||||
|
||||
config SHARED_IRQ_1_FALLING_EDGE
|
||||
bool "Falling Edge"
|
||||
help
|
||||
Interrupt triggers on falling edge.
|
||||
|
||||
config SHARED_IRQ_1_RISING_EDGE
|
||||
bool "Rising Edge"
|
||||
help
|
||||
Interrupt triggers on rising edge.
|
||||
|
||||
config SHARED_IRQ_1_LEVEL_HIGH
|
||||
bool "Level High"
|
||||
help
|
||||
Interrupt triggers when level is high.
|
||||
|
||||
config SHARED_IRQ_1_LEVEL_LOW
|
||||
bool "Level Low"
|
||||
help
|
||||
Interrupt triggers when level is low.
|
||||
|
||||
endchoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue