Merge tag 'imx-soc-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo...
[pandora-kernel.git] / arch / arm / mach-at91 / at91rm9200.c
1 /*
2  * arch/arm/mach-at91/at91rm9200.c
3  *
4  *  Copyright (C) 2005 SAN People
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 as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  */
12
13 #include <linux/module.h>
14 #include <linux/clk/at91_pmc.h>
15
16 #include <asm/mach/map.h>
17 #include <asm/system_misc.h>
18 #include <mach/at91_st.h>
19 #include <mach/hardware.h>
20
21 #include "soc.h"
22 #include "generic.h"
23
24
25 static void at91rm9200_restart(enum reboot_mode reboot_mode, const char *cmd)
26 {
27         /*
28          * Perform a hardware reset with the use of the Watchdog timer.
29          */
30         at91_st_write(AT91_ST_WDMR, AT91_ST_RSTEN | AT91_ST_EXTEN | 1);
31         at91_st_write(AT91_ST_CR, AT91_ST_WDRST);
32 }
33
34 /* --------------------------------------------------------------------
35  *  AT91RM9200 processor initialization
36  * -------------------------------------------------------------------- */
37
38 static void __init at91rm9200_initialize(void)
39 {
40         arm_pm_idle = at91rm9200_idle;
41         arm_pm_restart = at91rm9200_restart;
42 }
43
44 AT91_SOC_START(at91rm9200)
45         .init = at91rm9200_initialize,
46 AT91_SOC_END