Commit 35874f36 authored by Peter De Schrijver's avatar Peter De Schrijver Committed by Thierry Reding

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 a7cbe92c ("ARM: tegra: remove tegra EMC scaling
driver").
Signed-off-by: default avatarPeter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 3f394f80
...@@ -27,27 +27,14 @@ ...@@ -27,27 +27,14 @@
#define SKU_ID_T25E 28 #define SKU_ID_T25E 28
#ifndef __ASSEMBLY__ #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_sku_id;
extern int tegra_cpu_process_id; extern int tegra_cpu_process_id;
extern int tegra_core_process_id; extern int tegra_core_process_id;
extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */ extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */
extern int tegra_soc_speedo_id; extern int tegra_soc_speedo_id;
extern enum tegra_revision tegra_revision;
extern int tegra_bct_strapping;
unsigned long long tegra_chip_uid(void); unsigned long long tegra_chip_uid(void);
void tegra_init_fuse(void);
bool tegra_spare_fuse(int bit); bool tegra_spare_fuse(int bit);
u32 tegra_fuse_readl(unsigned long offset); u32 tegra_fuse_readl(unsigned long offset);
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include "board.h" #include "board.h"
#include "common.h" #include "common.h"
#include "cpuidle.h" #include "cpuidle.h"
#include "fuse.h"
#include "iomap.h" #include "iomap.h"
#include "irq.h" #include "irq.h"
#include "pmc.h" #include "pmc.h"
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h" #include "fuse.h"
#define CORE_PROCESS_CORNERS_NUM 2 #define CORE_PROCESS_CORNERS_NUM 2
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h" #include "fuse.h"
#define CPU_SPEEDO_LSBIT 20 #define CPU_SPEEDO_LSBIT 20
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h" #include "fuse.h"
#define CORE_PROCESS_CORNERS_NUM 1 #define CORE_PROCESS_CORNERS_NUM 1
......
...@@ -27,6 +27,22 @@ ...@@ -27,6 +27,22 @@
u32 tegra_read_chipid(void); u32 tegra_read_chipid(void);
u8 tegra_get_chip_id(void); u8 tegra_get_chip_id(void);
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,
};
u32 tegra_read_straps(void);
u32 tegra_read_chipid(void);
void tegra_init_fuse(void);
extern enum tegra_revision tegra_revision;
#if defined(CONFIG_TEGRA20_APB_DMA) #if defined(CONFIG_TEGRA20_APB_DMA)
int tegra_apb_readl_using_dma(unsigned long offset, u32 *value); int tegra_apb_readl_using_dma(unsigned long offset, u32 *value);
int tegra_apb_writel_using_dma(u32 value, unsigned long offset); int tegra_apb_writel_using_dma(u32 value, unsigned long offset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment