~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: da31a7438aa1c2775d13ba57b25a5a504fdf6eef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2019
 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
 */

#ifndef __ASM_ARCH_GPIO_H__
#define __ASM_ARCH_GPIO_H__

#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
/* GPIO registers */
struct gpio_regs {
	u32 gpio_dr;	/* data */
	u32 gpio_dir;	/* direction */
	u32 gpio_psr;	/* pad satus */
};
#endif

#endif /* __ASM_ARCH_GPIO_H__ */