aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index 6c93cd0e520c..2f86fcca64a6 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -31,6 +31,24 @@
31#include "board.h" 31#include "board.h"
32#include "clock.h" 32#include "clock.h"
33#include "fuse.h" 33#include "fuse.h"
34#include "pmc.h"
35
36/*
37 * Storage for debug-macro.S's state.
38 *
39 * This must be in .data not .bss so that it gets initialized each time the
40 * kernel is loaded. The data is declared here rather than debug-macro.S so
41 * that multiple inclusions of debug-macro.S point at the same data.
42 */
43#define TEGRA_DEBUG_UART_OFFSET (TEGRA_DEBUG_UART_BASE & 0xFFFF)
44u32 tegra_uart_config[3] = {
45 /* Debug UART initialization required */
46 1,
47 /* Debug UART physical address */
48 (u32)(IO_APB_PHYS + TEGRA_DEBUG_UART_OFFSET),
49 /* Debug UART virtual address */
50 (u32)(IO_APB_VIRT + TEGRA_DEBUG_UART_OFFSET),
51};
34 52
35#ifdef CONFIG_OF 53#ifdef CONFIG_OF
36static const struct of_device_id tegra_dt_irq_match[] __initconst = { 54static const struct of_device_id tegra_dt_irq_match[] __initconst = {
@@ -99,6 +117,7 @@ void __init tegra20_init_early(void)
99 tegra2_init_clocks(); 117 tegra2_init_clocks();
100 tegra_clk_init_from_table(tegra20_clk_init_table); 118 tegra_clk_init_from_table(tegra20_clk_init_table);
101 tegra_init_cache(0x331, 0x441); 119 tegra_init_cache(0x331, 0x441);
120 tegra_pmc_init();
102} 121}
103#endif 122#endif
104#ifdef CONFIG_ARCH_TEGRA_3x_SOC 123#ifdef CONFIG_ARCH_TEGRA_3x_SOC
@@ -106,5 +125,6 @@ void __init tegra30_init_early(void)
106{ 125{
107 tegra30_init_clocks(); 126 tegra30_init_clocks();
108 tegra_init_cache(0x441, 0x551); 127 tegra_init_cache(0x441, 0x551);
128 tegra_pmc_init();
109} 129}
110#endif 130#endif