]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/include/asm/arch-tegra124/gpio.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / include / asm / arch-tegra124 / gpio.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
999c6baf
TW
2/*
3 * (C) Copyright 2013
4 * NVIDIA Corporation <www.nvidia.com>
999c6baf
TW
5 */
6
7#ifndef _TEGRA124_GPIO_H_
8#define _TEGRA124_GPIO_H_
9
10/*
11 * The Tegra124 GPIO controller has 256 GPIOS in 8 banks of 4 ports,
12 * each with 8 GPIOs.
13 */
14#define TEGRA_GPIO_PORTS 4 /* number of ports per bank */
15#define TEGRA_GPIO_BANKS 8 /* number of banks */
16
17#include <asm/arch-tegra/gpio.h>
18
19/* GPIO Controller registers for a single bank */
20struct gpio_ctlr_bank {
21 uint gpio_config[TEGRA_GPIO_PORTS];
22 uint gpio_dir_out[TEGRA_GPIO_PORTS];
23 uint gpio_out[TEGRA_GPIO_PORTS];
24 uint gpio_in[TEGRA_GPIO_PORTS];
25 uint gpio_int_status[TEGRA_GPIO_PORTS];
26 uint gpio_int_enable[TEGRA_GPIO_PORTS];
27 uint gpio_int_level[TEGRA_GPIO_PORTS];
28 uint gpio_int_clear[TEGRA_GPIO_PORTS];
29 uint gpio_masked_config[TEGRA_GPIO_PORTS];
30 uint gpio_masked_dir_out[TEGRA_GPIO_PORTS];
31 uint gpio_masked_out[TEGRA_GPIO_PORTS];
32 uint gpio_masked_in[TEGRA_GPIO_PORTS];
33 uint gpio_masked_int_status[TEGRA_GPIO_PORTS];
34 uint gpio_masked_int_enable[TEGRA_GPIO_PORTS];
35 uint gpio_masked_int_level[TEGRA_GPIO_PORTS];
36 uint gpio_masked_int_clear[TEGRA_GPIO_PORTS];
37};
38
39struct gpio_ctlr {
40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS];
41};
42
999c6baf 43#endif /* _TEGRA124_GPIO_H_ */