Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * spear machine family generic header file
0004  *
0005  * Copyright (C) 2009-2012 ST Microelectronics
0006  * Rajeev Kumar <rajeev-dlh.kumar@st.com>
0007  * Viresh Kumar <vireshk@kernel.org>
0008  */
0009 
0010 #ifndef __MACH_GENERIC_H
0011 #define __MACH_GENERIC_H
0012 
0013 #include <linux/dmaengine.h>
0014 #include <linux/amba/pl08x.h>
0015 #include <linux/init.h>
0016 #include <linux/reboot.h>
0017 
0018 #include <asm/mach/time.h>
0019 
0020 extern volatile int spear_pen_release;
0021 
0022 extern void spear13xx_timer_init(void);
0023 extern void spear3xx_timer_init(void);
0024 extern struct pl022_ssp_controller pl022_plat_data;
0025 extern struct pl08x_platform_data pl080_plat_data;
0026 
0027 void __init spear_setup_of_timer(void);
0028 void __init spear3xx_clk_init(void __iomem *misc_base,
0029                   void __iomem *soc_config_base);
0030 void __init spear3xx_map_io(void);
0031 void __init spear3xx_dt_init_irq(void);
0032 void __init spear6xx_clk_init(void __iomem *misc_base);
0033 void __init spear13xx_map_io(void);
0034 void __init spear13xx_l2x0_init(void);
0035 
0036 void spear_restart(enum reboot_mode, const char *);
0037 
0038 void spear13xx_secondary_startup(void);
0039 void spear13xx_cpu_die(unsigned int cpu);
0040 
0041 extern const struct smp_operations spear13xx_smp_ops;
0042 
0043 #endif /* __MACH_GENERIC_H */