Merge branch 'for-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-mxs / include / mach / common.h
1 /*
2  * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
3  */
4
5 /*
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #ifndef __MACH_MXS_COMMON_H__
12 #define __MACH_MXS_COMMON_H__
13
14 extern const u32 *mxs_get_ocotp(void);
15 extern int mxs_reset_block(void __iomem *);
16 extern void mxs_timer_init(int);
17 extern void mxs_restart(char, const char *);
18 extern int mxs_saif_clkmux_select(unsigned int clkmux);
19
20 extern void mx23_soc_init(void);
21 extern int mx23_clocks_init(void);
22 extern void mx23_map_io(void);
23 extern void mx23_init_irq(void);
24
25 extern void mx28_soc_init(void);
26 extern int mx28_clocks_init(void);
27 extern void mx28_map_io(void);
28 extern void mx28_init_irq(void);
29
30 extern void icoll_init_irq(void);
31
32 extern struct platform_device *mxs_add_dma(const char *devid,
33                                                 resource_size_t base);
34 extern struct platform_device *mxs_add_gpio(char *name, int id,
35                                             resource_size_t iobase, int irq);
36
37 #endif /* __MACH_MXS_COMMON_H__ */