ARM: tegra: make SKU 0x81 same as 0xB1 for tegra3 linux-tegra-nv-3.1 tegra-l4t-r16-16.4
Shreshtha Sahu [Fri, 22 Nov 2013 06:41:10 +0000 (11:41 +0530)]
SKU 0x81 is identical to 0xB1 so same can be used
for sku to speedo ID conversion.

Bug 1313434

Change-Id: I63f08522878524a05c2a6fb0a82fee90a59a99bd
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/334396
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/tegra3_speedo.c

index 2889f65..b91135c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/tegra3_speedo.c
  *
- * Copyright (c) 2011-2012, NVIDIA Corporation. All rights reserved.
+ * Copyright (c) 2011-2013, NVIDIA Corporation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -198,6 +198,7 @@ static void rev_sku_to_speedo_ids(int rev, int sku)
                        break;
 
                case 0x81: /* T30 */
+               case 0xb1:
                        switch (package_id) {
                        case 1: /* MID => T30 */
                                cpu_speedo_id = 2;
@@ -303,7 +304,6 @@ static void rev_sku_to_speedo_ids(int rev, int sku)
 
                case 0x91: /* T30AGS-Ax */
                case 0xb0: /* T30IQS-Ax */
-               case 0xb1: /* T30MQS-Ax */
                case 0x90: /* T30AQS-Ax */
                        soc_speedo_id = 3;
                        threshold_index = 12;
@@ -473,7 +473,6 @@ void tegra_init_speedo_data(void)
                if (cpu_process_id <= 2) {
                        switch(fuse_sku) {
                        case 0xb0:
-                       case 0xb1:
                                cpu_speedo_id = 9;
                                break;
                        case 0x90:
@@ -485,7 +484,6 @@ void tegra_init_speedo_data(void)
                } else if (cpu_process_id >= 3 && cpu_process_id < 6) {
                        switch(fuse_sku) {
                        case 0xb0:
-                       case 0xb1:
                                cpu_speedo_id = 10;
                                break;
                        case 0x90: