| # Kconfig - shared_irq configuration options |
| |
| # |
| # Copyright (c) 2015 Intel Corporation |
| # |
| # Redistribution and use in source and binary forms, with or without |
| # modification, are permitted provided that the following conditions are met: |
| # |
| # 1) Redistributions of source code must retain the above copyright notice, |
| # this list of conditions and the following disclaimer. |
| # |
| # 2) Redistributions in binary form must reproduce the above copyright notice, |
| # this list of conditions and the following disclaimer in the documentation |
| # and/or other materials provided with the distribution. |
| # |
| # 3) Neither the name of Intel Corporation nor the names of its contributors |
| # may be used to endorse or promote products derived from this software without |
| # specific prior written permission. |
| # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| # POSSIBILITY OF SUCH DAMAGE. |
| # |
| |
| config SHARED_IRQ |
| bool |
| prompt "Shared interrupt driver" |
| default n |
| help |
| Include shared interrupt support in system. Shared interrupt |
| support is NOT required in most systems. If in doubt answer no. |
| |
| config SHARED_IRQ_NUM_CLIENTS |
| int |
| depends on SHARED_IRQ |
| prompt "The number of clients per instance" |
| default 5 |
| help |
| Configures the maximum nuber of clients allowed per shared |
| instance of the shared interrupt driver. To conserve RAM set |
| this value to the lowest practical value. |
| |
| config SHARED_IRQ_0 |
| bool "Shared interrupt instance 0" |
| depends on SHARED_IRQ |
| help |
| Provide an instance of the shared interrupt driver when system |
| configuration requires that multiple devices share an interrupt. |
| |
| config SHARED_IRQ_0_NAME |
| string "Select a name for the device" |
| depends on SHARED_IRQ_0 |
| default "SHARED_IRQ0" |
| |
| config SHARED_IRQ_0_IRQ |
| int "instance 0 interrupt" |
| depends on SHARED_IRQ_0 |
| help |
| System interrupt number to be handled by this instance of the driver. |
| |
| config SHARED_IRQ_0_PRI |
| int "instance 0 interrupt priority" |
| default 0 |
| depends on SHARED_IRQ_0 |
| 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 |
| help |
| Provide an instance of the shared interrupt driver when system |
| configuration requires that multiple devices share an interrupt. |
| |
| config SHARED_IRQ_1_NAME |
| string "Select a name for the device" |
| depends on SHARED_IRQ_1 |
| default "SHARED_IRQ1" |
| |
| config SHARED_IRQ_1_IRQ |
| int "instance 1 interrupt" |
| depends on SHARED_IRQ_1 |
| help |
| System interrupt number to be handled by this instance of the driver. |
| |
| config SHARED_IRQ_1_PRI |
| int "instance 1 interrupt priority" |
| default 0 |
| 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 |