Merge git://git.infradead.org/iommu-2.6 into iommu/fixes
[deliverable/linux.git] / arch / arm / mach-tegra / fuse.h
CommitLineData
73625e3e 1/*
73625e3e 2 * Copyright (C) 2010 Google, Inc.
7495b2eb 3 * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
73625e3e
CC
4 *
5 * Author:
6 * Colin Cross <ccross@android.com>
7 *
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 */
18
9a1086da
OJ
19#ifndef __MACH_TEGRA_FUSE_H
20#define __MACH_TEGRA_FUSE_H
21
9a1086da
OJ
22#define SKU_ID_T20 8
23#define SKU_ID_T25SE 20
24#define SKU_ID_AP25 23
25#define SKU_ID_T25 24
26#define SKU_ID_AP25E 27
27#define SKU_ID_T25E 28
28
35b1498a
PDS
29#define TEGRA20 0x20
30#define TEGRA30 0x30
7b30d457 31#define TEGRA114 0x35
73944475 32#define TEGRA124 0x40
35b1498a 33
4b3e2eda
JL
34#ifndef __ASSEMBLY__
35enum tegra_revision {
36 TEGRA_REVISION_UNKNOWN = 0,
37 TEGRA_REVISION_A01,
38 TEGRA_REVISION_A02,
39 TEGRA_REVISION_A03,
40 TEGRA_REVISION_A03p,
41 TEGRA_REVISION_A04,
42 TEGRA_REVISION_MAX,
43};
44
9a1086da
OJ
45extern int tegra_sku_id;
46extern int tegra_cpu_process_id;
47extern int tegra_core_process_id;
4c4ad669 48extern int tegra_chip_id;
f8ddda71 49extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */
25cd5a39 50extern int tegra_soc_speedo_id;
9a1086da
OJ
51extern enum tegra_revision tegra_revision;
52
dee47183
OJ
53extern int tegra_bct_strapping;
54
73625e3e 55unsigned long long tegra_chip_uid(void);
73625e3e 56void tegra_init_fuse(void);
1f851a26
DH
57bool tegra_spare_fuse(int bit);
58u32 tegra_fuse_readl(unsigned long offset);
9a1086da 59
25cd5a39
DH
60#ifdef CONFIG_ARCH_TEGRA_2x_SOC
61void tegra20_init_speedo_data(void);
62#else
63static inline void tegra20_init_speedo_data(void) {}
64#endif
65
f8ddda71
DH
66#ifdef CONFIG_ARCH_TEGRA_3x_SOC
67void tegra30_init_speedo_data(void);
68#else
69static inline void tegra30_init_speedo_data(void) {}
70#endif
71
7495b2eb
DH
72#ifdef CONFIG_ARCH_TEGRA_114_SOC
73void tegra114_init_speedo_data(void);
74#else
75static inline void tegra114_init_speedo_data(void) {}
76#endif
4b3e2eda 77#endif /* __ASSEMBLY__ */
7495b2eb 78
9a1086da 79#endif
This page took 0.232529 seconds and 5 git commands to generate.