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