Path: blob/master/include/dt-bindings/gpio/tegra256-gpio.h
29269 views
/* SPDX-License-Identifier: GPL-2.0 */1/* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. */23/*4* This header provides constants for the nvidia,tegra256-gpio DT binding.5*6* The first cell in Tegra's GPIO specifier is the GPIO ID.7* The macros below provide names for this.8*9* The second cell contains standard flag values specified in gpio.h.10*/1112#ifndef _DT_BINDINGS_GPIO_TEGRA256_GPIO_H13#define _DT_BINDINGS_GPIO_TEGRA256_GPIO_H1415#include <dt-bindings/gpio/gpio.h>1617/* GPIOs implemented by main GPIO controller */18#define TEGRA256_MAIN_GPIO_PORT_A 019#define TEGRA256_MAIN_GPIO_PORT_B 120#define TEGRA256_MAIN_GPIO_PORT_C 221#define TEGRA256_MAIN_GPIO_PORT_D 32223#define TEGRA256_MAIN_GPIO(port, offset) \24((TEGRA256_MAIN_GPIO_PORT_##port * 8) + (offset))2526#endif27282930