Path: blob/master/include/dt-bindings/gpio/tegra-gpio.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* This header provides constants for binding nvidia,tegra*-gpio.3*4* The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below5* provide names for this.6*7* The second cell contains standard flag values specified in gpio.h.8*/910#ifndef _DT_BINDINGS_GPIO_TEGRA_GPIO_H11#define _DT_BINDINGS_GPIO_TEGRA_GPIO_H1213#include <dt-bindings/gpio/gpio.h>1415#define TEGRA_GPIO_PORT_A 016#define TEGRA_GPIO_PORT_B 117#define TEGRA_GPIO_PORT_C 218#define TEGRA_GPIO_PORT_D 319#define TEGRA_GPIO_PORT_E 420#define TEGRA_GPIO_PORT_F 521#define TEGRA_GPIO_PORT_G 622#define TEGRA_GPIO_PORT_H 723#define TEGRA_GPIO_PORT_I 824#define TEGRA_GPIO_PORT_J 925#define TEGRA_GPIO_PORT_K 1026#define TEGRA_GPIO_PORT_L 1127#define TEGRA_GPIO_PORT_M 1228#define TEGRA_GPIO_PORT_N 1329#define TEGRA_GPIO_PORT_O 1430#define TEGRA_GPIO_PORT_P 1531#define TEGRA_GPIO_PORT_Q 1632#define TEGRA_GPIO_PORT_R 1733#define TEGRA_GPIO_PORT_S 1834#define TEGRA_GPIO_PORT_T 1935#define TEGRA_GPIO_PORT_U 2036#define TEGRA_GPIO_PORT_V 2137#define TEGRA_GPIO_PORT_W 2238#define TEGRA_GPIO_PORT_X 2339#define TEGRA_GPIO_PORT_Y 2440#define TEGRA_GPIO_PORT_Z 2541#define TEGRA_GPIO_PORT_AA 2642#define TEGRA_GPIO_PORT_BB 2743#define TEGRA_GPIO_PORT_CC 2844#define TEGRA_GPIO_PORT_DD 2945#define TEGRA_GPIO_PORT_EE 3046#define TEGRA_GPIO_PORT_FF 314748#define TEGRA_GPIO(port, offset) \49((TEGRA_GPIO_PORT_##port * 8) + offset)5051#endif525354