static void display_init(void *data)
{
int ret, i;
- unsigned int flags = (WITHOUT_STARTNOTI | FLAG_X_DPMS);
int timeout = 0;
bool wm_ready;
case INIT_INTERFACE:
if (display_conf.timeout_enable)
get_lcd_timeout_from_settings();
- ret = init_sysfs(flags);
+ ret = init_sysfs();
break;
case INIT_POLL:
_I("input init");
trans_table[S_NORMAL][EVENT_TIMEOUT] = S_NORMAL;
}
- if (flags & WITHOUT_STARTNOTI) { /* start without noti */
- _I("Start Power managing without noti");
- pm_cur_state = S_NORMAL;
- set_setting_pmstate(pm_cur_state);
-
- if (display_conf.timeout_enable) {
- timeout = states[S_NORMAL].timeout;
- /* check minimun lcd on time */
- if (timeout < SEC_TO_MSEC(DEFAULT_NORMAL_TIMEOUT))
- timeout = SEC_TO_MSEC(DEFAULT_NORMAL_TIMEOUT);
+ _I("Start Power managing without noti");
+ if (power_ops.get_power_lock_support())
+ power_ops.power_lock();
- reset_timeout(timeout);
- }
+ pm_cur_state = S_NORMAL;
+ set_setting_pmstate(pm_cur_state);
- status = DEVICE_OPS_STATUS_START;
- /*
- * Lock lcd off until booting is done.
- * deviced guarantees all booting script is executing.
- * Last script of booting unlocks this suspend blocking state.
- */
- pm_lock_internal(INTERNAL_LOCK_BOOTING, LCD_OFF,
- STAY_CUR_STATE, BOOTING_DONE_WATING_TIME);
- pm_lock_internal(INTERNAL_LOCK_BOOTING, LCD_NORMAL,
- STAY_CUR_STATE, BOOTING_DONE_WATING_TIME);
+ if (display_conf.timeout_enable) {
+ timeout = states[S_NORMAL].timeout;
+ /* check minimun lcd on time */
+ if (timeout < SEC_TO_MSEC(DEFAULT_NORMAL_TIMEOUT))
+ timeout = SEC_TO_MSEC(DEFAULT_NORMAL_TIMEOUT);
+ reset_timeout(timeout);
}
+ status = DEVICE_OPS_STATUS_START;
+ /*
+ * Lock lcd off until booting is done.
+ * deviced guarantees all booting script is executing.
+ * Last script of booting unlocks this suspend blocking state.
+ */
+ pm_lock_internal(INTERNAL_LOCK_BOOTING, LCD_OFF,
+ STAY_CUR_STATE, BOOTING_DONE_WATING_TIME);
+ pm_lock_internal(INTERNAL_LOCK_BOOTING, LCD_NORMAL,
+ STAY_CUR_STATE, BOOTING_DONE_WATING_TIME);
+
if (display_conf.input_support)
if (CHECK_OPS(keyfilter_ops, init))
keyfilter_ops->init();