aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authoreric.gao@rock-chips.com <eric.gao@rock-chips.com>2017-06-19 14:45:36 +0800
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 12:13:47 +0200
commite3ef41df480f5c0da2d3d40ec2207e210bd34419 (patch)
tree5572c7970c6cb7d95c45fba101a6c4218119d425 /arch
parent419b08012a09f2656c44c81d976ffa41926f5e6b (diff)
downloadu-boot-e3ef41df480f5c0da2d3d40ec2207e210bd34419.zip
u-boot-e3ef41df480f5c0da2d3d40ec2207e210bd34419.tar.gz
u-boot-e3ef41df480f5c0da2d3d40ec2207e210bd34419.tar.bz2
rockchip: pwm: fix the register layout for the PWM controller
According to rk3288 spec, the pwm register order is: PWM_PWM0_CNT, PWM_PWM0_PERIOD_HPR, PWM_PWM0_DUTY_LPR, PWM_PWM0_CTRL but the source code's order is: struct rk3288_pwm { u32 cnt; u32 duty_lpr; u32 period_hpr; u32 ctrl; }; So, correct it here. It is the same as RK3399. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Edited the commit message: Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'arch')
-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 5d9a178..08ff945 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 duty_lpr;
u32 period_hpr;
+ u32 duty_lpr;
u32 ctrl;
};
check_member(rk3288_pwm, ctrl, 0xc);