highbank.c (42d96abbe0d9a0a0662c0c0d494e64e983d0e68a) | highbank.c (0583fe478a7d93be2c814b7e50d6e81c287edfe8) |
---|---|
1/* 2 * Copyright 2010-2011 Calxeda, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 11 * more details. 12 * 13 * You should have received a copy of the GNU General Public License along with 14 * this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16#include <linux/clk.h> 17#include <linux/clkdev.h> | 1/* 2 * Copyright 2010-2011 Calxeda, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 11 * more details. 12 * 13 * You should have received a copy of the GNU General Public License along with 14 * this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16#include <linux/clk.h> 17#include <linux/clkdev.h> |
18#include <linux/clocksource.h> |
|
18#include <linux/dma-mapping.h> 19#include <linux/io.h> 20#include <linux/irq.h> 21#include <linux/irqchip.h> 22#include <linux/irqdomain.h> 23#include <linux/of.h> 24#include <linux/of_irq.h> 25#include <linux/of_platform.h> 26#include <linux/of_address.h> 27#include <linux/smp.h> 28#include <linux/amba/bus.h> 29#include <linux/clk-provider.h> 30 | 19#include <linux/dma-mapping.h> 20#include <linux/io.h> 21#include <linux/irq.h> 22#include <linux/irqchip.h> 23#include <linux/irqdomain.h> 24#include <linux/of.h> 25#include <linux/of_irq.h> 26#include <linux/of_platform.h> 27#include <linux/of_address.h> 28#include <linux/smp.h> 29#include <linux/amba/bus.h> 30#include <linux/clk-provider.h> 31 |
31#include <asm/arch_timer.h> | |
32#include <asm/cacheflush.h> 33#include <asm/cputype.h> 34#include <asm/smp_plat.h> 35#include <asm/hardware/arm_timer.h> 36#include <asm/hardware/timer-sp.h> 37#include <asm/hardware/cache-l2x0.h> 38#include <asm/mach/arch.h> 39#include <asm/mach/map.h> --- 73 unchanged lines hidden (view full) --- 113 114 of_clk_init(NULL); 115 lookup.clk = of_clk_get(np, 0); 116 clkdev_add(&lookup); 117 118 sp804_clocksource_and_sched_clock_init(timer_base + 0x20, "timer1"); 119 sp804_clockevents_init(timer_base, irq, "timer0"); 120 | 32#include <asm/cacheflush.h> 33#include <asm/cputype.h> 34#include <asm/smp_plat.h> 35#include <asm/hardware/arm_timer.h> 36#include <asm/hardware/timer-sp.h> 37#include <asm/hardware/cache-l2x0.h> 38#include <asm/mach/arch.h> 39#include <asm/mach/map.h> --- 73 unchanged lines hidden (view full) --- 113 114 of_clk_init(NULL); 115 lookup.clk = of_clk_get(np, 0); 116 clkdev_add(&lookup); 117 118 sp804_clocksource_and_sched_clock_init(timer_base + 0x20, "timer1"); 119 sp804_clockevents_init(timer_base, irq, "timer0"); 120 |
121 arch_timer_of_register(); 122 arch_timer_sched_clock_init(); 123 | |
124 clocksource_of_init(); 125} 126 127static void highbank_power_off(void) 128{ 129 highbank_set_pwr_shutdown(); 130 131 while (1) --- 76 unchanged lines hidden --- | 121 clocksource_of_init(); 122} 123 124static void highbank_power_off(void) 125{ 126 highbank_set_pwr_shutdown(); 127 128 while (1) --- 76 unchanged lines hidden --- |