diff options
author | Adeel Raza <araza@nvidia.com> | 2014-02-18 15:40:21 -0800 |
---|---|---|
committer | Alexander Van Brunt <avanbrunt@nvidia.com> | 2014-02-21 13:42:39 -0800 |
commit | ae1c011d545824ac2711ef35c395d1be235c9adc (patch) | |
tree | 5c9cd0ad8875d494d341faf85bedda472148d7d5 /arch/arm/mach-tegra/tegra13_speedo.c | |
parent | 98b8846e515e2e85bc53cb3f12a16093f3a60f85 (diff) |
arm: tegra13: add A02 CPU DVFS table
Add the A02 CPU DVFS table. Right now the A01 and A02 CPU DVFS tables
are identical except for the speedo_id. In the future the A02 CPU DVFS
table will be updated.
Bug 1455768
Change-Id: Ia7461e5aa09501413ef9cc0b8c979d5a6b78d472
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/369014
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra13_speedo.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra13_speedo.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/arch/arm/mach-tegra/tegra13_speedo.c b/arch/arm/mach-tegra/tegra13_speedo.c index 5b916ac982bb..97729fe2f6de 100644 --- a/arch/arm/mach-tegra/tegra13_speedo.c +++ b/arch/arm/mach-tegra/tegra13_speedo.c @@ -91,20 +91,27 @@ static void rev_sku_to_speedo_ids(int rev, int sku) { int can_boost = tegra_spare_fuse(60); /* FIXME: boost board check */ - switch (sku) { - case 0x00: /* Engg sku */ + if (rev == TEGRA_REVISION_A01) { cpu_speedo_id = 0; soc_speedo_id = 0; gpu_speedo_id = 0; threshold_index = 0; - break; - default: - pr_warn("Tegra13: Unknown SKU %d\n", sku); - cpu_speedo_id = 0; - soc_speedo_id = 0; - gpu_speedo_id = 0; - threshold_index = 0; - break; + } else if (rev == TEGRA_REVISION_A02) { + switch (sku) { + case 0x00: /* Engg sku */ + cpu_speedo_id = 1; + soc_speedo_id = 0; + gpu_speedo_id = 0; + threshold_index = 0; + break; + default: + pr_warn("Tegra13: Unknown SKU %d\n", sku); + cpu_speedo_id = 1; + soc_speedo_id = 0; + gpu_speedo_id = 0; + threshold_index = 0; + break; + } } } |