ODROID-HC4: cpufreq: add to use kernel parameter to set max cpufreq

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5ce9b4b69e4f436f183292764149950d74131900
This commit is contained in:
Dongjin Kim
2020-10-07 12:10:32 +09:00
parent 4c7f82cbfc
commit e7fb2db2f4

View File

@@ -599,7 +599,8 @@ static int meson_cpufreq_init(struct cpufreq_policy *policy)
}
#ifdef CONFIG_ARCH_MESON64_ODROID_COMMON
if (board_is_odroidn2() || board_is_odroidc4()) {
if (board_is_odroidn2() || board_is_odroidc4()
|| board_is_odroidhc4()) {
int i = 0;
max_freq[cur_cluster] = min(max_freq[cur_cluster],
@@ -725,7 +726,7 @@ __setup("max_freq_a53=", get_max_freq_a53);
static int __init get_max_freq_a55(char *str)
{
if (board_is_odroidc4())
if (board_is_odroidc4() || board_is_odroidhc4())
return get_max_freq_cortex(0, str);
return -EINVAL;
}
@@ -842,7 +843,7 @@ static int meson_cpufreq_probe(struct platform_device *pdev)
max_freq[1] = (is_meson_g12b_cpu() && is_meson_rev_a())
? N2_A73_DEFAULT : N2PLUS_A73_DEFAULT;
}
} else if (board_is_odroidc4()) {
} else if (board_is_odroidc4() || board_is_odroidhc4()) {
if (!max_freq[0])
max_freq[0] = C4_A55_DEFAULT;
}