Path: blob/master/include/dt-bindings/gpio/tegra194-gpio.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. */23/*4* This header provides constants for binding nvidia,tegra194-gpio*.5*6* The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below7* provide names for this.8*9* The second cell contains standard flag values specified in gpio.h.10*/1112#ifndef _DT_BINDINGS_GPIO_TEGRA194_GPIO_H13#define _DT_BINDINGS_GPIO_TEGRA194_GPIO_H1415#include <dt-bindings/gpio/gpio.h>1617/* GPIOs implemented by main GPIO controller */18#define TEGRA194_MAIN_GPIO_PORT_A 019#define TEGRA194_MAIN_GPIO_PORT_B 120#define TEGRA194_MAIN_GPIO_PORT_C 221#define TEGRA194_MAIN_GPIO_PORT_D 322#define TEGRA194_MAIN_GPIO_PORT_E 423#define TEGRA194_MAIN_GPIO_PORT_F 524#define TEGRA194_MAIN_GPIO_PORT_G 625#define TEGRA194_MAIN_GPIO_PORT_H 726#define TEGRA194_MAIN_GPIO_PORT_I 827#define TEGRA194_MAIN_GPIO_PORT_J 928#define TEGRA194_MAIN_GPIO_PORT_K 1029#define TEGRA194_MAIN_GPIO_PORT_L 1130#define TEGRA194_MAIN_GPIO_PORT_M 1231#define TEGRA194_MAIN_GPIO_PORT_N 1332#define TEGRA194_MAIN_GPIO_PORT_O 1433#define TEGRA194_MAIN_GPIO_PORT_P 1534#define TEGRA194_MAIN_GPIO_PORT_Q 1635#define TEGRA194_MAIN_GPIO_PORT_R 1736#define TEGRA194_MAIN_GPIO_PORT_S 1837#define TEGRA194_MAIN_GPIO_PORT_T 1938#define TEGRA194_MAIN_GPIO_PORT_U 2039#define TEGRA194_MAIN_GPIO_PORT_V 2140#define TEGRA194_MAIN_GPIO_PORT_W 2241#define TEGRA194_MAIN_GPIO_PORT_X 2342#define TEGRA194_MAIN_GPIO_PORT_Y 2443#define TEGRA194_MAIN_GPIO_PORT_Z 2544#define TEGRA194_MAIN_GPIO_PORT_FF 2645#define TEGRA194_MAIN_GPIO_PORT_GG 274647#define TEGRA194_MAIN_GPIO(port, offset) \48((TEGRA194_MAIN_GPIO_PORT_##port * 8) + offset)4950/* GPIOs implemented by AON GPIO controller */51#define TEGRA194_AON_GPIO_PORT_AA 052#define TEGRA194_AON_GPIO_PORT_BB 153#define TEGRA194_AON_GPIO_PORT_CC 254#define TEGRA194_AON_GPIO_PORT_DD 355#define TEGRA194_AON_GPIO_PORT_EE 45657#define TEGRA194_AON_GPIO(port, offset) \58((TEGRA194_AON_GPIO_PORT_##port * 8) + offset)5960#endif616263