mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
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>
This commit is contained in:
parent
a9407f2bc5
commit
8d28c211f3
@ -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[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user