mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
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>
This commit is contained in:
parent
419b08012a
commit
e3ef41df48
1 changed files with 1 additions and 1 deletions
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
struct rk3288_pwm {
|
struct rk3288_pwm {
|
||||||
u32 cnt;
|
u32 cnt;
|
||||||
u32 duty_lpr;
|
|
||||||
u32 period_hpr;
|
u32 period_hpr;
|
||||||
|
u32 duty_lpr;
|
||||||
u32 ctrl;
|
u32 ctrl;
|
||||||
};
|
};
|
||||||
check_member(rk3288_pwm, ctrl, 0xc);
|
check_member(rk3288_pwm, ctrl, 0xc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue