mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-11 07:28:10 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user