temp revert rk change
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-tegra / fuse.h
1 /*
2  * arch/arm/mach-tegra/fuse.c
3  *
4  * Copyright (C) 2010 Google, Inc.
5  *
6  * Author:
7  *      Colin Cross <ccross@android.com>
8  *
9  * This software is licensed under the terms of the GNU General Public
10  * License version 2, as published by the Free Software Foundation, and
11  * may be copied, distributed, and modified under those terms.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  */
19
20 enum tegra_revision {
21         TEGRA_REVISION_UNKNOWN = 0,
22         TEGRA_REVISION_A02,
23         TEGRA_REVISION_A03,
24         TEGRA_REVISION_A03p,
25         TEGRA_REVISION_MAX,
26 };
27
28 unsigned long long tegra_chip_uid(void);
29 int tegra_sku_id(void);
30 int tegra_cpu_process_id(void);
31 int tegra_core_process_id(void);
32 void tegra_init_fuse(void);
33 u32 tegra_fuse_readl(unsigned long offset);
34 void tegra_fuse_writel(u32 value, unsigned long offset);
35 enum tegra_revision tegra_get_revision(void);