1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2015 4 * Bhuvanchandra DV, Toradex, Inc. 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 */ 29