blob: 0b9e10f51e0b246b802caa23f6b1eb0e90fec837 [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
Simon Glassb75b15b2020-12-03 16:55:23 -070023struct vybrid_gpio_plat {
Bhuvanchandra DV6d236aa2015-06-01 18:37:16 +053024 unsigned int chip;
25 u32 base;
26 const char *port_name;
27};
28#endif /* __ASM_ARCH_VF610_GPIO_H */