blob: fd308f8b18d9782339fa3fcfaa71551a6b91a59c [file] [log] [blame]
John Linnb85a3ef2011-06-20 11:47:27 -06001/*
2 * This file contains common function prototypes to avoid externs
3 * in the c files.
4 *
5 * Copyright (C) 2011 Xilinx
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#ifndef __MACH_ZYNQ_COMMON_H__
18#define __MACH_ZYNQ_COMMON_H__
19
Michal Simek64b889b2013-03-27 12:37:53 +010020extern int zynq_slcr_init(void);
Michal Simek96790f02013-03-20 11:42:15 +010021extern void zynq_slcr_system_reset(void);
Michal Simekaa7eb2b2013-03-20 13:50:12 +010022extern void zynq_slcr_cpu_stop(int cpu);
23extern void zynq_slcr_cpu_start(int cpu);
24
25#ifdef CONFIG_SMP
26extern void secondary_startup(void);
27extern char zynq_secondary_trampoline;
28extern char zynq_secondary_trampoline_jump;
29extern char zynq_secondary_trampoline_end;
30extern int __cpuinit zynq_cpun_start(u32 address, int cpu);
31extern struct smp_operations zynq_smp_ops __initdata;
32#endif
Michal Simek64b889b2013-03-27 12:37:53 +010033
34extern void __iomem *zynq_slcr_base;
Michal Simek732078c2013-03-20 11:11:43 +010035extern void __iomem *zynq_scu_base;
36
John Linnb85a3ef2011-06-20 11:47:27 -060037#endif