• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_clk_init(void __iomem *misc_base,
29 			      void __iomem *soc_config_base);
30 void __init spear3xx_map_io(void);
31 void __init spear3xx_dt_init_irq(void);
32 void __init spear6xx_clk_init(void __iomem *misc_base);
33 void __init spear13xx_map_io(void);
34 void __init spear13xx_l2x0_init(void);
35 
36 void spear_restart(enum reboot_mode, const char *);
37 
38 void spear13xx_secondary_startup(void);
39 void spear13xx_cpu_die(unsigned int cpu);
40 
41 extern const struct smp_operations spear13xx_smp_ops;
42 
43 #endif /* __MACH_GENERIC_H */
44