Commit 35874f3617b38e0c1f72163407c41d554a8f5939
Committed by
Thierry Reding
1 parent
3f394f8064
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>
Showing 6 changed files with 22 additions and 14 deletions Side-by-side Diff
arch/arm/mach-tegra/fuse.h
... | ... | @@ -27,27 +27,14 @@ |
27 | 27 | #define SKU_ID_T25E 28 |
28 | 28 | |
29 | 29 | #ifndef __ASSEMBLY__ |
30 | -enum tegra_revision { | |
31 | - TEGRA_REVISION_UNKNOWN = 0, | |
32 | - TEGRA_REVISION_A01, | |
33 | - TEGRA_REVISION_A02, | |
34 | - TEGRA_REVISION_A03, | |
35 | - TEGRA_REVISION_A03p, | |
36 | - TEGRA_REVISION_A04, | |
37 | - TEGRA_REVISION_MAX, | |
38 | -}; | |
39 | 30 | |
40 | 31 | extern int tegra_sku_id; |
41 | 32 | extern int tegra_cpu_process_id; |
42 | 33 | extern int tegra_core_process_id; |
43 | 34 | extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */ |
44 | 35 | extern int tegra_soc_speedo_id; |
45 | -extern enum tegra_revision tegra_revision; | |
46 | 36 | |
47 | -extern int tegra_bct_strapping; | |
48 | - | |
49 | 37 | unsigned long long tegra_chip_uid(void); |
50 | -void tegra_init_fuse(void); | |
51 | 38 | bool tegra_spare_fuse(int bit); |
52 | 39 | u32 tegra_fuse_readl(unsigned long offset); |
53 | 40 |
arch/arm/mach-tegra/tegra.c
arch/arm/mach-tegra/tegra114_speedo.c
arch/arm/mach-tegra/tegra20_speedo.c
arch/arm/mach-tegra/tegra30_speedo.c
include/soc/tegra/fuse.h
... | ... | @@ -27,6 +27,22 @@ |
27 | 27 | u32 tegra_read_chipid(void); |
28 | 28 | u8 tegra_get_chip_id(void); |
29 | 29 | |
30 | +enum tegra_revision { | |
31 | + TEGRA_REVISION_UNKNOWN = 0, | |
32 | + TEGRA_REVISION_A01, | |
33 | + TEGRA_REVISION_A02, | |
34 | + TEGRA_REVISION_A03, | |
35 | + TEGRA_REVISION_A03p, | |
36 | + TEGRA_REVISION_A04, | |
37 | + TEGRA_REVISION_MAX, | |
38 | +}; | |
39 | + | |
40 | +u32 tegra_read_straps(void); | |
41 | +u32 tegra_read_chipid(void); | |
42 | +void tegra_init_fuse(void); | |
43 | + | |
44 | +extern enum tegra_revision tegra_revision; | |
45 | + | |
30 | 46 | #if defined(CONFIG_TEGRA20_APB_DMA) |
31 | 47 | int tegra_apb_readl_using_dma(unsigned long offset, u32 *value); |
32 | 48 | int tegra_apb_writel_using_dma(u32 value, unsigned long offset); |