summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2016-09-23 07:57:18 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-02 00:35:01 (GMT)
commitd840daf4c247aa2a9bfade9317a4d2724afe21b3 (patch)
treef1a0d1bdee530ca2f9b3b1bed9d119de2bfbcbe6
parent8389dcbf98b756d01b0b31679d3b83119382ac51 (diff)
downloadu-boot-d840daf4c247aa2a9bfade9317a4d2724afe21b3.tar.xz
rockchip: rkpwm: fix the register sequence
Reference to kernel source code, rockchip pwm has three type, we are using v2 for rk3288 and rk3399, so let's update the register to sync with pwm_data_v2 in kernel. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/arm/include/asm/arch-rockchip/pwm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/pwm.h b/arch/arm/include/asm/arch-rockchip/pwm.h
index 08ff945..5d9a178 100644
--- a/arch/arm/include/asm/arch-rockchip/pwm.h
+++ b/arch/arm/include/asm/arch-rockchip/pwm.h
@@ -10,8 +10,8 @@
struct rk3288_pwm {
u32 cnt;
- u32 period_hpr;
u32 duty_lpr;
+ u32 period_hpr;
u32 ctrl;
};
check_member(rk3288_pwm, ctrl, 0xc);