diff options
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/tegra/fuse.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 822eb348e107..51ac804deba5 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h | |||
@@ -22,6 +22,9 @@ | |||
22 | #define TEGRA114 0x35 | 22 | #define TEGRA114 0x35 |
23 | #define TEGRA124 0x40 | 23 | #define TEGRA124 0x40 |
24 | 24 | ||
25 | #define TEGRA_FUSE_SKU_CALIB_0 0xf0 | ||
26 | #define TEGRA30_FUSE_SATA_CALIB 0x124 | ||
27 | |||
25 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
26 | 29 | ||
27 | u32 tegra_read_chipid(void); | 30 | u32 tegra_read_chipid(void); |
@@ -37,11 +40,26 @@ enum tegra_revision { | |||
37 | TEGRA_REVISION_MAX, | 40 | TEGRA_REVISION_MAX, |
38 | }; | 41 | }; |
39 | 42 | ||
43 | struct tegra_sku_info { | ||
44 | int sku_id; | ||
45 | int cpu_process_id; | ||
46 | int cpu_speedo_id; | ||
47 | int cpu_speedo_value; | ||
48 | int cpu_iddq_value; | ||
49 | int core_process_id; | ||
50 | int soc_speedo_id; | ||
51 | int gpu_speedo_id; | ||
52 | int gpu_process_id; | ||
53 | int gpu_speedo_value; | ||
54 | enum tegra_revision revision; | ||
55 | }; | ||
56 | |||
40 | u32 tegra_read_straps(void); | 57 | u32 tegra_read_straps(void); |
41 | u32 tegra_read_chipid(void); | 58 | u32 tegra_read_chipid(void); |
42 | void tegra_init_fuse(void); | 59 | void tegra_init_fuse(void); |
60 | int tegra_fuse_readl(unsigned long offset, u32 *value); | ||
43 | 61 | ||
44 | extern enum tegra_revision tegra_revision; | 62 | extern struct tegra_sku_info tegra_sku_info; |
45 | 63 | ||
46 | #if defined(CONFIG_TEGRA20_APB_DMA) | 64 | #if defined(CONFIG_TEGRA20_APB_DMA) |
47 | int tegra_apb_readl_using_dma(unsigned long offset, u32 *value); | 65 | int tegra_apb_readl_using_dma(unsigned long offset, u32 *value); |