From 47050a39590ab4d6c6cdb7a0ac70a6c22985cfdf Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Tue, 14 Apr 2015 16:17:43 +0200 Subject: ARM: tegra: hack to make IT parts operate like commercial temp for now As NVIDIA so far was unable to provide us with any proper speedo numbers for their industrial temperature aka IT parts just make SKU 0xB0 aka T30IQS-Ax behave identical to the regular commercial temperature 0xB1 aka T30MQS-Ax for the SKU to speedo ID conversion. This prevents them to fall back to fixed 600 MHz operation and crashing thermal throttling once kicking in due to missing table entry causing a null pointer exception. --- arch/arm/mach-tegra/tegra3_speedo.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/mach-tegra/tegra3_speedo.c b/arch/arm/mach-tegra/tegra3_speedo.c index 76303b4f1756..81958fbc9d73 100644 --- a/arch/arm/mach-tegra/tegra3_speedo.c +++ b/arch/arm/mach-tegra/tegra3_speedo.c @@ -198,6 +198,7 @@ static void rev_sku_to_speedo_ids(int rev, int sku) break; case 0x81: /* T30 */ + case 0xb0: /* T30IQS-Ax */ case 0xb1: /* T30MQS-Ax */ switch (package_id) { case 1: /* MID => T30 */ @@ -303,7 +304,6 @@ static void rev_sku_to_speedo_ids(int rev, int sku) break; case 0x91: /* T30AGS-Ax */ - case 0xb0: /* T30IQS-Ax */ case 0x90: /* T30AQS-Ax */ soc_speedo_id = 3; threshold_index = 12; @@ -472,9 +472,6 @@ void tegra_init_speedo_data(void) if (threshold_index == 12 && cpu_process_id != INVALID_PROCESS_ID) { if (cpu_process_id <= 2) { switch(fuse_sku) { - case 0xb0: - cpu_speedo_id = 9; - break; case 0x90: case 0x91: cpu_speedo_id = 14; @@ -483,9 +480,6 @@ void tegra_init_speedo_data(void) } } else if (cpu_process_id >= 3 && cpu_process_id < 6) { switch(fuse_sku) { - case 0xb0: - cpu_speedo_id = 10; - break; case 0x90: case 0x91: cpu_speedo_id = 15; -- cgit v1.2.3