common.h 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
 */

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __ASM_ARCH_MXC_COMMON_H__
#define __ASM_ARCH_MXC_COMMON_H__

14
struct platform_device;
15
struct clk;
16

17 18
extern void mx1_map_io(void);
extern void mx21_map_io(void);
S
Sascha Hauer 已提交
19
extern void mx25_map_io(void);
20 21 22
extern void mx27_map_io(void);
extern void mx31_map_io(void);
extern void mx35_map_io(void);
23
extern void mxc91231_map_io(void);
24 25 26
extern void mxc_init_irq(void __iomem *);
extern void mx1_init_irq(void);
extern void mx21_init_irq(void);
S
Sascha Hauer 已提交
27
extern void mx25_init_irq(void);
28 29 30
extern void mx27_init_irq(void);
extern void mx31_init_irq(void);
extern void mx35_init_irq(void);
31
extern void mxc91231_init_irq(void);
32
extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int);
33
extern int mx1_clocks_init(unsigned long fref);
34
extern int mx21_clocks_init(unsigned long lref, unsigned long fref);
S
Sascha Hauer 已提交
35
extern int mx25_clocks_init(unsigned long fref);
36 37
extern int mx27_clocks_init(unsigned long fref);
extern int mx31_clocks_init(unsigned long fref);
S
Sascha Hauer 已提交
38
extern int mx35_clocks_init(void);
39
extern int mxc91231_clocks_init(unsigned long fref);
40
extern int mxc_register_gpios(void);
41
extern int mxc_register_device(struct platform_device *pdev, void *data);
S
Sascha Hauer 已提交
42
extern void mxc_set_cpu_type(unsigned int type);
S
Sascha Hauer 已提交
43
extern void mxc_arch_reset_init(void __iomem *);
44 45 46
extern void mxc91231_power_off(void);
extern void mxc91231_arch_reset(int, const char *);
extern void mxc91231_prepare_idle(void);
47 48

#endif