Bhuvanchandra DV | 6d236aa | 2015-06-01 18:37:16 +0530 | [diff] [blame] | 1 | /* |
| 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 */ |
| 16 | struct 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 | |
| 24 | struct vybrid_gpio_platdata { |
| 25 | unsigned int chip; |
| 26 | u32 base; |
| 27 | const char *port_name; |
| 28 | }; |
| 29 | #endif /* __ASM_ARCH_VF610_GPIO_H */ |