Change-Id: Iea012bfcec972f4b722950ea06713d2df4690242
Signed-off-by: David Wu <david.wu@rock-chips.com>
#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)
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;
}