diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-21 19:43:33 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-21 20:42:34 -0700 |
commit | a4275f5e5264525205f0516015bd3e6b3ecc4d72 (patch) | |
tree | 409b2a8c6cc342490c2a3682d0cb0dbc9a5a0a6f /arch/arm/include/asm/arch-rockchip/pmu_rk3288.h | |
parent | 1e724f8ea8b72f83d08e129d73ee21d2c8c337bc (diff) | |
download | u-boot-imx-a4275f5e5264525205f0516015bd3e6b3ecc4d72.zip u-boot-imx-a4275f5e5264525205f0516015bd3e6b3ecc4d72.tar.gz u-boot-imx-a4275f5e5264525205f0516015bd3e6b3ecc4d72.tar.bz2 |
rockchip: Convert the PMU IOMUX registers into an array
This is easier to deal with when using generic code since it allows us to
use a register index instead of naming each register.
Adjust it, adding an enum to improve readability.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-rockchip/pmu_rk3288.h')
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/pmu_rk3288.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h b/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h index 12fa685..081675e 100644 --- a/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h +++ b/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h @@ -46,14 +46,18 @@ struct rk3288_pmu { u32 gpio_op; u32 gpio0_sel18; /* 0x80 */ - u32 gpio0a_iomux; - u32 gpio0b_iomux; - u32 gpio0c_iomux; - u32 gpio0d_iomux; + u32 gpio0_iomux[4]; /* a, b, c, d */ u32 sys_reg[4]; }; check_member(rk3288_pmu, sys_reg[3], 0x00a0); +enum { + PMU_GPIO0_A = 0, + PMU_GPIO0_B, + PMU_GPIO0_C, + PMU_GPIO0_D, +}; + /* PMU_GPIO0_B_IOMUX */ enum { GPIO0_B7_SHIFT = 14, |