]> git.sur5r.net Git - u-boot/commit
ARM: OMAP5+: GPIO: Add GPIO_TO_PIN() macro
authorRoger Quadros <rogerq@ti.com>
Mon, 13 Mar 2017 13:04:24 +0000 (15:04 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 20 Mar 2017 21:56:21 +0000 (17:56 -0400)
commit080795b70ccf97d934676371288650cff5055ca7
tree78071852b3004feee875b6159636aad39a0f9e7d
parent30719e2b92c014926c59b25d6d8736959da84219
ARM: OMAP5+: GPIO: Add GPIO_TO_PIN() macro

GPIO_TO_PIN(bank, bank_gpio) returns the GPIO index
from the GPIO bank number and bank's GPIO offset number.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/include/asm/arch-omap5/gpio.h