1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 #ifndef __JZ4780_GPIO_H__
4 #define __JZ4780_GPIO_H__
5 
6 #define JZ_GPIO(bank, pin) ((32 * (bank)) + (pin))
7 
8 int jz47xx_gpio_get_value(unsigned int gpio);
9 void jz47xx_gpio_direction_input(unsigned int gpio);
10 void jz47xx_gpio_direction_output(unsigned int gpio, int value);
11 
12 #endif
13