blob: 7043e7a3a67ed868f9e4465d7afae197619dcdc9 [file] [log] [blame]
Kukjin Kimb024043b2011-12-22 23:27:42 +01001/*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/
9 *
10 * Common Header for S3C64XX machines
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
15 */
16
17#ifndef __ARCH_ARM_MACH_S3C64XX_COMMON_H
18#define __ARCH_ARM_MACH_S3C64XX_COMMON_H
19
Robin Holt7b6d8642013-07-08 16:01:40 -070020#include <linux/reboot.h>
21
Kukjin Kimb024043b2011-12-22 23:27:42 +010022void s3c64xx_init_irq(u32 vic0, u32 vic1);
23void s3c64xx_init_io(struct map_desc *mach_desc, int size);
24
Robin Holt7b6d8642013-07-08 16:01:40 -070025void s3c64xx_restart(enum reboot_mode mode, const char *cmd);
Shawn Guocc8f2522012-04-26 21:08:52 +080026void s3c64xx_init_late(void);
Kukjin Kimff84ded2012-01-03 14:03:30 +010027
Tomasz Figab69f4602013-08-26 02:00:38 +090028void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
29 unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base);
30void s3c64xx_set_xtal_freq(unsigned long freq);
31void s3c64xx_set_xusbxti_freq(unsigned long freq);
32
Kukjin Kimb024043b2011-12-22 23:27:42 +010033#ifdef CONFIG_CPU_S3C6400
34
35extern int s3c6400_init(void);
36extern void s3c6400_init_irq(void);
37extern void s3c6400_map_io(void);
Kukjin Kimb024043b2011-12-22 23:27:42 +010038
39#else
Kukjin Kimb024043b2011-12-22 23:27:42 +010040#define s3c6400_map_io NULL
41#define s3c6400_init NULL
42#endif
43
44#ifdef CONFIG_CPU_S3C6410
45
46extern int s3c6410_init(void);
47extern void s3c6410_init_irq(void);
48extern void s3c6410_map_io(void);
Kukjin Kimb024043b2011-12-22 23:27:42 +010049
50#else
Kukjin Kimb024043b2011-12-22 23:27:42 +010051#define s3c6410_map_io NULL
52#define s3c6410_init NULL
53#endif
54
Shawn Guocc8f2522012-04-26 21:08:52 +080055#ifdef CONFIG_PM
56int __init s3c64xx_pm_late_initcall(void);
57#else
58static inline int s3c64xx_pm_late_initcall(void) { return 0; }
59#endif
60
Tomasz Figa1db02872013-10-16 21:10:54 +020061#ifdef CONFIG_S3C64XX_PL080
62extern struct pl08x_platform_data s3c64xx_dma0_plat_data;
63extern struct pl08x_platform_data s3c64xx_dma1_plat_data;
64#endif
65
Kukjin Kimb024043b2011-12-22 23:27:42 +010066#endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */