blob: fd7ea39b78c03c4dd5e4124ce33294c0ef6d4bea [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm/mach-pxa/generic.h
3 *
4 * Author: Nicolas Pitre
5 * Copyright: MontaVista Software Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
Lennert Buytenheka3f4c922010-11-29 11:18:26 +010012struct irq_data;
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Stephen Warren6bb27d72012-11-08 12:40:59 -070014extern void pxa_timer_init(void);
Marek Vasut851982c2010-10-11 02:20:19 +020015
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern void __init pxa_map_io(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18extern unsigned int get_clk_frequency_khz(int info);
19
20#define SET_BANK(__nr,__start,__size) \
21 mi->bank[__nr].start = (__start), \
Russell Kingbe370302010-05-07 17:40:33 +010022 mi->bank[__nr].size = (__size)
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
eric miao3d3934c2008-02-03 15:49:09 +080024#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
25
Russell King15a40332007-08-20 10:07:44 +010026#ifdef CONFIG_PXA25x
27extern unsigned pxa25x_get_clk_frequency_khz(int);
Russell King15a40332007-08-20 10:07:44 +010028#else
29#define pxa25x_get_clk_frequency_khz(x) (0)
Russell King15a40332007-08-20 10:07:44 +010030#endif
31
32#ifdef CONFIG_PXA27x
33extern unsigned pxa27x_get_clk_frequency_khz(int);
Russell King15a40332007-08-20 10:07:44 +010034#else
35#define pxa27x_get_clk_frequency_khz(x) (0)
Russell King15a40332007-08-20 10:07:44 +010036#endif
37
Eric Miao04fef222008-07-29 14:26:00 +080038#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
39extern void pxa2xx_clear_reset_status(unsigned int);
40#else
41static inline void pxa2xx_clear_reset_status(unsigned int mask) {}
42#endif
43
eric miao2c8086a2007-09-11 19:13:17 -070044#ifdef CONFIG_PXA3xx
45extern unsigned pxa3xx_get_clk_frequency_khz(int);
eric miao2c8086a2007-09-11 19:13:17 -070046#else
47#define pxa3xx_get_clk_frequency_khz(x) (0)
eric miao2c8086a2007-09-11 19:13:17 -070048#endif
eric miaoc01655042008-01-28 23:00:02 +000049
Rafael J. Wysocki2eaa03b2011-04-22 22:03:11 +020050extern struct syscore_ops pxa_irq_syscore_ops;
Rafael J. Wysocki2eaa03b2011-04-22 22:03:11 +020051extern struct syscore_ops pxa2xx_mfp_syscore_ops;
52extern struct syscore_ops pxa3xx_mfp_syscore_ops;
Russell Kingcc155c62009-11-09 13:34:08 +080053
54void __init pxa_set_ffuart_info(void *info);
55void __init pxa_set_btuart_info(void *info);
56void __init pxa_set_stuart_info(void *info);
57void __init pxa_set_hwuart_info(void *info);
Russell King271a74f2011-11-04 14:15:53 +000058
59void pxa_restart(char, const char *);