summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2016-09-23 15:57:18 +0800
committerSimon Glass <sjg@chromium.org>2016-10-01 18:35:01 -0600
commitd840daf4c247aa2a9bfade9317a4d2724afe21b3 (patch)
treef1a0d1bdee530ca2f9b3b1bed9d119de2bfbcbe6 /arch/arm
parent8389dcbf98b756d01b0b31679d3b83119382ac51 (diff)
downloadu-boot-imx-d840daf4c247aa2a9bfade9317a4d2724afe21b3.zip
u-boot-imx-d840daf4c247aa2a9bfade9317a4d2724afe21b3.tar.gz
u-boot-imx-d840daf4c247aa2a9bfade9317a4d2724afe21b3.tar.bz2
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>
Diffstat (limited to 'arch/arm')
-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);