generic.h 1.0 KB
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0-only */
V
Viresh Kumar 已提交
2
/*
3
 * spear machine family generic header file
V
Viresh Kumar 已提交
4
 *
5 6
 * Copyright (C) 2009-2012 ST Microelectronics
 * Rajeev Kumar <rajeev-dlh.kumar@st.com>
7
 * Viresh Kumar <vireshk@kernel.org>
V
Viresh Kumar 已提交
8 9 10 11 12 13
 */

#ifndef __MACH_GENERIC_H
#define __MACH_GENERIC_H

#include <linux/dmaengine.h>
14 15
#include <linux/amba/pl08x.h>
#include <linux/init.h>
16 17
#include <linux/reboot.h>

V
Viresh Kumar 已提交
18 19
#include <asm/mach/time.h>

20 21
extern volatile int spear_pen_release;

S
Stephen Warren 已提交
22
extern void spear13xx_timer_init(void);
23
extern void spear3xx_timer_init(void);
V
Viresh Kumar 已提交
24
extern struct pl022_ssp_controller pl022_plat_data;
25
extern struct pl08x_platform_data pl080_plat_data;
V
Viresh Kumar 已提交
26 27

void __init spear_setup_of_timer(void);
28 29
void __init spear3xx_map_io(void);
void __init spear3xx_dt_init_irq(void);
V
Viresh Kumar 已提交
30 31
void __init spear13xx_map_io(void);
void __init spear13xx_l2x0_init(void);
32

33
void spear_restart(enum reboot_mode, const char *);
34

V
Viresh Kumar 已提交
35
void spear13xx_secondary_startup(void);
36
void spear13xx_cpu_die(unsigned int cpu);
37

38
extern const struct smp_operations spear13xx_smp_ops;
V
Viresh Kumar 已提交
39 40

#endif /* __MACH_GENERIC_H */