Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Bhuvanchandra DV | 6d236aa | 2015-06-01 18:37:16 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 |
| 4 | * Bhuvanchandra DV, Toradex, Inc. |
Bhuvanchandra DV | 6d236aa | 2015-06-01 18:37:16 +0530 | [diff] [blame] | 5 | */ |
| 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 */ |
| 15 | struct 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 | |
| 23 | struct vybrid_gpio_platdata { |
| 24 | unsigned int chip; |
| 25 | u32 base; |
| 26 | const char *port_name; |
| 27 | }; |
| 28 | #endif /* __ASM_ARCH_VF610_GPIO_H */ |