summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-stv0991/gpio.h
blob: 9131ded5eb87434eb93b9a8598fa6d998305b6ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * (C) Copyright 2014
 * Vikas Manocha, ST Micoelectronics, vikas.manocha@st.com
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __ASM_ARCH_STV0991_GPIO_H
#define __ASM_ARCH_STV0991_GPIO_H

enum gpio_direction {
	GPIO_DIRECTION_IN,
	GPIO_DIRECTION_OUT,
};

struct gpio_regs {
	u32 data;		/* offset 0x0 */
	u32 reserved[0xff];	/* 0x4--0x3fc */
	u32 dir;		/* offset 0x400 */
};

#endif	/* __ASM_ARCH_STV0991_GPIO_H */