ARM: tegra: export Tegra chipid
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 9 Feb 2012 23:47:42 +0000 (01:47 +0200)
committerOlof Johansson <olof@lixom.net>
Sun, 26 Feb 2012 22:44:19 +0000 (14:44 -0800)
The powergating and reset handling code needs to differentiate between Tegra
variants. Therefore we export the chipid here.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/fuse.h

index e2dd342..027f2b2 100644 (file)
@@ -33,7 +33,7 @@
 int tegra_sku_id;
 int tegra_cpu_process_id;
 int tegra_core_process_id;
-static int tegra_chip_id;
+int tegra_chip_id;
 enum tegra_revision tegra_revision;
 
 /* The BCT to use at boot is specified by board straps that can be read
index c554572..d2107b2 100644 (file)
@@ -41,6 +41,7 @@ enum tegra_revision {
 extern int tegra_sku_id;
 extern int tegra_cpu_process_id;
 extern int tegra_core_process_id;
+extern int tegra_chip_id;
 extern enum tegra_revision tegra_revision;
 
 extern int tegra_bct_strapping;