Skip to content
Snippets Groups Projects
Commit 8d28c211 authored by Vikram Narayanan's avatar Vikram Narayanan Committed by Albert ARIBAUD
Browse files

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: default avatarVikram Narayanan <vikram186@gmail.com>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent a9407f2b
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ enum mxc_gpio_direction { ...@@ -34,6 +34,7 @@ enum mxc_gpio_direction {
MXC_GPIO_DIRECTION_OUT, MXC_GPIO_DIRECTION_OUT,
}; };
#define GPIO_TO_PORT(n) (n / 32)
/* GPIO port description */ /* GPIO port description */
static unsigned long gpio_ports[] = { static unsigned long gpio_ports[] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment