nt9856x/BSP/u-boot/arch/arm/include/asm/arch-nvt-na51102_a64/gpio.h
2023-03-28 15:07:53 +08:00

25 lines
521 B
C
Executable File

/*
* Copyright Novatek Inc
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __ARCH_GPIO_H
#define __ARCH_GPIO_H
#define C_GPIO(pin) (pin)
#define J_GPIO(pin) (pin + 0x20)
#define P_GPIO(pin) (pin + 0x40)
#define E_GPIO(pin) (pin + 0x60)
#define D_GPIO(pin) (pin + 0x80)
#define S_GPIO(pin) (pin + 0xA0)
#define B_GPIO(pin) (pin + 0xC0)
/*
* Empty file - cmd_gpio.c requires this. The implementation
* is in drivers/gpio/na51xxx_gpio.c instead of inlined here.
*/
#endif /* __ARCH_GPIO_H */