1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * DaVinci GPIO Platform Related Defines 4 * 5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 6 */ 7 8 #ifndef __DAVINCI_GPIO_PLATFORM_H 9 #define __DAVINCI_GPIO_PLATFORM_H 10 11 struct davinci_gpio_platform_data { 12 bool no_auto_base; 13 u32 base; 14 u32 ngpio; 15 u32 gpio_unbanked; 16 }; 17 18 /* Convert GPIO signal to GPIO pin number */ 19 #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) 20 21 #endif 22
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.