static int __init acpuclk_8064_probe(struct platform_device *pdev)
{
#ifdef CONFIG_LGE_PM
	if (lge_get_factory_boot()) 
	{
		if(lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_56K ||
// #ifdef CONFIG_MACH_APQ8064_L05E
			lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_910K ||
// #endif
			lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_130K)
		{
			pr_info("apq8064:::select pvs_tables to factory_1026\n");
			acpuclk_8064_params.pvs_tables = pvs_tables_factory_1026;
		}
		else
		{
			pr_info("select pvs_tables to original pvs_table\n");
			acpuclk_8064_params.pvs_tables = pvs_tables;
		}
	}
#endif //             
	if (cpu_is_apq8064ab() ||
		SOCINFO_VERSION_MAJOR(socinfo_get_version()) == 2) {
		acpuclk_8064_params.hfpll_data->low_vdd_l_max = 37;
		acpuclk_8064_params.hfpll_data->nom_vdd_l_max = 74;
	}

	return acpuclk_krait_init(&pdev->dev, &acpuclk_8064_params);
}
Exemplo n.º 2
0
static int __init acpuclk_8064_probe(struct platform_device *pdev)
{
#ifdef CONFIG_LGE_PM
	/* Krait freq table set for factory boot mode */
	if (lge_get_factory_boot()) 
	{
#if defined(CONFIG_MACH_APQ8064_J1KD) || defined(CONFIG_MACH_APQ8064_J1D)
		if(lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_56K)	
		{
			pr_info("select pvs_tables to factory 56K\n");
			acpuclk_8064_params.pvs_tables = pvs_tables_factory_56k;
		}
		else
		{
			pr_info("select pvs_tables to factory\n");
			acpuclk_8064_params.pvs_tables = pvs_tables_factory_1026;
		}		
#elif defined(CONFIG_MACH_APQ8064_GK_KR)||defined(CONFIG_MACH_APQ8064_GKATT)||defined(CONFIG_MACH_APQ8064_GVDCM)||defined(CONFIG_MACH_APQ8064_GV_KR)||defined(CONFIG_MACH_APQ8064_GKGLOBAL)
		if(lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_56K ||
			lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_130K ||
			lge_get_boot_cable_type() == LGE_BOOT_LT_CABLE_910K)
		{
			pr_info("select pvs_tables to factory_1026\n");
			acpuclk_8064_params.pvs_tables = pvs_tables_factory_1026;
		}
		else
		{
			pr_info("select pvs_tables to factory_1134\n");
			acpuclk_8064_params.pvs_tables = pvs_tables_factory_1134;
		}

#else
		pr_info("select pvs_tables to factory_1026\n");
		acpuclk_8064_params.pvs_tables = pvs_tables_factory_1026;
#endif
	}
#endif //CONFIG_LGE_PM

	if (cpu_is_apq8064ab() ||
		SOCINFO_VERSION_MAJOR(socinfo_get_version()) == 2) {
		acpuclk_8064_params.hfpll_data->low_vdd_l_max = 37;
		acpuclk_8064_params.hfpll_data->nom_vdd_l_max = 74;
	}

	return acpuclk_krait_init(&pdev->dev, &acpuclk_8064_params);
}