2022-06-07 16:11:13 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2013-08-18 10:48:58 +05:30
|
|
|
/*
|
|
|
|
|
* DaVinci GPIO Platform Related Defines
|
|
|
|
|
*
|
2020-08-11 18:34:19 -07:00
|
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
|
2013-08-18 10:48:58 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __DAVINCI_GPIO_PLATFORM_H
|
|
|
|
|
#define __DAVINCI_GPIO_PLATFORM_H
|
|
|
|
|
|
|
|
|
|
struct davinci_gpio_platform_data {
|
2018-11-21 10:35:17 +01:00
|
|
|
bool no_auto_base;
|
|
|
|
|
u32 base;
|
2013-08-18 10:48:58 +05:30
|
|
|
u32 ngpio;
|
|
|
|
|
u32 gpio_unbanked;
|
|
|
|
|
};
|
|
|
|
|
|
2013-08-18 10:49:03 +05:30
|
|
|
/* Convert GPIO signal to GPIO pin number */
|
|
|
|
|
#define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))
|
|
|
|
|
|
2013-08-18 10:48:58 +05:30
|
|
|
#endif
|