aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/hardware.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/hardware.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/hardware.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/hardware.h b/arch/arm/mach-tegra/include/mach/hardware.h
new file mode 100644
index 00000000000..92600f75fd4
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/hardware.h
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2010 Google, Inc.
3 * Copyright (C) 2011 NVIDIA Corp.
4 *
5 * Author:
6 * Colin Cross <ccross@google.com>
7 * Erik Gilling <konkers@google.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#ifndef MACH_TEGRA_HARDWARE_H
20#define MACH_TEGRA_HARDWARE_H
21
22#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
23#define pcibios_assign_all_busses() 1
24
25#else
26
27#define pcibios_assign_all_busses() 0
28#endif
29
30enum tegra_chipid {
31 TEGRA_CHIPID_UNKNOWN = 0,
32 TEGRA_CHIPID_TEGRA2 = 0x20,
33 TEGRA_CHIPID_TEGRA3 = 0x30,
34};
35
36enum tegra_revision {
37 TEGRA_REVISION_UNKNOWN = 0,
38 TEGRA_REVISION_A01,
39 TEGRA_REVISION_A02,
40 TEGRA_REVISION_A03,
41 TEGRA_REVISION_A03p,
42 TEGRA_REVISION_A04,
43 TEGRA_REVISION_A04p,
44 TEGRA_REVISION_MAX,
45};
46
47enum tegra_chipid tegra_get_chipid(void);
48enum tegra_revision tegra_get_revision(void);
49
50#endif