brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · 7625dbc Raw
53 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * This header provides constants for binding nvidia,tegra*-gpio.4 *5 * The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below6 * provide names for this.7 *8 * The second cell contains standard flag values specified in gpio.h.9 */10 11#ifndef _DT_BINDINGS_GPIO_TEGRA_GPIO_H12#define _DT_BINDINGS_GPIO_TEGRA_GPIO_H13 14#include <dt-bindings/gpio/gpio.h>15 16#define TEGRA_GPIO_PORT_A 017#define TEGRA_GPIO_PORT_B 118#define TEGRA_GPIO_PORT_C 219#define TEGRA_GPIO_PORT_D 320#define TEGRA_GPIO_PORT_E 421#define TEGRA_GPIO_PORT_F 522#define TEGRA_GPIO_PORT_G 623#define TEGRA_GPIO_PORT_H 724#define TEGRA_GPIO_PORT_I 825#define TEGRA_GPIO_PORT_J 926#define TEGRA_GPIO_PORT_K 1027#define TEGRA_GPIO_PORT_L 1128#define TEGRA_GPIO_PORT_M 1229#define TEGRA_GPIO_PORT_N 1330#define TEGRA_GPIO_PORT_O 1431#define TEGRA_GPIO_PORT_P 1532#define TEGRA_GPIO_PORT_Q 1633#define TEGRA_GPIO_PORT_R 1734#define TEGRA_GPIO_PORT_S 1835#define TEGRA_GPIO_PORT_T 1936#define TEGRA_GPIO_PORT_U 2037#define TEGRA_GPIO_PORT_V 2138#define TEGRA_GPIO_PORT_W 2239#define TEGRA_GPIO_PORT_X 2340#define TEGRA_GPIO_PORT_Y 2441#define TEGRA_GPIO_PORT_Z 2542#define TEGRA_GPIO_PORT_AA 2643#define TEGRA_GPIO_PORT_BB 2744#define TEGRA_GPIO_PORT_CC 2845#define TEGRA_GPIO_PORT_DD 2946#define TEGRA_GPIO_PORT_EE 3047#define TEGRA_GPIO_PORT_FF 3148 49#define TEGRA_GPIO(port, offset) \50	((TEGRA_GPIO_PORT_##port * 8) + offset)51 52#endif53