aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-02-09 20:45:28 -0500
committerOlof Johansson <olof@lixom.net>2013-02-09 20:46:51 -0500
commitd2ffb918f74bf6f596209491babde9df0c7fb4b8 (patch)
tree8ca143fbef64f5838d09ed6f795997ab82589995 /arch/arm/mach-tegra/common.c
parent031b77afc374cf1b86dbcda5dfa6e1bbb989836c (diff)
ARM: tegra: Fix build error w/ ARCH_TEGRA_114_SOC w/o ARCH_TEGRA_3x_SOC
This patch fixes the build error when ARCH_TEGRA_114_SOC is enabled and ARCH_TEGRA_3x_SOC is disabled. This provides Tegra114 with its own tegra114_init_early() instead of making use of tegra30_init_early() so that T114 build doesn't depend on T3x anymore. Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index 2f1351359a35..427045b9dfb1 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -1,6 +1,7 @@
1/* 1/*
2 * arch/arm/mach-tegra/common.c 2 * arch/arm/mach-tegra/common.c
3 * 3 *
4 * Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
4 * Copyright (C) 2010 Google, Inc. 5 * Copyright (C) 2010 Google, Inc.
5 * 6 *
6 * Author: 7 * Author:
@@ -100,8 +101,7 @@ static void __init tegra_init_cache(void)
100 101
101} 102}
102 103
103#ifdef CONFIG_ARCH_TEGRA_2x_SOC 104static void __init tegra_init_early(void)
104void __init tegra20_init_early(void)
105{ 105{
106 tegra_cpu_reset_handler_init(); 106 tegra_cpu_reset_handler_init();
107 tegra_apb_io_init(); 107 tegra_apb_io_init();
@@ -109,22 +109,31 @@ void __init tegra20_init_early(void)
109 tegra_init_cache(); 109 tegra_init_cache();
110 tegra_pmc_init(); 110 tegra_pmc_init();
111 tegra_powergate_init(); 111 tegra_powergate_init();
112}
113
114#ifdef CONFIG_ARCH_TEGRA_2x_SOC
115void __init tegra20_init_early(void)
116{
117 tegra_init_early();
112 tegra20_hotplug_init(); 118 tegra20_hotplug_init();
113} 119}
114#endif 120#endif
121
115#ifdef CONFIG_ARCH_TEGRA_3x_SOC 122#ifdef CONFIG_ARCH_TEGRA_3x_SOC
116void __init tegra30_init_early(void) 123void __init tegra30_init_early(void)
117{ 124{
118 tegra_cpu_reset_handler_init(); 125 tegra_init_early();
119 tegra_apb_io_init();
120 tegra_init_fuse();
121 tegra_init_cache();
122 tegra_pmc_init();
123 tegra_powergate_init();
124 tegra30_hotplug_init(); 126 tegra30_hotplug_init();
125} 127}
126#endif 128#endif
127 129
130#ifdef CONFIG_ARCH_TEGRA_114_SOC
131void __init tegra114_init_early(void)
132{
133 tegra_init_early();
134}
135#endif
136
128void __init tegra_init_late(void) 137void __init tegra_init_late(void)
129{ 138{
130 tegra_powergate_debugfs_init(); 139 tegra_powergate_debugfs_init();