ARM: tegra: fuse: Add A03 revision for Tegra3.
Krishna Reddy [Tue, 26 Jul 2011 08:58:24 +0000 (01:58 -0700)]
Original-Change-Id: I9fd1e67b17db69bd835c7474070e453ee37b4b62
Reviewed-on: http://git-master/r/43186
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R8ad876ded62f88d6ff032183a1f9d2b8bb2775b2

arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/include/mach/hardware.h
arch/arm/mach-tegra/tegra3_speedo.c

index 17d12ca..292f561 100644 (file)
@@ -335,6 +335,9 @@ static enum tegra_revision tegra_decode_revision(const struct tegra_id *id)
                return ((id->priv != NULL) &&
                        (*(id->priv) == 'p')) ? TEGRA_REVISION_A03p
                                              : TEGRA_REVISION_A03;
+#else
+       case 3:
+               return TEGRA_REVISION_A03;
 #endif
        default:
                return TEGRA_REVISION_UNKNOWN;
index b4b0f72..291128e 100644 (file)
@@ -29,8 +29,8 @@ enum tegra_revision {
        TEGRA_REVISION_UNKNOWN = 0,
        TEGRA_REVISION_A01,
        TEGRA_REVISION_A02,
-#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
        TEGRA_REVISION_A03,
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
        TEGRA_REVISION_A03p,
 #endif
        TEGRA_REVISION_MAX,
index 78c804f..46034a2 100644 (file)
@@ -76,6 +76,7 @@ static void rev_sku_to_speedo_ids(int rev, int sku)
                soc_speedo_id = 0;
                break;
        case TEGRA_REVISION_A02:
+       case TEGRA_REVISION_A03:
                switch (sku) {
                case 0x87: /* AP30 */
                        cpu_speedo_id = 1;