diff options
author | Olof Johansson <olof@lixom.net> | 2013-02-09 20:45:28 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-02-09 20:46:51 -0500 |
commit | d2ffb918f74bf6f596209491babde9df0c7fb4b8 (patch) | |
tree | 8ca143fbef64f5838d09ed6f795997ab82589995 /arch | |
parent | 031b77afc374cf1b86dbcda5dfa6e1bbb989836c (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')
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra114.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/common.c | 25 |
3 files changed, 20 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/board-dt-tegra114.c b/arch/arm/mach-tegra/board-dt-tegra114.c index 3ed17ce884df..b920df1b69fa 100644 --- a/arch/arm/mach-tegra/board-dt-tegra114.c +++ b/arch/arm/mach-tegra/board-dt-tegra114.c | |||
@@ -37,7 +37,7 @@ static const char * const tegra114_dt_board_compat[] = { | |||
37 | DT_MACHINE_START(TEGRA114_DT, "NVIDIA Tegra114 (Flattened Device Tree)") | 37 | DT_MACHINE_START(TEGRA114_DT, "NVIDIA Tegra114 (Flattened Device Tree)") |
38 | .smp = smp_ops(tegra_smp_ops), | 38 | .smp = smp_ops(tegra_smp_ops), |
39 | .map_io = tegra_map_common_io, | 39 | .map_io = tegra_map_common_io, |
40 | .init_early = tegra30_init_early, | 40 | .init_early = tegra114_init_early, |
41 | .init_irq = tegra_dt_init_irq, | 41 | .init_irq = tegra_dt_init_irq, |
42 | .handle_irq = gic_handle_irq, | 42 | .handle_irq = gic_handle_irq, |
43 | .init_time = clocksource_of_init, | 43 | .init_time = clocksource_of_init, |
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h index da8f5a3c4240..86851c81a350 100644 --- a/arch/arm/mach-tegra/board.h +++ b/arch/arm/mach-tegra/board.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-tegra/board.h | 2 | * arch/arm/mach-tegra/board.h |
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: |
@@ -27,6 +28,7 @@ void tegra_assert_system_reset(char mode, const char *cmd); | |||
27 | 28 | ||
28 | void __init tegra20_init_early(void); | 29 | void __init tegra20_init_early(void); |
29 | void __init tegra30_init_early(void); | 30 | void __init tegra30_init_early(void); |
31 | void __init tegra114_init_early(void); | ||
30 | void __init tegra_map_common_io(void); | 32 | void __init tegra_map_common_io(void); |
31 | void __init tegra_init_irq(void); | 33 | void __init tegra_init_irq(void); |
32 | void __init tegra_dt_init_irq(void); | 34 | void __init tegra_dt_init_irq(void); |
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 | 104 | static void __init tegra_init_early(void) |
104 | void __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 | ||
115 | void __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 |
116 | void __init tegra30_init_early(void) | 123 | void __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 | ||
131 | void __init tegra114_init_early(void) | ||
132 | { | ||
133 | tegra_init_early(); | ||
134 | } | ||
135 | #endif | ||
136 | |||
128 | void __init tegra_init_late(void) | 137 | void __init tegra_init_late(void) |
129 | { | 138 | { |
130 | tegra_powergate_debugfs_init(); | 139 | tegra_powergate_debugfs_init(); |