~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 37f0892f7ba3e652e3f619587df6637f7d12a2fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0+ */

#ifndef __JZ4780_GPIO_H__
#define __JZ4780_GPIO_H__

#define JZ_GPIO(bank, pin) ((32 * (bank)) + (pin))

int jz47xx_gpio_get_value(unsigned int gpio);
void jz47xx_gpio_direction_input(unsigned int gpio);
void jz47xx_gpio_direction_output(unsigned int gpio, int value);

#endif