Giulio Benetti | 9dba262 | 2020-01-10 15:51:47 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
2 | /* | ||||
3 | * Copyright (C) 2019 | ||||
4 | * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com> | ||||
5 | */ | ||||
6 | |||||
7 | #ifndef __ASM_ARCH_GPIO_H__ | ||||
8 | #define __ASM_ARCH_GPIO_H__ | ||||
9 | |||||
10 | #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) | ||||
11 | /* GPIO registers */ | ||||
12 | struct gpio_regs { | ||||
13 | u32 gpio_dr; /* data */ | ||||
14 | u32 gpio_dir; /* direction */ | ||||
15 | u32 gpio_psr; /* pad satus */ | ||||
16 | }; | ||||
17 | #endif | ||||
18 | |||||
19 | #endif /* __ASM_ARCH_GPIO_H__ */ |