summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-rockchip
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-30 16:55:27 -0600
committerSimon Glass <sjg@chromium.org>2015-09-02 21:28:23 -0600
commit1f8f7730a8a3c8cc73ecb5715f5d87ed55fec541 (patch)
treec0d980710bcfd5ecefcd802c61e1bf7c7f174080 /arch/arm/include/asm/arch-rockchip
parent10b84fe1b59b4f8b485057b911f2d5bdd9b1c9a4 (diff)
downloadtalos-obmc-uboot-1f8f7730a8a3c8cc73ecb5715f5d87ed55fec541.tar.gz
talos-obmc-uboot-1f8f7730a8a3c8cc73ecb5715f5d87ed55fec541.zip
rockchip: gpio: Add rockchip GPIO driver
This supports RK3288 at present. It does not implement functions or support for pull up/down. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-rockchip')
-rw-r--r--arch/arm/include/asm/arch-rockchip/gpio.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/gpio.h b/arch/arm/include/asm/arch-rockchip/gpio.h
new file mode 100644
index 0000000000..e39218d0a9
--- /dev/null
+++ b/arch/arm/include/asm/arch-rockchip/gpio.h
@@ -0,0 +1,28 @@
+/*
+ * (C) Copyright 2015 Google, Inc
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _ASM_ARCH_GPIO_H
+#define _ASM_ARCH_GPIO_H
+
+struct rockchip_gpio_regs {
+ u32 swport_dr;
+ u32 swport_ddr;
+ u32 reserved0[(0x30 - 0x08) / 4];
+ u32 inten;
+ u32 intmask;
+ u32 inttype_level;
+ u32 int_polarity;
+ u32 int_status;
+ u32 int_rawstatus;
+ u32 debounce;
+ u32 porta_eoi;
+ u32 ext_port;
+ u32 reserved1[(0x60 - 0x54) / 4];
+ u32 ls_sync;
+};
+check_member(rockchip_gpio_regs, ls_sync, 0x60);
+
+#endif
OpenPOWER on IntegriCloud