aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h')
-rw-r--r--arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h b/arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h
new file mode 100644
index 0000000000..37f0892f7b
--- /dev/null
+++ b/arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h
@@ -0,0 +1,12 @@
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
8int jz47xx_gpio_get_value(unsigned int gpio);
9void jz47xx_gpio_direction_input(unsigned int gpio);
10void jz47xx_gpio_direction_output(unsigned int gpio, int value);
11
12#endif