int get_touchscreen_atmel_value(void) { int value = 0; bool ret = get_hw_config_bool("touchscreen/front", &value, NULL); if( ret == true) { return value; } return 0; }
bool get_pmu_out26m_enable(void) { bool ret; bool value=false; ret = get_hw_config_bool("clock/pmu_out26m_enable", &value, NULL); if (ret == true){ return value; } /* default enable */ return true; }
bool get_sd_enable(void) { bool ret; bool value=false; ret = get_hw_config_bool("sd/enable", &value, NULL); if (true == ret){ return value; } /* default enable */ return true; }
bool get_cyttsp4_enable(void) { bool ret; bool value=false; ret = get_hw_config_bool("touchscreen/cyttsp4_enable", &value, NULL); if (ret == true){ return value; } /* default enable */ return true; }
bool get_touchkey_enable(void) { bool ret; bool value=false; ret = get_hw_config_bool("touchkey/touchkey_enable", &value, NULL); if (ret == true){ return value; } /* default enable */ return false; }
bool is_felica_exist(void) { char *psKey = NULL; bool bRet = false; if (NULL == (psKey = kmalloc(MAX_KEY_LENGTH, GFP_KERNEL))) { return false; } memset(psKey, 0, MAX_KEY_LENGTH); sprintf(psKey, "felica/felica"); get_hw_config_bool(psKey, &bRet, NULL); kfree(psKey); return bRet; }