common.h 1.1 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 __MACH_MXS_COMMON_H__
#define __MACH_MXS_COMMON_H__

S
Shawn Guo 已提交
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 *);
D
Dong Aisheng 已提交
18
extern int mxs_saif_clkmux_select(unsigned int clkmux);
19

20
extern void mx23_soc_init(void);
21 22 23 24
extern int mx23_clocks_init(void);
extern void mx23_map_io(void);
extern void mx23_init_irq(void);

25
extern void mx28_soc_init(void);
26 27 28 29 30 31
extern int mx28_clocks_init(void);
extern void mx28_map_io(void);
extern void mx28_init_irq(void);

extern void icoll_init_irq(void);

32 33
extern struct platform_device *mxs_add_dma(const char *devid,
						resource_size_t base);
34 35
extern struct platform_device *mxs_add_gpio(char *name, int id,
					    resource_size_t iobase, int irq);
36

37
#endif /* __MACH_MXS_COMMON_H__ */