tegra.c (24fa5af81059af90c723bec6aacc3cd2b2809d14) | tegra.c (7232398abc6a7186e315425638c367d50c674718) |
---|---|
1/* 2 * NVIDIA Tegra SoC device tree board support 3 * 4 * Copyright (C) 2011, 2013, NVIDIA Corporation 5 * Copyright (C) 2010 Secret Lab Technologies, Ltd. 6 * Copyright (C) 2010 Google, Inc. 7 * 8 * This software is licensed under the terms of the GNU General Public --- 22 unchanged lines hidden (view full) --- 31#include <linux/pda_power.h> 32#include <linux/platform_device.h> 33#include <linux/serial_8250.h> 34#include <linux/slab.h> 35#include <linux/sys_soc.h> 36#include <linux/usb/tegra_usb_phy.h> 37 38#include <soc/tegra/fuse.h> | 1/* 2 * NVIDIA Tegra SoC device tree board support 3 * 4 * Copyright (C) 2011, 2013, NVIDIA Corporation 5 * Copyright (C) 2010 Secret Lab Technologies, Ltd. 6 * Copyright (C) 2010 Google, Inc. 7 * 8 * This software is licensed under the terms of the GNU General Public --- 22 unchanged lines hidden (view full) --- 31#include <linux/pda_power.h> 32#include <linux/platform_device.h> 33#include <linux/serial_8250.h> 34#include <linux/slab.h> 35#include <linux/sys_soc.h> 36#include <linux/usb/tegra_usb_phy.h> 37 38#include <soc/tegra/fuse.h> |
39#include <soc/tegra/pmc.h> |
|
39 40#include <asm/hardware/cache-l2x0.h> 41#include <asm/mach/arch.h> 42#include <asm/mach/time.h> 43#include <asm/mach-types.h> 44#include <asm/setup.h> 45#include <asm/trusted_foundations.h> 46 47#include "board.h" 48#include "common.h" 49#include "cpuidle.h" 50#include "iomap.h" 51#include "irq.h" | 40 41#include <asm/hardware/cache-l2x0.h> 42#include <asm/mach/arch.h> 43#include <asm/mach/time.h> 44#include <asm/mach-types.h> 45#include <asm/setup.h> 46#include <asm/trusted_foundations.h> 47 48#include "board.h" 49#include "common.h" 50#include "cpuidle.h" 51#include "iomap.h" 52#include "irq.h" |
52#include "pmc.h" | |
53#include "pm.h" 54#include "reset.h" 55#include "sleep.h" 56 57/* 58 * Storage for debug-macro.S's state. 59 * 60 * This must be in .data not .bss so that it gets initialized each time the --- 8 unchanged lines hidden (view full) --- 69 /* Debug UART virtual address */ 70 0, 71}; 72 73static void __init tegra_init_early(void) 74{ 75 of_register_trusted_foundations(); 76 tegra_cpu_reset_handler_init(); | 53#include "pm.h" 54#include "reset.h" 55#include "sleep.h" 56 57/* 58 * Storage for debug-macro.S's state. 59 * 60 * This must be in .data not .bss so that it gets initialized each time the --- 8 unchanged lines hidden (view full) --- 69 /* Debug UART virtual address */ 70 0, 71}; 72 73static void __init tegra_init_early(void) 74{ 75 of_register_trusted_foundations(); 76 tegra_cpu_reset_handler_init(); |
77 tegra_powergate_init(); | |
78} 79 80static void __init tegra_dt_init_irq(void) 81{ | 77} 78 79static void __init tegra_dt_init_irq(void) 80{ |
82 tegra_pmc_init_irq(); | |
83 tegra_init_irq(); 84 irqchip_init(); 85 tegra_legacy_irq_syscore_init(); 86} 87 88static void __init tegra_dt_init(void) 89{ 90 struct soc_device_attribute *soc_dev_attr; 91 struct soc_device *soc_dev; 92 struct device *parent = NULL; 93 | 81 tegra_init_irq(); 82 irqchip_init(); 83 tegra_legacy_irq_syscore_init(); 84} 85 86static void __init tegra_dt_init(void) 87{ 88 struct soc_device_attribute *soc_dev_attr; 89 struct soc_device *soc_dev; 90 struct device *parent = NULL; 91 |
94 tegra_pmc_init(); 95 | |
96 tegra_clocks_apply_init_table(); 97 98 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 99 if (!soc_dev_attr) 100 goto out; 101 102 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); 103 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d", --- 33 unchanged lines hidden (view full) --- 137}; 138 139static void __init tegra_dt_init_late(void) 140{ 141 int i; 142 143 tegra_init_suspend(); 144 tegra_cpuidle_init(); | 92 tegra_clocks_apply_init_table(); 93 94 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 95 if (!soc_dev_attr) 96 goto out; 97 98 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); 99 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d", --- 33 unchanged lines hidden (view full) --- 133}; 134 135static void __init tegra_dt_init_late(void) 136{ 137 int i; 138 139 tegra_init_suspend(); 140 tegra_cpuidle_init(); |
145 tegra_powergate_debugfs_init(); | |
146 147 for (i = 0; i < ARRAY_SIZE(board_init_funcs); i++) { 148 if (of_machine_is_compatible(board_init_funcs[i].machine)) { 149 board_init_funcs[i].init(); 150 break; 151 } 152 } 153} --- 21 unchanged lines hidden --- | 141 142 for (i = 0; i < ARRAY_SIZE(board_init_funcs); i++) { 143 if (of_machine_is_compatible(board_init_funcs[i].machine)) { 144 board_init_funcs[i].init(); 145 break; 146 } 147 } 148} --- 21 unchanged lines hidden --- |