Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Vikas Manocha | 32b9e71 | 2014-11-18 10:42:23 -0800 | [diff] [blame] | 2 | /* |
Patrice Chotard | cc55116 | 2017-10-23 09:53:59 +0200 | [diff] [blame] | 3 | * Copyright (C) 2014, STMicroelectronics - All Rights Reserved |
| 4 | * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics. |
Vikas Manocha | 32b9e71 | 2014-11-18 10:42:23 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_ARCH_STV0991_GPIO_H |
| 8 | #define __ASM_ARCH_STV0991_GPIO_H |
| 9 | |
| 10 | enum gpio_direction { |
| 11 | GPIO_DIRECTION_IN, |
| 12 | GPIO_DIRECTION_OUT, |
| 13 | }; |
| 14 | |
| 15 | struct gpio_regs { |
| 16 | u32 data; /* offset 0x0 */ |
| 17 | u32 reserved[0xff]; /* 0x4--0x3fc */ |
| 18 | u32 dir; /* offset 0x400 */ |
| 19 | }; |
| 20 | |
| 21 | #endif /* __ASM_ARCH_STV0991_GPIO_H */ |