1. old rk2818_backlight.c use CONFIG_ANDROID_POWER macro, which is no longer supported,
lyx changed to use CONFIG_HAS_EARLYSUSPEND. This sovled lcd blanking when resuming.
2. changed backlight module init into late_initcall from rootfs_initcall, this solve the
problem of blanking when powered on.
3. updated: close dbg info and comments.
note: code mod by lyx, commited by jyk
/*
* Debug
*/
-#if 1
+#if 0
#define DBG(x...) printk(KERN_INFO x)
#else
#define DBG(x...)
} else {
divh = div_total;
}
- DBG("%s: ========== jyk suspend =============== \n",__func__);
+
+ DBG("%s: ========== suspend =============== \n",__func__);
+
write_pwm_reg(id, PWM_REG_HRC, divh);
suspend_flag = 1;
u32 divh, div_total;
struct clk* arm_pclk;
- DBG("%s::============== jyk ==========================\n",__func__);
+ DBG("%s::=======================================\n",__func__);
if (rk2818_bl) {
DBG(KERN_CRIT "%s: backlight device register has existed \n",