vt8500.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) | vt8500.c (06ff14c05426ec7b7600521c4e1ae19732797e15) |
---|---|
1/* 2 * arch/arm/mach-vt8500/vt8500.c 3 * 4 * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 6 unchanged lines hidden (view full) --- 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 */ 20 21#include <linux/clocksource.h> 22#include <linux/io.h> | 1/* 2 * arch/arm/mach-vt8500/vt8500.c 3 * 4 * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 6 unchanged lines hidden (view full) --- 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 */ 20 21#include <linux/clocksource.h> 22#include <linux/io.h> |
23#include <linux/irqchip.h> |
|
23#include <linux/pm.h> 24 25#include <asm/mach-types.h> 26#include <asm/mach/arch.h> 27#include <asm/mach/time.h> 28#include <asm/mach/map.h> 29 30#include <linux/of.h> --- 130 unchanged lines hidden (view full) --- 161 else 162 pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); 163 164 vtwm_clk_init(pmc_base); 165 166 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 167} 168 | 24#include <linux/pm.h> 25 26#include <asm/mach-types.h> 27#include <asm/mach/arch.h> 28#include <asm/mach/time.h> 29#include <asm/mach/map.h> 30 31#include <linux/of.h> --- 130 unchanged lines hidden (view full) --- 162 else 163 pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); 164 165 vtwm_clk_init(pmc_base); 166 167 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 168} 169 |
169static const struct of_device_id vt8500_irq_match[] __initconst = { 170 { .compatible = "via,vt8500-intc", .data = vt8500_irq_init, }, 171 { /* sentinel */ }, 172}; 173 174static void __init vt8500_init_irq(void) 175{ 176 of_irq_init(vt8500_irq_match); 177}; 178 | |
179static const char * const vt8500_dt_compat[] = { 180 "via,vt8500", 181 "wm,wm8650", 182 "wm,wm8505", 183 "wm,wm8750", 184 "wm,wm8850", 185}; 186 187DT_MACHINE_START(WMT_DT, "VIA/Wondermedia SoC (Device Tree Support)") 188 .dt_compat = vt8500_dt_compat, 189 .map_io = vt8500_map_io, | 170static const char * const vt8500_dt_compat[] = { 171 "via,vt8500", 172 "wm,wm8650", 173 "wm,wm8505", 174 "wm,wm8750", 175 "wm,wm8850", 176}; 177 178DT_MACHINE_START(WMT_DT, "VIA/Wondermedia SoC (Device Tree Support)") 179 .dt_compat = vt8500_dt_compat, 180 .map_io = vt8500_map_io, |
190 .init_irq = vt8500_init_irq, | 181 .init_irq = irqchip_init, |
191 .init_machine = vt8500_init, 192 .init_time = clocksource_of_init, 193 .restart = vt8500_restart, | 182 .init_machine = vt8500_init, 183 .init_time = clocksource_of_init, 184 .restart = vt8500_restart, |
194 .handle_irq = vt8500_handle_irq, | |
195MACHINE_END 196 | 185MACHINE_END 186 |