blob: 9bfdf168730880df6fd34b0acc6b3f7ef033f3a3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Bhuvanchandra DV6d236aa2015-06-01 18:37:16 +05302/*
3 * Copyright (C) 2015
4 * Bhuvanchandra DV, Toradex, Inc.
Bhuvanchandra DV6d236aa2015-06-01 18:37:16 +05305 */
6
7#ifndef __ASM_ARCH_VF610_GPIO_H
8#define __ASM_ARCH_VF610_GPIO_H
9
10#define VYBRID_GPIO_COUNT 32
11#define VF610_GPIO_DIRECTION_IN 0x0
12#define VF610_GPIO_DIRECTION_OUT 0x1
13
14/* GPIO registers */
15struct vybrid_gpio_regs {
16 u32 gpio_pdor;
17 u32 gpio_psor;
18 u32 gpio_pcor;
19 u32 gpio_ptor;
20 u32 gpio_pdir;
21};
22
23struct vybrid_gpio_platdata {
24 unsigned int chip;
25 u32 base;
26 const char *port_name;
27};
28#endif /* __ASM_ARCH_VF610_GPIO_H */