Skip to content

Commit

Permalink
CPU OVERCLOCK: add ultimate option for 2.1 GHz, normal default to 1.9…
Browse files Browse the repository at this point in the history
… GHz

Signed-off-by: Paul Reioux <reioux@gmail.com>
  • Loading branch information
faux123 committed Sep 17, 2013
1 parent 0b5ad7d commit 08b73b6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mach-msm/Kconfig
Expand Up @@ -1717,7 +1717,14 @@ config CPU_OVERCLOCK
bool "Enable CPU Overclocking option"
default n
help
Krait overclocking up to 2.1 GHz
Krait overclocking up to 1.9 GHz

config CPU_OVERCLOCK_ULTIMATE
bool "Enable CPU Overclocking option"
depends on CPU_OVERCLOCK
default n
help
Krait overclocking up to 2.1 GHz

config LOW_CPUCLOCKS
bool "Enable ultra low CPU clocks"
Expand Down
14 changes: 14 additions & 0 deletions arch/arm/mach-msm/acpuclock-8064.c
Expand Up @@ -303,10 +303,12 @@ static struct acpu_level tbl_PVS0_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1275000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1275000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1300000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1325000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1350000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1375000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1400000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -339,10 +341,12 @@ static struct acpu_level tbl_PVS1_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1225000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1225000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1250000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1275000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1300000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1325000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1350000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -375,10 +379,12 @@ static struct acpu_level tbl_PVS2_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1187500 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1187500 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1212500 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1237500 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1262500 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1287500 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1312500 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -411,10 +417,12 @@ static struct acpu_level tbl_PVS3_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1150000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1150000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1175000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1200000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1225000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1250000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1275000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -447,10 +455,12 @@ static struct acpu_level tbl_PVS4_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1125000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1125000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1150000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1175000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1200000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1225000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1250000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -483,10 +493,12 @@ static struct acpu_level tbl_PVS5_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1100000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1100000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1125000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1150000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1175000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1200000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1225000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down Expand Up @@ -519,10 +531,12 @@ static struct acpu_level tbl_PVS6_1700MHz[] __initdata = {
{ 1, { 1782000, HFPLL, 1, 0x42 }, L2(14), 1075000 },
{ 1, { 1836000, HFPLL, 1, 0x44 }, L2(14), 1075000 },
{ 1, { 1890000, HFPLL, 1, 0x46 }, L2(14), 1100000 },
#ifdef CONFIG_CPU_OVERCLOCK_ULTIMATE
{ 1, { 1944000, HFPLL, 1, 0x48 }, L2(14), 1125000 },
{ 1, { 1998000, HFPLL, 1, 0x4A }, L2(14), 1150000 },
{ 1, { 2052000, HFPLL, 1, 0x4C }, L2(14), 1175000 },
{ 1, { 2106000, HFPLL, 1, 0x4E }, L2(14), 1200000 },
#endif
#endif
{ 0, { 0 } }
};
Expand Down

0 comments on commit 08b73b6

Please sign in to comment.