Skip to content

Instantly share code, notes, and snippets.

@luca020400
Last active August 29, 2015 14:19
Show Gist options
  • Save luca020400/5ed72ae07f3f13b5c78c to your computer and use it in GitHub Desktop.
Save luca020400/5ed72ae07f3f13b5c78c to your computer and use it in GitHub Desktop.
From 8fb94ba0836415dbd4bf2a40830cdf651f9a6a0a Mon Sep 17 00:00:00 2001
From: luca020400 <[email protected]>
Date: Sun, 26 Apr 2015 19:54:21 +0200
Subject: [PATCH] msm: CPU Overclocking
---
arch/arm/mach-msm/acpuclock-8226.c | 37 +++++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 12 deletions(-)
diff --git a/arch/arm/mach-msm/acpuclock-8226.c b/arch/arm/mach-msm/acpuclock-8226.c
index 7e8c68e..968200f 100644
--- a/arch/arm/mach-msm/acpuclock-8226.c
+++ b/arch/arm/mach-msm/acpuclock-8226.c
@@ -64,9 +64,14 @@ static struct clkctl_acpu_speed acpu_freq_tbl_8226_1p1[] = {
{ 1, 384000, ACPUPLL, 5, 2, CPR_CORNER_2, 0, 4 },
{ 1, 600000, PLL0, 4, 0, CPR_CORNER_4, 0, 6 },
{ 1, 787200, ACPUPLL, 5, 0, CPR_CORNER_4, 0, 6 },
- { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 0, 1190400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
+ { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_5, 0, 7 },
+ { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_6, 0, 7 },
+ { 1, 1190400, ACPUPLL, 5, 0, CPR_CORNER_7, 0, 7 },
+ { 1, 1305600, ACPUPLL, 5, 0, CPR_CORNER_8, 0, 7 },
+ { 1, 1344000, ACPUPLL, 5, 0, CPR_CORNER_9, 0, 7 },
+ { 1, 1401600, ACPUPLL, 5, 0, CPR_CORNER_10, 0, 7 },
+ { 1, 1497600, ACPUPLL, 5, 0, CPR_CORNER_11, 0, 7 },
+ { 1, 1593600, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
{ 0 }
};
@@ -75,10 +80,16 @@ static struct clkctl_acpu_speed acpu_freq_tbl_8226_1p2[] = {
{ 1, 384000, ACPUPLL, 5, 2, CPR_CORNER_2, 0, 4 },
{ 1, 600000, PLL0, 4, 0, CPR_CORNER_4, 0, 6 },
{ 1, 787200, ACPUPLL, 5, 0, CPR_CORNER_4, 0, 6 },
- { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1190400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
+ { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_5, 0, 7 },
+ { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_6, 0, 7 },
+ { 1, 1190400, ACPUPLL, 5, 0, CPR_CORNER_7, 0, 7 },
+ { 1, 1305600, ACPUPLL, 5, 0, CPR_CORNER_8, 0, 7 },
+ { 1, 1344000, ACPUPLL, 5, 0, CPR_CORNER_9, 0, 7 },
+ { 1, 1401600, ACPUPLL, 5, 0, CPR_CORNER_10, 0, 7 },
+ { 1, 1497600, ACPUPLL, 5, 0, CPR_CORNER_11, 0, 7 },
+ { 1, 1593600, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
{ 0 }
+
};
static struct clkctl_acpu_speed acpu_freq_tbl_8226_1p4[] = {
@@ -86,12 +97,14 @@ static struct clkctl_acpu_speed acpu_freq_tbl_8226_1p4[] = {
{ 1, 384000, ACPUPLL, 5, 2, CPR_CORNER_2, 0, 4 },
{ 1, 600000, PLL0, 4, 0, CPR_CORNER_4, 0, 6 },
{ 1, 787200, ACPUPLL, 5, 0, CPR_CORNER_4, 0, 6 },
- { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1190400, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1305600, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1344000, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
- { 1, 1401600, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
+ { 1, 998400, ACPUPLL, 5, 0, CPR_CORNER_5, 0, 7 },
+ { 1, 1094400, ACPUPLL, 5, 0, CPR_CORNER_6, 0, 7 },
+ { 1, 1190400, ACPUPLL, 5, 0, CPR_CORNER_7, 0, 7 },
+ { 1, 1305600, ACPUPLL, 5, 0, CPR_CORNER_8, 0, 7 },
+ { 1, 1344000, ACPUPLL, 5, 0, CPR_CORNER_9, 0, 7 },
+ { 1, 1401600, ACPUPLL, 5, 0, CPR_CORNER_10, 0, 7 },
+ { 1, 1497600, ACPUPLL, 5, 0, CPR_CORNER_11, 0, 7 },
+ { 1, 1593600, ACPUPLL, 5, 0, CPR_CORNER_12, 0, 7 },
{ 0 }
};
--
2.3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment