u-boot/arch/mips/mach-jz47xx/include/mach/jz4780_gpio.h
Paul Burton cd71b1d5d2 mips: jz47xx: Add JZ4780 SoC support
Add initial support for the Ingenic JZ47xx MIPS SoC.

Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2018-12-19 15:23:01 +01:00

12 lines
318 B
C

/* 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