blob: fae7a703813ca7d84a8ab344760fd314e7a30883 [file] [log] [blame]
SAN People73a59c12006-01-09 17:05:41 +00001/*
Andrew Victor9d041262007-02-05 11:42:07 +01002 * linux/arch/arm/mach-at91/generic.h
SAN People73a59c12006-01-09 17:05:41 +00003 *
4 * Copyright (C) 2005 David Brownell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
Maxime Ripard1bd59db2014-07-01 11:33:15 +020011#ifndef _AT91_GENERIC_H
12#define _AT91_GENERIC_H
13
Nicolas Ferre8014d6f2012-02-14 18:08:14 +010014#include <linux/of.h>
Robin Holt7b6d8642013-07-08 16:01:40 -070015#include <linux/reboot.h>
Jean-Christophe PLAGNIOL-VILLARDbd602992011-02-02 07:27:07 +010016
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080017 /* Map io */
Jean-Christophe PLAGNIOL-VILLARD21d08b92011-04-23 15:28:34 +080018extern void __init at91_map_io(void);
Nicolas Ferre726d32b2014-09-15 18:15:55 +020019extern void __init at91_alt_map_io(void);
Jean-Christophe PLAGNIOL-VILLARDf0051d82011-05-10 03:20:09 +080020extern void __init at91_init_sram(int bank, unsigned long base,
21 unsigned int length);
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080022
Andrew Victor2eeaaa22006-09-27 10:50:59 +010023 /* Processors */
Jean-Christophe PLAGNIOL-VILLARD2b11ea52012-02-28 13:57:51 +080024extern void __init at91_dt_initialize(void);
Andrew Victor2eeaaa22006-09-27 10:50:59 +010025
Andrew Victorba854e12006-07-05 17:22:52 +010026 /* Timer */
Stephen Warren6bb27d72012-11-08 12:40:59 -070027extern void at91rm9200_timer_init(void);
SAN People73a59c12006-01-09 17:05:41 +000028
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080029/* idle */
30extern void at91sam9_idle(void);
31
Jean-Christophe PLAGNIOL-VILLARD4342d642011-11-27 23:15:50 +080032/* Matrix */
33extern void at91_ioremap_matrix(u32 base_addr);
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010034
35
36#ifdef CONFIG_PM
37extern void __init at91_rm9200_pm_init(void);
38extern void __init at91_sam9260_pm_init(void);
39extern void __init at91_sam9g45_pm_init(void);
40#else
41void __init at91_rm9200_pm_init(void) { }
42void __init at91_sam9260_pm_init(void) { }
43void __init at91_sam9g45_pm_init(void) { }
44#endif
45
Maxime Ripard1bd59db2014-07-01 11:33:15 +020046#endif /* _AT91_GENERIC_H */