commit | 10999cf2a4ed05156b95b437164f18dfc5000d85 | [log] [tgz] |
---|---|---|
author | Vikram Narayanan <vikram186@gmail.com> | Tue Apr 10 04:26:08 2012 +0000 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Mon Apr 16 14:53:59 2012 +0200 |
tree | 618942d5c9e3de983691b1ee6fe6ca5107ec5584 | |
parent | 39b34c556d4fe359c95ca6dd0e34622eca2ad49d [diff] [blame] |
imx: Add GPIO_TO_PORT macro in the mxc_gpio driver Add GPIO_TO_PORT macro in the mxc_gpio.c driver Signed-off-by: Vikram Narayanan <vikram186@gmail.com> Acked-by: Stefano Babic <sbabic@denx.de>
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index df6bbbb..7e65b39 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c
@@ -34,6 +34,7 @@ MXC_GPIO_DIRECTION_OUT, }; +#define GPIO_TO_PORT(n) (n / 32) /* GPIO port description */ static unsigned long gpio_ports[] = {