]> git.sur5r.net Git - u-boot/commitdiff
rockchip: rkpwm: fix the register sequence
authorKever Yang <kever.yang@rock-chips.com>
Fri, 23 Sep 2016 07:57:18 +0000 (15:57 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 2 Oct 2016 00:35:01 +0000 (18:35 -0600)
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>
arch/arm/include/asm/arch-rockchip/pwm.h

index 08ff94591c9aec33adaded1839563d7425cc8a05..5d9a178a701ebac8a5e08cbfe9b842a637349825 100644 (file)
@@ -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);