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

24 lines
698 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 P_GPIO(pin) (pin + 0x20)
#define S_GPIO(pin) (pin + 0x40)
#define L_GPIO(pin) (pin + 0x60)
#define D_GPIO(pin) (pin + 0x80)
#define H_GPIO(pin) (pin + 0xA0)
#define A_GPIO(pin) (pin + 0xC0)
#define DSI_GPIO(pin) (pin + 0xE0)
/*
* Empty file - cmd_gpio.c requires this. The implementation
* is in drivers/gpio/na510xx_gpio.c instead of inlined here.
*/
#endif /* __ARCH_GPIO_H */