Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 28 lines 788 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. */ 3 4/* 5 * This header provides constants for the nvidia,tegra256-gpio DT binding. 6 * 7 * The first cell in Tegra's GPIO specifier is the GPIO ID. 8 * The macros below provide names for this. 9 * 10 * The second cell contains standard flag values specified in gpio.h. 11 */ 12 13#ifndef _DT_BINDINGS_GPIO_TEGRA256_GPIO_H 14#define _DT_BINDINGS_GPIO_TEGRA256_GPIO_H 15 16#include <dt-bindings/gpio/gpio.h> 17 18/* GPIOs implemented by main GPIO controller */ 19#define TEGRA256_MAIN_GPIO_PORT_A 0 20#define TEGRA256_MAIN_GPIO_PORT_B 1 21#define TEGRA256_MAIN_GPIO_PORT_C 2 22#define TEGRA256_MAIN_GPIO_PORT_D 3 23 24#define TEGRA256_MAIN_GPIO(port, offset) \ 25 ((TEGRA256_MAIN_GPIO_PORT_##port * 8) + (offset)) 26 27#endif 28