2006-01-10 00:05:41 +07:00
|
|
|
/*
|
2007-02-05 17:42:07 +07:00
|
|
|
* arch/arm/mach-at91/at91rm9200.c
|
2006-01-10 00:05:41 +07:00
|
|
|
*
|
|
|
|
* Copyright (C) 2005 SAN People
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
2013-10-11 14:37:45 +07:00
|
|
|
#include <linux/clk/at91_pmc.h>
|
2006-01-10 00:05:41 +07:00
|
|
|
|
|
|
|
#include <asm/mach/map.h>
|
2012-03-29 00:30:01 +07:00
|
|
|
#include <asm/system_misc.h>
|
2008-08-05 22:14:15 +07:00
|
|
|
#include <mach/at91_st.h>
|
2013-11-14 16:49:19 +07:00
|
|
|
#include <mach/hardware.h>
|
2006-01-10 00:05:41 +07:00
|
|
|
|
2011-04-23 14:28:34 +07:00
|
|
|
#include "soc.h"
|
2006-06-19 21:26:51 +07:00
|
|
|
#include "generic.h"
|
2006-09-27 16:50:59 +07:00
|
|
|
|
2011-08-02 21:21:36 +07:00
|
|
|
|
2013-07-09 06:01:40 +07:00
|
|
|
static void at91rm9200_restart(enum reboot_mode reboot_mode, const char *cmd)
|
2006-11-30 16:01:47 +07:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Perform a hardware reset with the use of the Watchdog timer.
|
|
|
|
*/
|
2012-02-20 17:07:39 +07:00
|
|
|
at91_st_write(AT91_ST_WDMR, AT91_ST_RSTEN | AT91_ST_EXTEN | 1);
|
|
|
|
at91_st_write(AT91_ST_CR, AT91_ST_WDRST);
|
2006-11-30 16:01:47 +07:00
|
|
|
}
|
|
|
|
|
2006-09-27 16:50:59 +07:00
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* AT91RM9200 processor initialization
|
|
|
|
* -------------------------------------------------------------------- */
|
|
|
|
|
2011-04-24 17:20:28 +07:00
|
|
|
static void __init at91rm9200_initialize(void)
|
2011-04-28 19:19:32 +07:00
|
|
|
{
|
2011-08-02 21:21:36 +07:00
|
|
|
arm_pm_idle = at91rm9200_idle;
|
2011-11-03 16:53:29 +07:00
|
|
|
arm_pm_restart = at91rm9200_restart;
|
2006-01-10 00:05:41 +07:00
|
|
|
}
|
|
|
|
|
2013-03-22 20:24:09 +07:00
|
|
|
AT91_SOC_START(at91rm9200)
|
2011-04-23 14:28:34 +07:00
|
|
|
.init = at91rm9200_initialize,
|
2012-08-16 16:36:55 +07:00
|
|
|
AT91_SOC_END
|