xref: /openbmc/linux/arch/arm/mach-exynos/common.h (revision 9eb48595)
1cc511b8dSKukjin Kim /*
2cc511b8dSKukjin Kim  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3cc511b8dSKukjin Kim  *		http://www.samsung.com
4cc511b8dSKukjin Kim  *
5cc511b8dSKukjin Kim  * Common Header for EXYNOS machines
6cc511b8dSKukjin Kim  *
7cc511b8dSKukjin Kim  * This program is free software; you can redistribute it and/or modify
8cc511b8dSKukjin Kim  * it under the terms of the GNU General Public License version 2 as
9cc511b8dSKukjin Kim  * published by the Free Software Foundation.
10cc511b8dSKukjin Kim  */
11cc511b8dSKukjin Kim 
12cc511b8dSKukjin Kim #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H
13cc511b8dSKukjin Kim #define __ARCH_ARM_MACH_EXYNOS_COMMON_H
14cc511b8dSKukjin Kim 
15cc511b8dSKukjin Kim void exynos_init_io(struct map_desc *mach_desc, int size);
16cc511b8dSKukjin Kim void exynos4_init_irq(void);
17cc511b8dSKukjin Kim 
18cc511b8dSKukjin Kim void exynos4_register_clocks(void);
19cc511b8dSKukjin Kim void exynos4_setup_clocks(void);
20cc511b8dSKukjin Kim 
21cc511b8dSKukjin Kim void exynos4210_register_clocks(void);
22cc511b8dSKukjin Kim void exynos4212_register_clocks(void);
23cc511b8dSKukjin Kim 
249eb48595SRussell King void exynos4_restart(char mode, const char *cmd);
259eb48595SRussell King 
26cc511b8dSKukjin Kim extern struct sys_timer exynos4_timer;
27cc511b8dSKukjin Kim 
28cc511b8dSKukjin Kim #ifdef CONFIG_ARCH_EXYNOS
29cc511b8dSKukjin Kim extern  int exynos_init(void);
30cc511b8dSKukjin Kim extern void exynos4_map_io(void);
31cc511b8dSKukjin Kim extern void exynos4_init_clocks(int xtal);
32cc511b8dSKukjin Kim extern void exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no);
33cc511b8dSKukjin Kim 
34cc511b8dSKukjin Kim #else
35cc511b8dSKukjin Kim #define exynos4_init_clocks NULL
36cc511b8dSKukjin Kim #define exynos4_init_uarts NULL
37cc511b8dSKukjin Kim #define exynos4_map_io NULL
38cc511b8dSKukjin Kim #define exynos_init NULL
39cc511b8dSKukjin Kim #endif
40cc511b8dSKukjin Kim 
41cc511b8dSKukjin Kim #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */
42