コード例 #1
0
int __init cardhu_edp_init(void)
{
	/* Temporary initalization, needs to be set to the actual
	   regulator current */
	tegra_init_cpu_edp_limits(5000);
	return 0;
}
コード例 #2
0
int __init grouper_edp_init(void)
{
	unsigned int regulator_mA;

	regulator_mA = get_maximum_cpu_current_supported();
	if (!regulator_mA)
		regulator_mA = 6000; /* regular T30/s */
	pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);

	tegra_init_cpu_edp_limits(regulator_mA);
	return 0;
}
コード例 #3
0
int __init endeavoru_edp_init(void)
{
    unsigned int regulator_mA;

    regulator_mA = get_maximum_cpu_current_supported();
    //if (!regulator_mA) {
    //}
    regulator_mA = 5000; /* regular AP30 */
    pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);

    tegra_init_cpu_edp_limits(regulator_mA);
    tegra_init_system_edp_limits(TEGRA_BPC_CPU_PWR_LIMIT);
    return 0;
}
int __init pismo_edp_init(void)
{
#ifdef CONFIG_TEGRA_EDP_LIMITS
	unsigned int regulator_mA;

	regulator_mA = get_maximum_cpu_current_supported();
	if (!regulator_mA)
		regulator_mA = 15000;

	pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);

	tegra_init_cpu_edp_limits(regulator_mA);
#endif
	return 0;
}
コード例 #5
0
int __init flounder_edp_init(void)
{
	unsigned int regulator_mA;

	/* Both vdd_cpu and vdd_gpu uses 3-phase rail, so EDP current
	 * limit will be the same.
	 * */
	regulator_mA = 16800;

	pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
	tegra_init_cpu_edp_limits(regulator_mA);

	pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);
	tegra_init_gpu_edp_limits(regulator_mA);

	return 0;
}
コード例 #6
0
int __init ardbeg_edp_init(void)
{
	unsigned int regulator_mA;

	regulator_mA = get_maximum_cpu_current_supported();
	if (!regulator_mA)
		regulator_mA = 14000;

	pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
	tegra_init_cpu_edp_limits(regulator_mA);

	/* gpu maximum current */
	regulator_mA = 12000;
	pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);

	tegra_init_gpu_edp_limits(regulator_mA);
	return 0;
}
コード例 #7
0
int __init dalmore_edp_init(void)
{
	unsigned int regulator_mA;

	regulator_mA = get_maximum_cpu_current_supported();
	if (!regulator_mA)
		regulator_mA = 15000;

	pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
	tegra_init_cpu_edp_limits(regulator_mA);

	regulator_mA = get_maximum_core_current_supported();
	if (!regulator_mA)
		regulator_mA = 4000;

	pr_info("%s: core regulator %d mA\n", __func__, regulator_mA);
	tegra_init_core_edp_limits(regulator_mA);

	return 0;
}