Skip to content

Commit

Permalink
Overclocking: enable CPU overclocking
Browse files Browse the repository at this point in the history
this is done via speedo id hax by forcing Nexus 7 Tegra3  to identify as
AP33 variant instead of as T33

Conflicts:
	arch/arm/mach-tegra/Kconfig
  • Loading branch information
faux123 authored and jfmcbrayer committed Apr 24, 2014
1 parent aee13d5 commit 219f28a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/arm/mach-tegra/tegra3_speedo.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,16 @@ static void rev_sku_to_speedo_ids(int rev, int sku)
case 0x83: /* T30L or T30S */
switch (package_id) {
case 1: /* MID => T30L */
#ifdef CONFIG_TEGRA_CPU_OVERCLOCK
/* fake it to behave as AP33 variant */
cpu_speedo_id = 4;
soc_speedo_id = 1;
threshold_index = 7;
#else
cpu_speedo_id = 7;
soc_speedo_id = 1;
threshold_index = 10;
#endif
break;
case 2: /* DSC => T30S */
cpu_speedo_id = 3;
Expand Down Expand Up @@ -428,7 +435,11 @@ void tegra_init_speedo_data(void)
break;
}
}
#if CONFIG_TEGRA_CPU_OVERCLOCK
cpu_process_id = 3; /* fake it to behave as AP33 cpu variant 3 */
#else
cpu_process_id = iv -1;
#endif

if (cpu_process_id == -1) {
pr_err("****************************************************");
Expand All @@ -448,7 +459,11 @@ void tegra_init_speedo_data(void)
break;
}
}
#if CONFIG_TEGRA_CPU_OVERCLOCK
core_process_id = 1; /* fake it to behave as AP33 core variant 1 */
#else
core_process_id = iv -1;
#endif

if (core_process_id == -1) {
pr_err("****************************************************");
Expand Down

0 comments on commit 219f28a

Please sign in to comment.