Merge branch 'CVE-2014-7970' of git://git.kernel.org/pub/scm/linux/kernel/git/luto...
[deliverable/linux.git] / arch / arm / mach-s3c64xx / common.h
CommitLineData
b024043b
KK
1/*
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
7b6d864b
RH
20#include <linux/reboot.h>
21
b024043b
KK
22void s3c64xx_init_irq(u32 vic0, u32 vic1);
23void s3c64xx_init_io(struct map_desc *mach_desc, int size);
24
7b6d864b 25void s3c64xx_restart(enum reboot_mode mode, const char *cmd);
ff84ded2 26
b69f460d
TF
27void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
28 unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base);
29void s3c64xx_set_xtal_freq(unsigned long freq);
30void s3c64xx_set_xusbxti_freq(unsigned long freq);
31
b024043b
KK
32#ifdef CONFIG_CPU_S3C6400
33
34extern int s3c6400_init(void);
35extern void s3c6400_init_irq(void);
36extern void s3c6400_map_io(void);
b024043b
KK
37
38#else
b024043b
KK
39#define s3c6400_map_io NULL
40#define s3c6400_init NULL
41#endif
42
43#ifdef CONFIG_CPU_S3C6410
44
45extern int s3c6410_init(void);
46extern void s3c6410_init_irq(void);
47extern void s3c6410_map_io(void);
b024043b
KK
48
49#else
b024043b
KK
50#define s3c6410_map_io NULL
51#define s3c6410_init NULL
52#endif
53
1db0287a
TF
54#ifdef CONFIG_S3C64XX_PL080
55extern struct pl08x_platform_data s3c64xx_dma0_plat_data;
56extern struct pl08x_platform_data s3c64xx_dma1_plat_data;
57#endif
58
b024043b 59#endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */
This page took 0.221809 seconds and 5 git commands to generate.