From a207afeae668f9cd9fee570838f07b4cc9a8fc7e Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Mon, 12 Aug 2013 10:56:34 +0200 Subject: apalis/colibri_t30: hack to force speedo id of 2 for now In preparation for the new Apalis resp. Colibri T30 production lots with either T30IQS-P-A3 or T30MQS-P-A3 chips that due to some bug were locked at 312 MHz force a speedo ID of 2 for now which allows regular operation of up to 1.4 GHz (single core only). --- arch/arm/mach-tegra/tegra3_speedo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-tegra/tegra3_speedo.c b/arch/arm/mach-tegra/tegra3_speedo.c index 2889f656f47a..92ea5fe30cde 100644 --- a/arch/arm/mach-tegra/tegra3_speedo.c +++ b/arch/arm/mach-tegra/tegra3_speedo.c @@ -305,8 +305,15 @@ static void rev_sku_to_speedo_ids(int rev, int sku) case 0xb0: /* T30IQS-Ax */ case 0xb1: /* T30MQS-Ax */ case 0x90: /* T30AQS-Ax */ +#if defined(CONFIG_MACH_APALIS_T30) || defined(CONFIG_MACH_COLIBRI_T30) + /* Hack: Force speedo ID of 2 for now. */ + cpu_speedo_id = 2; + soc_speedo_id = 2; + threshold_index = 2; +#else /* CONFIG_MACH_APALIS_T30 | CONFIG_MACH_COLIBRI_T30 */ soc_speedo_id = 3; threshold_index = 12; +#endif /* CONFIG_MACH_APALIS_T30 | CONFIG_MACH_COLIBRI_T30 */ break; case 0x93: /* T30AG-Ax */ cpu_speedo_id = 11; -- cgit v1.2.3