summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-01-21 14:53:33 -0700
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2019-02-01 16:59:13 +0100
commit3ec6f11c7d192856b65217317ff5ba52827f7a3c (patch)
tree426e9068a109f3d09f602a7d81e3a63fd5e00cf0 /arch
parent8a0c6aa33f0a077fee52b5b0e68190c7f8339ff0 (diff)
downloadu-boot-3ec6f11c7d192856b65217317ff5ba52827f7a3c.tar.gz
u-boot-3ec6f11c7d192856b65217317ff5ba52827f7a3c.tar.xz
u-boot-3ec6f11c7d192856b65217317ff5ba52827f7a3c.zip
rockchip: Move pull-up/down enum into a common file
At present this enum is only available to rk3288. Move it so that other rockchip SoCs can access it. It is needed for the SPL GPIO driver for rk3999 in a later patch. Also adjust the enum name to lower case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-rockchip/gpio.h7
-rw-r--r--arch/arm/include/asm/arch-rockchip/grf_rk3288.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/gpio.h b/arch/arm/include/asm/arch-rockchip/gpio.h
index e204dcfd1d..0e3b57d0ef 100644
--- a/arch/arm/include/asm/arch-rockchip/gpio.h
+++ b/arch/arm/include/asm/arch-rockchip/gpio.h
@@ -24,4 +24,11 @@ struct rockchip_gpio_regs {
};
check_member(rockchip_gpio_regs, ls_sync, 0x60);
+enum gpio_pu_pd {
+ GPIO_PULL_NORMAL = 0,
+ GPIO_PULL_UP,
+ GPIO_PULL_DOWN,
+ GPIO_PULL_REPEAT,
+};
+
#endif
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3288.h b/arch/arm/include/asm/arch-rockchip/grf_rk3288.h
index 77295446c6..894d3a40b0 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3288.h
@@ -1149,13 +1149,6 @@ enum GPIO_BIAS {
#define GPIO_BIAS_MASK 0x3
#define GPIO_BIAS_SHIFT(x) ((x) * 2)
-enum GPIO_PU_PD {
- GPIO_PULL_NORMAL = 0,
- GPIO_PULL_UP,
- GPIO_PULL_DOWN,
- GPIO_PULL_REPEAT,
-};
-
#define GPIO_PULL_MASK 0x3
#define GPIO_PULL_SHIFT(x) ((x) * 2)