xref: /linux/arch/arm/mach-pxa/generic.h (revision 15a4033354c68eb75e417ab60771f36212610820)
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 
121da177e4SLinus Torvalds struct sys_timer;
131da177e4SLinus Torvalds 
141da177e4SLinus Torvalds extern struct sys_timer pxa_timer;
15cd49104dSEric Miao extern void __init pxa_init_irq_low(void);
16cd49104dSEric Miao extern void __init pxa_init_irq_high(void);
17cd49104dSEric Miao extern void __init pxa_init_irq_gpio(int gpio_nr);
18cd49104dSEric Miao extern void __init pxa25x_init_irq(void);
19cd49104dSEric Miao extern void __init pxa27x_init_irq(void);
201da177e4SLinus Torvalds extern void __init pxa_map_io(void);
211da177e4SLinus Torvalds 
221da177e4SLinus Torvalds extern unsigned int get_clk_frequency_khz(int info);
231da177e4SLinus Torvalds 
241da177e4SLinus Torvalds #define SET_BANK(__nr,__start,__size) \
251da177e4SLinus Torvalds 	mi->bank[__nr].start = (__start), \
261da177e4SLinus Torvalds 	mi->bank[__nr].size = (__size), \
271da177e4SLinus Torvalds 	mi->bank[__nr].node = (((unsigned)(__start) - PHYS_OFFSET) >> 27)
281da177e4SLinus Torvalds 
29*15a40333SRussell King #ifdef CONFIG_PXA25x
30*15a40333SRussell King extern unsigned pxa25x_get_clk_frequency_khz(int);
31*15a40333SRussell King extern unsigned pxa25x_get_memclk_frequency_10khz(void);
32*15a40333SRussell King #else
33*15a40333SRussell King #define pxa25x_get_clk_frequency_khz(x)		(0)
34*15a40333SRussell King #define pxa25x_get_memclk_frequency_10khz()	(0)
35*15a40333SRussell King #endif
36*15a40333SRussell King 
37*15a40333SRussell King #ifdef CONFIG_PXA27x
38*15a40333SRussell King extern unsigned pxa27x_get_clk_frequency_khz(int);
39*15a40333SRussell King extern unsigned pxa27x_get_memclk_frequency_10khz(void);
40*15a40333SRussell King extern unsigned pxa27x_get_lcdclk_frequency_10khz(void);
41*15a40333SRussell King #else
42*15a40333SRussell King #define pxa27x_get_clk_frequency_khz(x)		(0)
43*15a40333SRussell King #define pxa27x_get_memclk_frequency_10khz()	(0)
44*15a40333SRussell King #define pxa27x_get_lcdclk_frequency_10khz()	(0)
45*15a40333SRussell King #endif
46*15a40333SRussell King 
47