18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * spear machine family generic header file
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2009-2012 ST Microelectronics
58c2ecf20Sopenharmony_ci * Rajeev Kumar <rajeev-dlh.kumar@st.com>
68c2ecf20Sopenharmony_ci * Viresh Kumar <vireshk@kernel.org>
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public
98c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without any
108c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied.
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifndef __MACH_GENERIC_H
148c2ecf20Sopenharmony_ci#define __MACH_GENERIC_H
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#include <linux/dmaengine.h>
178c2ecf20Sopenharmony_ci#include <linux/amba/pl08x.h>
188c2ecf20Sopenharmony_ci#include <linux/init.h>
198c2ecf20Sopenharmony_ci#include <linux/reboot.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#include <asm/mach/time.h>
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern volatile int spear_pen_release;
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciextern void spear13xx_timer_init(void);
268c2ecf20Sopenharmony_ciextern void spear3xx_timer_init(void);
278c2ecf20Sopenharmony_ciextern struct pl022_ssp_controller pl022_plat_data;
288c2ecf20Sopenharmony_ciextern struct pl08x_platform_data pl080_plat_data;
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_civoid __init spear_setup_of_timer(void);
318c2ecf20Sopenharmony_civoid __init spear3xx_clk_init(void __iomem *misc_base,
328c2ecf20Sopenharmony_ci			      void __iomem *soc_config_base);
338c2ecf20Sopenharmony_civoid __init spear3xx_map_io(void);
348c2ecf20Sopenharmony_civoid __init spear3xx_dt_init_irq(void);
358c2ecf20Sopenharmony_civoid __init spear6xx_clk_init(void __iomem *misc_base);
368c2ecf20Sopenharmony_civoid __init spear13xx_map_io(void);
378c2ecf20Sopenharmony_civoid __init spear13xx_l2x0_init(void);
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_civoid spear_restart(enum reboot_mode, const char *);
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_civoid spear13xx_secondary_startup(void);
428c2ecf20Sopenharmony_civoid spear13xx_cpu_die(unsigned int cpu);
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciextern const struct smp_operations spear13xx_smp_ops;
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#ifdef CONFIG_MACH_SPEAR1310
478c2ecf20Sopenharmony_civoid __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base);
488c2ecf20Sopenharmony_ci#else
498c2ecf20Sopenharmony_cistatic inline void spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base) {}
508c2ecf20Sopenharmony_ci#endif
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci#ifdef CONFIG_MACH_SPEAR1340
538c2ecf20Sopenharmony_civoid __init spear1340_clk_init(void __iomem *misc_base);
548c2ecf20Sopenharmony_ci#else
558c2ecf20Sopenharmony_cistatic inline void spear1340_clk_init(void __iomem *misc_base) {}
568c2ecf20Sopenharmony_ci#endif
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci#endif /* __MACH_GENERIC_H */
59