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