summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2014-06-12 19:36:36 +0400
committerThierry Reding <treding@nvidia.com>2014-07-17 16:32:51 +0400
commit35874f3617b38e0c1f72163407c41d554a8f5939 (patch)
tree4676fd03dc2ffa7aa00028549be7845dc74c80b5 /arch
parent3f394f80645bf0c38a30042ba605c71663331035 (diff)
downloadlinux-35874f3617b38e0c1f72163407c41d554a8f5939.tar.xz
ARM: tegra: move fuse exports to soc/tegra/fuse.h
All fuse related functionality will move to a driver in the following patches. To prepare for this, export all the required functionality in a global header file and move all users of fuse.h to soc/tegra/fuse.h. While we're at it, remove tegra_bct_strapping, as its only user was removed in Commit a7cbe92cef27 ("ARM: tegra: remove tegra EMC scaling driver"). Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/fuse.h13
-rw-r--r--arch/arm/mach-tegra/tegra.c1
-rw-r--r--arch/arm/mach-tegra/tegra114_speedo.c2
-rw-r--r--arch/arm/mach-tegra/tegra20_speedo.c2
-rw-r--r--arch/arm/mach-tegra/tegra30_speedo.c2
5 files changed, 6 insertions, 14 deletions
diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h
index 7a08b4b70c8d..48a48861c19b 100644
--- a/arch/arm/mach-tegra/fuse.h
+++ b/arch/arm/mach-tegra/fuse.h
@@ -27,27 +27,14 @@
#define SKU_ID_T25E 28
#ifndef __ASSEMBLY__
-enum tegra_revision {
- TEGRA_REVISION_UNKNOWN = 0,
- TEGRA_REVISION_A01,
- TEGRA_REVISION_A02,
- TEGRA_REVISION_A03,
- TEGRA_REVISION_A03p,
- TEGRA_REVISION_A04,
- TEGRA_REVISION_MAX,
-};
extern int tegra_sku_id;
extern int tegra_cpu_process_id;
extern int tegra_core_process_id;
extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */
extern int tegra_soc_speedo_id;
-extern enum tegra_revision tegra_revision;
-
-extern int tegra_bct_strapping;
unsigned long long tegra_chip_uid(void);
-void tegra_init_fuse(void);
bool tegra_spare_fuse(int bit);
u32 tegra_fuse_readl(unsigned long offset);
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c
index 8be25c41249a..a359931c5952 100644
--- a/arch/arm/mach-tegra/tegra.c
+++ b/arch/arm/mach-tegra/tegra.c
@@ -48,7 +48,6 @@
#include "board.h"
#include "common.h"
#include "cpuidle.h"
-#include "fuse.h"
#include "iomap.h"
#include "irq.h"
#include "pmc.h"
diff --git a/arch/arm/mach-tegra/tegra114_speedo.c b/arch/arm/mach-tegra/tegra114_speedo.c
index 86eca17e5286..d0a6d5925f5f 100644
--- a/arch/arm/mach-tegra/tegra114_speedo.c
+++ b/arch/arm/mach-tegra/tegra114_speedo.c
@@ -17,6 +17,8 @@
#include <linux/bug.h>
#include <linux/kernel.h>
+#include <soc/tegra/fuse.h>
+
#include "fuse.h"
#define CORE_PROCESS_CORNERS_NUM 2
diff --git a/arch/arm/mach-tegra/tegra20_speedo.c b/arch/arm/mach-tegra/tegra20_speedo.c
index dcd29a0b0187..2907cf8de2b1 100644
--- a/arch/arm/mach-tegra/tegra20_speedo.c
+++ b/arch/arm/mach-tegra/tegra20_speedo.c
@@ -17,6 +17,8 @@
#include <linux/bug.h>
#include <linux/kernel.h>
+#include <soc/tegra/fuse.h>
+
#include "fuse.h"
#define CPU_SPEEDO_LSBIT 20
diff --git a/arch/arm/mach-tegra/tegra30_speedo.c b/arch/arm/mach-tegra/tegra30_speedo.c
index 7c0038326cf5..6f6102cd1e6b 100644
--- a/arch/arm/mach-tegra/tegra30_speedo.c
+++ b/arch/arm/mach-tegra/tegra30_speedo.c
@@ -17,6 +17,8 @@
#include <linux/bug.h>
#include <linux/kernel.h>
+#include <soc/tegra/fuse.h>
+
#include "fuse.h"
#define CORE_PROCESS_CORNERS_NUM 1