Simon Glass | 1f8f773 | 2015-08-30 16:55:27 -0600 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Google, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_ARCH_GPIO_H |
| 8 | #define _ASM_ARCH_GPIO_H |
| 9 | |
| 10 | struct rockchip_gpio_regs { |
| 11 | u32 swport_dr; |
| 12 | u32 swport_ddr; |
| 13 | u32 reserved0[(0x30 - 0x08) / 4]; |
| 14 | u32 inten; |
| 15 | u32 intmask; |
| 16 | u32 inttype_level; |
| 17 | u32 int_polarity; |
| 18 | u32 int_status; |
| 19 | u32 int_rawstatus; |
| 20 | u32 debounce; |
| 21 | u32 porta_eoi; |
| 22 | u32 ext_port; |
| 23 | u32 reserved1[(0x60 - 0x54) / 4]; |
| 24 | u32 ls_sync; |
| 25 | }; |
| 26 | check_member(rockchip_gpio_regs, ls_sync, 0x60); |
| 27 | |
| 28 | #endif |