xref: /openbmc/linux/arch/arm/mach-spear/generic.h (revision 83b975b5)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * spear machine family generic header file
4  *
5  * Copyright (C) 2009-2012 ST Microelectronics
6  * Rajeev Kumar <rajeev-dlh.kumar@st.com>
7  * Viresh Kumar <vireshk@kernel.org>
8  */
9 
10 #ifndef __MACH_GENERIC_H
11 #define __MACH_GENERIC_H
12 
13 #include <linux/dmaengine.h>
14 #include <linux/amba/pl08x.h>
15 #include <linux/init.h>
16 #include <linux/reboot.h>
17 
18 #include <asm/mach/time.h>
19 
20 extern volatile int spear_pen_release;
21 
22 extern void spear13xx_timer_init(void);
23 extern void spear3xx_timer_init(void);
24 extern struct pl022_ssp_controller pl022_plat_data;
25 extern struct pl08x_platform_data pl080_plat_data;
26 
27 void __init spear_setup_of_timer(void);
28 void __init spear3xx_map_io(void);
29 void __init spear3xx_dt_init_irq(void);
30 void __init spear13xx_map_io(void);
31 void __init spear13xx_l2x0_init(void);
32 
33 void spear_restart(enum reboot_mode, const char *);
34 
35 void spear13xx_secondary_startup(void);
36 void spear13xx_cpu_die(unsigned int cpu);
37 
38 extern const struct smp_operations spear13xx_smp_ops;
39 
40 #endif /* __MACH_GENERIC_H */
41