xref: /linux/arch/arm/mach-pxa/generic.h (revision 7b6d864b48d95e6ea1df7df64475b9cb9616dcf9)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds  *  linux/arch/arm/mach-pxa/generic.h
31da177e4SLinus Torvalds  *
41da177e4SLinus Torvalds  * Author:	Nicolas Pitre
51da177e4SLinus Torvalds  * Copyright:	MontaVista Software Inc.
61da177e4SLinus Torvalds  *
71da177e4SLinus Torvalds  * This program is free software; you can redistribute it and/or modify
81da177e4SLinus Torvalds  * it under the terms of the GNU General Public License version 2 as
91da177e4SLinus Torvalds  * published by the Free Software Foundation.
101da177e4SLinus Torvalds  */
111da177e4SLinus Torvalds 
12*7b6d864bSRobin Holt #include <linux/reboot.h>
13*7b6d864bSRobin Holt 
14a3f4c927SLennert Buytenhek struct irq_data;
151da177e4SLinus Torvalds 
166bb27d73SStephen Warren extern void pxa_timer_init(void);
17851982c1SMarek Vasut 
181da177e4SLinus Torvalds extern void __init pxa_map_io(void);
191da177e4SLinus Torvalds 
201da177e4SLinus Torvalds extern unsigned int get_clk_frequency_khz(int info);
211da177e4SLinus Torvalds 
221da177e4SLinus Torvalds #define SET_BANK(__nr,__start,__size) \
231da177e4SLinus Torvalds 	mi->bank[__nr].start = (__start), \
24be370302SRussell King 	mi->bank[__nr].size = (__size)
251da177e4SLinus Torvalds 
263d3934c3Seric miao #define ARRAY_AND_SIZE(x)	(x), ARRAY_SIZE(x)
273d3934c3Seric miao 
2815a40333SRussell King #ifdef CONFIG_PXA25x
2915a40333SRussell King extern unsigned pxa25x_get_clk_frequency_khz(int);
3015a40333SRussell King #else
3115a40333SRussell King #define pxa25x_get_clk_frequency_khz(x)		(0)
3215a40333SRussell King #endif
3315a40333SRussell King 
3415a40333SRussell King #ifdef CONFIG_PXA27x
3515a40333SRussell King extern unsigned pxa27x_get_clk_frequency_khz(int);
3615a40333SRussell King #else
3715a40333SRussell King #define pxa27x_get_clk_frequency_khz(x)		(0)
3815a40333SRussell King #endif
3915a40333SRussell King 
4004fef228SEric Miao #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
4104fef228SEric Miao extern void pxa2xx_clear_reset_status(unsigned int);
4204fef228SEric Miao #else
4304fef228SEric Miao static inline void pxa2xx_clear_reset_status(unsigned int mask) {}
4404fef228SEric Miao #endif
4504fef228SEric Miao 
462c8086a5Seric miao #ifdef CONFIG_PXA3xx
472c8086a5Seric miao extern unsigned pxa3xx_get_clk_frequency_khz(int);
482c8086a5Seric miao #else
492c8086a5Seric miao #define pxa3xx_get_clk_frequency_khz(x)		(0)
502c8086a5Seric miao #endif
51c0165504Seric miao 
522eaa03b5SRafael J. Wysocki extern struct syscore_ops pxa_irq_syscore_ops;
532eaa03b5SRafael J. Wysocki extern struct syscore_ops pxa2xx_mfp_syscore_ops;
542eaa03b5SRafael J. Wysocki extern struct syscore_ops pxa3xx_mfp_syscore_ops;
55cc155c6fSRussell King 
56cc155c6fSRussell King void __init pxa_set_ffuart_info(void *info);
57cc155c6fSRussell King void __init pxa_set_btuart_info(void *info);
58cc155c6fSRussell King void __init pxa_set_stuart_info(void *info);
59cc155c6fSRussell King void __init pxa_set_hwuart_info(void *info);
60271a74fcSRussell King 
61*7b6d864bSRobin Holt void pxa_restart(enum reboot_mode, const char *);
62