Quinn Jensen | 52c543f | 2007-07-09 22:06:53 +0100 | [diff] [blame] | 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 __ASM_ARCH_MXC_COMMON_H__ |
| 12 | #define __ASM_ARCH_MXC_COMMON_H__ |
| 13 | |
Sascha Hauer | 282b13d | 2008-09-09 10:19:40 +0200 | [diff] [blame] | 14 | struct platform_device; |
Sascha Hauer | 30c730f | 2009-02-16 14:36:49 +0100 | [diff] [blame] | 15 | struct clk; |
Sascha Hauer | 282b13d | 2008-09-09 10:19:40 +0200 | [diff] [blame] | 16 | |
Sascha Hauer | cd4a05f | 2009-04-02 22:32:10 +0200 | [diff] [blame] | 17 | extern void mx1_map_io(void); |
| 18 | extern void mx21_map_io(void); |
Sascha Hauer | 8c25c36 | 2009-06-04 11:32:12 +0200 | [diff] [blame] | 19 | extern void mx25_map_io(void); |
Sascha Hauer | cd4a05f | 2009-04-02 22:32:10 +0200 | [diff] [blame] | 20 | extern void mx27_map_io(void); |
| 21 | extern void mx31_map_io(void); |
| 22 | extern void mx35_map_io(void); |
Dmitriy Taychenachev | fd6ac7b | 2009-07-31 20:29:22 +0900 | [diff] [blame] | 23 | extern void mxc91231_map_io(void); |
Sascha Hauer | c5aa0ad | 2009-05-25 17:36:19 +0200 | [diff] [blame] | 24 | extern void mxc_init_irq(void __iomem *); |
Amit Kucheria | a003708 | 2009-12-03 22:36:41 +0200 | [diff] [blame^] | 25 | extern void tzic_init_irq(void __iomem *); |
Sascha Hauer | c5aa0ad | 2009-05-25 17:36:19 +0200 | [diff] [blame] | 26 | extern void mx1_init_irq(void); |
| 27 | extern void mx21_init_irq(void); |
Sascha Hauer | 8c25c36 | 2009-06-04 11:32:12 +0200 | [diff] [blame] | 28 | extern void mx25_init_irq(void); |
Sascha Hauer | c5aa0ad | 2009-05-25 17:36:19 +0200 | [diff] [blame] | 29 | extern void mx27_init_irq(void); |
| 30 | extern void mx31_init_irq(void); |
| 31 | extern void mx35_init_irq(void); |
Dmitriy Taychenachev | fd6ac7b | 2009-07-31 20:29:22 +0900 | [diff] [blame] | 32 | extern void mxc91231_init_irq(void); |
Sascha Hauer | 8db5d1a | 2009-05-25 12:21:38 +0200 | [diff] [blame] | 33 | extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int); |
Sascha Hauer | 30c730f | 2009-02-16 14:36:49 +0100 | [diff] [blame] | 34 | extern int mx1_clocks_init(unsigned long fref); |
Holger Schurig | aa3b0a6 | 2009-01-26 16:34:54 +0100 | [diff] [blame] | 35 | extern int mx21_clocks_init(unsigned long lref, unsigned long fref); |
Baruch Siach | fadc095 | 2010-01-25 12:58:19 +0200 | [diff] [blame] | 36 | extern int mx25_clocks_init(void); |
Sascha Hauer | 30c730f | 2009-02-16 14:36:49 +0100 | [diff] [blame] | 37 | extern int mx27_clocks_init(unsigned long fref); |
| 38 | extern int mx31_clocks_init(unsigned long fref); |
Sascha Hauer | 2cb536d | 2009-02-06 17:48:59 +0100 | [diff] [blame] | 39 | extern int mx35_clocks_init(void); |
Dmitriy Taychenachev | fd6ac7b | 2009-07-31 20:29:22 +0900 | [diff] [blame] | 40 | extern int mxc91231_clocks_init(unsigned long fref); |
Juergen Beisert | 07bd1a6 | 2008-07-05 10:02:49 +0200 | [diff] [blame] | 41 | extern int mxc_register_gpios(void); |
Sascha Hauer | 282b13d | 2008-09-09 10:19:40 +0200 | [diff] [blame] | 42 | extern int mxc_register_device(struct platform_device *pdev, void *data); |
Sascha Hauer | 198016e | 2009-02-06 15:38:22 +0100 | [diff] [blame] | 43 | extern void mxc_set_cpu_type(unsigned int type); |
Sascha Hauer | be124c9 | 2009-06-04 12:19:02 +0200 | [diff] [blame] | 44 | extern void mxc_arch_reset_init(void __iomem *); |
Dmitriy Taychenachev | fd6ac7b | 2009-07-31 20:29:22 +0900 | [diff] [blame] | 45 | extern void mxc91231_power_off(void); |
| 46 | extern void mxc91231_arch_reset(int, const char *); |
| 47 | extern void mxc91231_prepare_idle(void); |
Quinn Jensen | 52c543f | 2007-07-09 22:06:53 +0100 | [diff] [blame] | 48 | |
| 49 | #endif |