mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[ARM] 4793/1: S3C24XX: Add IRQ->GPIO pin mapping function
Add the reverse of s3c2410_gpio_getirq to convert a IRQ number into a GPIO pin number. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
9b8c008840
commit
c27cb681ac
2 changed files with 27 additions and 0 deletions
|
|
@ -50,6 +50,17 @@ extern unsigned int s3c2410_gpio_getcfg(unsigned int pin);
|
|||
|
||||
extern int s3c2410_gpio_getirq(unsigned int pin);
|
||||
|
||||
/* s3c2410_gpio_irq2pin
|
||||
*
|
||||
* turn the given irq number into the corresponding GPIO number
|
||||
*
|
||||
* returns:
|
||||
* < 0 = no pin
|
||||
* >=0 = gpio pin number
|
||||
*/
|
||||
|
||||
extern int s3c2410_gpio_irq2pin(unsigned int irq);
|
||||
|
||||
#ifdef CONFIG_CPU_S3C2400
|
||||
|
||||
extern int s3c2400_gpio_getirq(unsigned int pin);
|
||||
|
|
|
|||
Loading…
Reference in a new issue