pwm: rockchip: add rk_fb config_done for voppwm
Change-Id: Iea012bfcec972f4b722950ea06713d2df4690242 Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
parent
914ca81004
commit
7bef813023
1 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pwm.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/rk_fb.h>
|
||||
|
||||
#define PWM_CTRL_TIMER_EN (1 << 0)
|
||||
#define PWM_CTRL_OUTPUT_EN (1 << 3)
|
||||
|
|
@ -132,6 +133,14 @@ static int rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
|
|||
|
||||
clk_disable(pc->clk);
|
||||
|
||||
#ifdef CONFIG_FB_ROCKCHIP
|
||||
if (!pc->data->regs.ctrl) {
|
||||
ret = rk_fb_set_vop_pwm();
|
||||
if (ret)
|
||||
dev_err(pc->chip.dev, "rk_fb_set_vop_pwm failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue