blob: 1394025068c3656be163258355c21a981077fe42 [file] [log] [blame]
Quinn Jensen52c543f2007-07-09 22:06:53 +01001/*
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 Hauer282b13d2008-09-09 10:19:40 +020014struct platform_device;
Sascha Hauer30c730f2009-02-16 14:36:49 +010015struct clk;
Sascha Hauer282b13d2008-09-09 10:19:40 +020016
Sascha Hauercd4a05f2009-04-02 22:32:10 +020017extern void mx1_map_io(void);
18extern void mx21_map_io(void);
Sascha Hauer8c25c362009-06-04 11:32:12 +020019extern void mx25_map_io(void);
Sascha Hauercd4a05f2009-04-02 22:32:10 +020020extern void mx27_map_io(void);
21extern void mx31_map_io(void);
22extern void mx35_map_io(void);
Dmitriy Taychenachevfd6ac7b2009-07-31 20:29:22 +090023extern void mxc91231_map_io(void);
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +020024extern void mxc_init_irq(void __iomem *);
Amit Kucheriaa0037082009-12-03 22:36:41 +020025extern void tzic_init_irq(void __iomem *);
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +020026extern void mx1_init_irq(void);
27extern void mx21_init_irq(void);
Sascha Hauer8c25c362009-06-04 11:32:12 +020028extern void mx25_init_irq(void);
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +020029extern void mx27_init_irq(void);
30extern void mx31_init_irq(void);
31extern void mx35_init_irq(void);
Dmitriy Taychenachevfd6ac7b2009-07-31 20:29:22 +090032extern void mxc91231_init_irq(void);
Sascha Hauer8db5d1a2009-05-25 12:21:38 +020033extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int);
Sascha Hauer30c730f2009-02-16 14:36:49 +010034extern int mx1_clocks_init(unsigned long fref);
Holger Schurigaa3b0a62009-01-26 16:34:54 +010035extern int mx21_clocks_init(unsigned long lref, unsigned long fref);
Baruch Siachfadc0952010-01-25 12:58:19 +020036extern int mx25_clocks_init(void);
Sascha Hauer30c730f2009-02-16 14:36:49 +010037extern int mx27_clocks_init(unsigned long fref);
38extern int mx31_clocks_init(unsigned long fref);
Sascha Hauer2cb536d2009-02-06 17:48:59 +010039extern int mx35_clocks_init(void);
Dmitriy Taychenachevfd6ac7b2009-07-31 20:29:22 +090040extern int mxc91231_clocks_init(unsigned long fref);
Juergen Beisert07bd1a62008-07-05 10:02:49 +020041extern int mxc_register_gpios(void);
Sascha Hauer282b13d2008-09-09 10:19:40 +020042extern int mxc_register_device(struct platform_device *pdev, void *data);
Sascha Hauer198016e2009-02-06 15:38:22 +010043extern void mxc_set_cpu_type(unsigned int type);
Sascha Hauerbe124c92009-06-04 12:19:02 +020044extern void mxc_arch_reset_init(void __iomem *);
Dmitriy Taychenachevfd6ac7b2009-07-31 20:29:22 +090045extern void mxc91231_power_off(void);
46extern void mxc91231_arch_reset(int, const char *);
47extern void mxc91231_prepare_idle(void);
Quinn Jensen52c543f2007-07-09 22:06:53 +010048
49#endif