generic.h 1.1 KB
Newer Older
1
/*
2
 * linux/arch/arm/mach-at91/generic.h
3 4 5 6 7 8 9 10
 *
 *  Copyright (C) 2005 David Brownell
 *
 * 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.
 */

11 12 13
#ifndef _AT91_GENERIC_H
#define _AT91_GENERIC_H

14
#include <linux/of.h>
15
#include <linux/reboot.h>
16

17
 /* Map io */
18
extern void __init at91_map_io(void);
19
extern void __init at91_alt_map_io(void);
20

A
Andrew Victor 已提交
21
 /* Timer */
S
Stephen Warren 已提交
22
extern void at91rm9200_timer_init(void);
23

24
/* idle */
25
extern void at91rm9200_idle(void);
26 27
extern void at91sam9_idle(void);

28 29
/* Matrix */
extern void at91_ioremap_matrix(u32 base_addr);
30 31 32


#ifdef CONFIG_PM
33 34 35 36
extern void __init at91rm9200_pm_init(void);
extern void __init at91sam9260_pm_init(void);
extern void __init at91sam9g45_pm_init(void);
extern void __init at91sam9x5_pm_init(void);
37
#else
38 39 40 41
void __init at91rm9200_pm_init(void) { }
void __init at91sam9260_pm_init(void) { }
void __init at91sam9g45_pm_init(void) { }
void __init at91sam9x5_pm_init(void) { }
42 43
#endif

44
#endif /* _AT91_GENERIC_H */