blob: cbe7f3d731d0f9f5bd2e1fa4a31125ceb774f30e [file] [log] [blame]
Kukjin Kim95af2142011-12-22 23:28:28 +01001/*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Common Header for S5P64X0 machines
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#ifndef __ARCH_ARM_MACH_S5P64X0_COMMON_H
13#define __ARCH_ARM_MACH_S5P64X0_COMMON_H
14
Robin Holt7b6d8642013-07-08 16:01:40 -070015#include <linux/reboot.h>
16
Kukjin Kim95af2142011-12-22 23:28:28 +010017void s5p6440_init_irq(void);
18void s5p6450_init_irq(void);
19void s5p64x0_init_io(struct map_desc *mach_desc, int size);
20
21void s5p6440_register_clocks(void);
22void s5p6440_setup_clocks(void);
23
24void s5p6450_register_clocks(void);
25void s5p6450_setup_clocks(void);
26
Robin Holt7b6d8642013-07-08 16:01:40 -070027void s5p64x0_restart(enum reboot_mode mode, const char *cmd);
Arnd Bergmann4f579c02014-03-15 20:08:48 +010028extern int s5p64x0_init(void);
Kukjin Kim73aed8b2011-12-22 23:34:25 +010029
Kukjin Kim95af2142011-12-22 23:28:28 +010030#ifdef CONFIG_CPU_S5P6440
31
Kukjin Kim95af2142011-12-22 23:28:28 +010032extern void s5p6440_map_io(void);
33extern void s5p6440_init_clocks(int xtal);
34
35extern void s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no);
36
37#else
38#define s5p6440_init_clocks NULL
39#define s5p6440_init_uarts NULL
40#define s5p6440_map_io NULL
Kukjin Kim95af2142011-12-22 23:28:28 +010041#endif
42
43#ifdef CONFIG_CPU_S5P6450
44
Kukjin Kim95af2142011-12-22 23:28:28 +010045extern void s5p6450_map_io(void);
46extern void s5p6450_init_clocks(int xtal);
47
48extern void s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no);
49
50#else
51#define s5p6450_init_clocks NULL
52#define s5p6450_init_uarts NULL
53#define s5p6450_map_io NULL
Kukjin Kim95af2142011-12-22 23:28:28 +010054#endif
55
56#endif /* __ARCH_ARM_MACH_S5P64X0_COMMON_H */