Skip to content
Snippets Groups Projects
Commit e3ef41df authored by eric.gao@rock-chips.com's avatar eric.gao@rock-chips.com Committed by Philipp Tomsich
Browse files

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: default avatarEric Gao <eric.gao@rock-chips.com>
Edited the commit message:
Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
parent 419b0801
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment