mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-15 06:33:45 +09:00
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>
This commit is contained in:
parent
8a0c6aa33f
commit
3ec6f11c7d
@ -24,4 +24,11 @@ struct rockchip_gpio_regs {
|
|||||||
};
|
};
|
||||||
check_member(rockchip_gpio_regs, ls_sync, 0x60);
|
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
|
#endif
|
||||||
|
@ -1149,13 +1149,6 @@ enum GPIO_BIAS {
|
|||||||
#define GPIO_BIAS_MASK 0x3
|
#define GPIO_BIAS_MASK 0x3
|
||||||
#define GPIO_BIAS_SHIFT(x) ((x) * 2)
|
#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_MASK 0x3
|
||||||
#define GPIO_PULL_SHIFT(x) ((x) * 2)
|
#define GPIO_PULL_SHIFT(x) ((x) * 2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user