xref: /openbmc/u-boot/arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h (revision fd0135e3c54c391b6143f85440e30d576a9a83fe)
1*cd71b1d5SPaul Burton /* SPDX-License-Identifier: GPL-2.0+ */
2*cd71b1d5SPaul Burton 
3*cd71b1d5SPaul Burton #ifndef __JZ4780_GPIO_H__
4*cd71b1d5SPaul Burton #define __JZ4780_GPIO_H__
5*cd71b1d5SPaul Burton 
6*cd71b1d5SPaul Burton #define JZ_GPIO(bank, pin) ((32 * (bank)) + (pin))
7*cd71b1d5SPaul Burton 
8*cd71b1d5SPaul Burton int jz47xx_gpio_get_value(unsigned int gpio);
9*cd71b1d5SPaul Burton void jz47xx_gpio_direction_input(unsigned int gpio);
10*cd71b1d5SPaul Burton void jz47xx_gpio_direction_output(unsigned int gpio, int value);
11*cd71b1d5SPaul Burton 
12*cd71b1d5SPaul Burton #endif
13