2 * DaVinci GPIO Platform Related Defines
4 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __DAVINCI_GPIO_PLATFORM_H
17 #define __DAVINCI_GPIO_PLATFORM_H
19 struct davinci_gpio_platform_data {
26 /* Convert GPIO signal to GPIO pin number */
27 #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))