diff options
Diffstat (limited to 'arch/arm/mach-tegra/fuse.h')
-rw-r--r-- | arch/arm/mach-tegra/fuse.h | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h index 584b2e27dbd..37f591af569 100644 --- a/arch/arm/mach-tegra/fuse.h +++ b/arch/arm/mach-tegra/fuse.h | |||
@@ -1,7 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-tegra/fuse.c | 2 | * arch/arm/mach-tegra/fuse.h |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Google, Inc. | 4 | * Copyright (C) 2010 Google, Inc. |
5 | * Copyright (C) 2010-2011 NVIDIA Corp. | ||
5 | * | 6 | * |
6 | * Author: | 7 | * Author: |
7 | * Colin Cross <ccross@android.com> | 8 | * Colin Cross <ccross@android.com> |
@@ -17,8 +18,47 @@ | |||
17 | * | 18 | * |
18 | */ | 19 | */ |
19 | 20 | ||
21 | #include <mach/hardware.h> | ||
22 | |||
23 | #define INVALID_PROCESS_ID 99 /* don't expect to have 100 process id's */ | ||
24 | |||
20 | unsigned long long tegra_chip_uid(void); | 25 | unsigned long long tegra_chip_uid(void); |
26 | unsigned int tegra_spare_fuse(int bit); | ||
21 | int tegra_sku_id(void); | 27 | int tegra_sku_id(void); |
28 | void tegra_init_fuse(void); | ||
29 | u32 tegra_fuse_readl(unsigned long offset); | ||
30 | void tegra_fuse_writel(u32 value, unsigned long offset); | ||
31 | const char *tegra_get_revision_name(void); | ||
32 | |||
33 | #ifdef CONFIG_TEGRA_SILICON_PLATFORM | ||
34 | |||
22 | int tegra_cpu_process_id(void); | 35 | int tegra_cpu_process_id(void); |
23 | int tegra_core_process_id(void); | 36 | int tegra_core_process_id(void); |
24 | void tegra_init_fuse(void); | 37 | int tegra_soc_speedo_id(void); |
38 | void tegra_init_speedo_data(void); | ||
39 | |||
40 | #ifndef CONFIG_ARCH_TEGRA_2x_SOC | ||
41 | int tegra_package_id(void); | ||
42 | int tegra_cpu_speedo_id(void); | ||
43 | int tegra_cpu_speedo_mv(void); | ||
44 | int tegra_core_speedo_mv(void); | ||
45 | int tegra_get_sku_override(void); | ||
46 | #else | ||
47 | static inline int tegra_package_id(void) { return -1; } | ||
48 | static inline int tegra_cpu_speedo_id(void) { return 0; } | ||
49 | static inline int tegra_cpu_speedo_mv(void) { return 1000; } | ||
50 | static inline int tegra_core_speedo_mv(void) { return 1200; } | ||
51 | #endif | ||
52 | |||
53 | #else | ||
54 | |||
55 | static inline int tegra_cpu_process_id(void) { return 0; } | ||
56 | static inline int tegra_core_process_id(void) { return 0; } | ||
57 | static inline int tegra_cpu_speedo_id(void) { return 0; } | ||
58 | static inline int tegra_soc_speedo_id(void) { return 0; } | ||
59 | static inline int tegra_package_id(void) { return -1; } | ||
60 | static inline int tegra_cpu_speedo_mv(void) { return 1000; } | ||
61 | static inline int tegra_core_speedo_mv(void) { return 1200; } | ||
62 | static inline void tegra_init_speedo_data(void) { } | ||
63 | |||
64 | #endif | ||