diff options
author | Tom Rini <trini@konsulko.com> | 2015-06-08 12:37:02 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-08 12:37:02 (GMT) |
commit | 4d80051b63ff54f6b6f90fceb92cf87ab3401ecb (patch) | |
tree | aea5bee67c756558fc8c820b4ee04adb75c85146 /arch/arm/include/asm/arch-vf610/gpio.h | |
parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
parent | 943a3f2ccb71bcb4a6041bc2946129c4d4bb197e (diff) | |
download | u-boot-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.tar.xz |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'arch/arm/include/asm/arch-vf610/gpio.h')
-rw-r--r-- | arch/arm/include/asm/arch-vf610/gpio.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-vf610/gpio.h b/arch/arm/include/asm/arch-vf610/gpio.h new file mode 100644 index 0000000..622b8f0 --- /dev/null +++ b/arch/arm/include/asm/arch-vf610/gpio.h @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2015 + * Bhuvanchandra DV, Toradex, Inc. + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef __ASM_ARCH_VF610_GPIO_H +#define __ASM_ARCH_VF610_GPIO_H + +#define VYBRID_GPIO_COUNT 32 +#define VF610_GPIO_DIRECTION_IN 0x0 +#define VF610_GPIO_DIRECTION_OUT 0x1 + +/* GPIO registers */ +struct vybrid_gpio_regs { + u32 gpio_pdor; + u32 gpio_psor; + u32 gpio_pcor; + u32 gpio_ptor; + u32 gpio_pdir; +}; + +struct vybrid_gpio_platdata { + unsigned int chip; + u32 base; + const char *port_name; +}; +#endif /* __ASM_ARCH_VF610_GPIO_H */ |