versatile_timer.c revision 244197
1176349Smarcel/* 2176349Smarcel * Copyright (c) 2012 Oleksandr Tymoshenko <gonzo@freebsd.org> 3209125Sraj * All rights reserved. 4209125Sraj * 5176490Smarcel * Redistribution and use in source and binary forms, with or without 6176349Smarcel * modification, are permitted provided that the following conditions 7176349Smarcel * are met: 8176349Smarcel * 1. Redistributions of source code must retain the above copyright 9176490Smarcel * notice, this list of conditions and the following disclaimer. 10176349Smarcel * 2. Redistributions in binary form must reproduce the above copyright 11176349Smarcel * notice, this list of conditions and the following disclaimer in the 12182724Sraj * documentation and/or other materials provided with the distribution. 13209920Snwhitehorn * 14176349Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15240277Sae * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16204315Sraj * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17240277Sae * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18240277Sae * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19240277Sae * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20204315Sraj * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21176349Smarcel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22176349Smarcel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23176349Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24176349Smarcel * SUCH DAMAGE. 25176349Smarcel */ 26176349Smarcel 27176349Smarcel#include <sys/cdefs.h> 28209125Sraj__FBSDID("$FreeBSD: head/sys/arm/versatile/versatile_timer.c 244197 2012-12-13 23:19:13Z gonzo $"); 29208538Sraj 30208538Sraj#include <sys/param.h> 31208538Sraj#include <sys/systm.h> 32208538Sraj#include <sys/bus.h> 33176349Smarcel#include <sys/kernel.h> 34176349Smarcel#include <sys/module.h> 35176349Smarcel#include <sys/malloc.h> 36176349Smarcel#include <sys/rman.h> 37176349Smarcel#include <sys/timeet.h> 38176349Smarcel#include <sys/timetc.h> 39176349Smarcel#include <sys/watchdog.h> 40176349Smarcel#include <machine/bus.h> 41176349Smarcel#include <machine/cpu.h> 42176349Smarcel#include <machine/frame.h> 43176349Smarcel#include <machine/intr.h> 44176349Smarcel 45176349Smarcel#include <dev/fdt/fdt_common.h> 46176349Smarcel#include <dev/ofw/openfirm.h> 47176349Smarcel#include <dev/ofw/ofw_bus.h> 48176349Smarcel#include <dev/ofw/ofw_bus_subr.h> 49176349Smarcel 50176349Smarcel#include <machine/bus.h> 51176349Smarcel#include <machine/fdt.h> 52176349Smarcel 53176349Smarcelvoid 54176349Smarcelcpu_initclocks(void) 55176349Smarcel{ 56176349Smarcel cpu_initclocks_bsp(); 57176349Smarcel} 58176349Smarcel 59176349Smarcel 60176349Smarcel