]> git.baikalelectronics.ru Git - uboot.git/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)
commitcbca48036cfa5f68cdcc4511930d0d8c329ee451
tree78071852b3004feee875b6159636aad39a0f9e7d
parent3d7db3b7d8f733851b9a71637beba614fd49fa84
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