blob: 4a95b9453c2a5ce67bb3f636c016d9c6c4e246bc [file] [log] [blame]
viresh kumara7e9c452010-04-01 12:30:19 +01001/*
2 * arch/arm/mach-spear3xx/generic.h
3 *
4 * SPEAr3XX machine family generic header file
5 *
6 * Copyright (C) 2009 ST Microelectronics
7 * Viresh Kumar<viresh.kumar@st.com>
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14#ifndef __MACH_GENERIC_H
15#define __MACH_GENERIC_H
16
Viresh Kumar0b7ee712012-03-26 10:29:23 +053017#include <linux/amba/pl08x.h>
viresh kumara7e9c452010-04-01 12:30:19 +010018#include <linux/init.h>
19#include <linux/platform_device.h>
20#include <linux/amba/bus.h>
viresh kumar410782b2011-03-07 05:57:01 +010021#include <asm/mach/time.h>
22#include <asm/mach/map.h>
viresh kumara7e9c452010-04-01 12:30:19 +010023
viresh kumara7e9c452010-04-01 12:30:19 +010024/* Add spear3xx family device structure declarations here */
Shiraz Hashim5c881d92011-02-16 07:40:32 +010025extern struct sys_timer spear3xx_timer;
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053026extern struct pl022_ssp_controller pl022_plat_data;
Viresh Kumar0b7ee712012-03-26 10:29:23 +053027extern struct pl08x_platform_data pl080_plat_data;
viresh kumara7e9c452010-04-01 12:30:19 +010028
29/* Add spear3xx family function declarations here */
Viresh Kumar30551c02012-04-21 13:15:37 +053030void __init spear_setup_of_timer(void);
Viresh Kumar5df33a62012-04-10 09:02:35 +053031void __init spear3xx_clk_init(void);
viresh kumara7e9c452010-04-01 12:30:19 +010032void __init spear3xx_map_io(void);
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053033void __init spear3xx_dt_init_irq(void);
viresh kumara7e9c452010-04-01 12:30:19 +010034
Russell Kingdd1661e2011-11-05 21:10:37 +000035void spear_restart(char, const char *);
36
viresh kumara7e9c452010-04-01 12:30:19 +010037#endif /* __MACH_GENERIC_H */