soc/tegra: fuse: move APB DMA into Tegra20 fuse driver
[deliverable/linux.git] / include / soc / tegra / fuse.h
CommitLineData
c7736edf
PG
1/*
2 * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
306a7f91
TR
17#ifndef __SOC_TEGRA_FUSE_H__
18#define __SOC_TEGRA_FUSE_H__
c7736edf 19
304664ea
TR
20#define TEGRA20 0x20
21#define TEGRA30 0x30
22#define TEGRA114 0x35
23#define TEGRA124 0x40
24
783c8f4c
PDS
25#define TEGRA_FUSE_SKU_CALIB_0 0xf0
26#define TEGRA30_FUSE_SATA_CALIB 0x124
27
304664ea
TR
28#ifndef __ASSEMBLY__
29
c7736edf 30u32 tegra_read_chipid(void);
304664ea
TR
31u8 tegra_get_chip_id(void);
32
35874f36
PDS
33enum tegra_revision {
34 TEGRA_REVISION_UNKNOWN = 0,
35 TEGRA_REVISION_A01,
36 TEGRA_REVISION_A02,
37 TEGRA_REVISION_A03,
38 TEGRA_REVISION_A03p,
39 TEGRA_REVISION_A04,
40 TEGRA_REVISION_MAX,
41};
42
783c8f4c
PDS
43struct 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
35874f36
PDS
57u32 tegra_read_straps(void);
58u32 tegra_read_chipid(void);
59void tegra_init_fuse(void);
783c8f4c 60int tegra_fuse_readl(unsigned long offset, u32 *value);
35874f36 61
783c8f4c 62extern struct tegra_sku_info tegra_sku_info;
35874f36 63
304664ea 64#endif /* __ASSEMBLY__ */
c7736edf 65
306a7f91 66#endif /* __SOC_TEGRA_FUSE_H__ */
This page took 0.194398 seconds and 5 git commands to generate.