mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
29ee506d0d
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Michael Turquette <mturquette@linaro.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/*
|
|
* arch/arm/mach-at91/at91rm9200.c
|
|
*
|
|
* 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>
|
|
#include <linux/clk/at91_pmc.h>
|
|
|
|
#include <asm/mach/map.h>
|
|
#include <asm/system_misc.h>
|
|
#include <mach/at91_st.h>
|
|
#include <mach/hardware.h>
|
|
|
|
#include "soc.h"
|
|
#include "generic.h"
|
|
|
|
|
|
static void at91rm9200_restart(enum reboot_mode reboot_mode, const char *cmd)
|
|
{
|
|
/*
|
|
* Perform a hardware reset with the use of the Watchdog timer.
|
|
*/
|
|
at91_st_write(AT91_ST_WDMR, AT91_ST_RSTEN | AT91_ST_EXTEN | 1);
|
|
at91_st_write(AT91_ST_CR, AT91_ST_WDRST);
|
|
}
|
|
|
|
/* --------------------------------------------------------------------
|
|
* AT91RM9200 processor initialization
|
|
* -------------------------------------------------------------------- */
|
|
|
|
static void __init at91rm9200_initialize(void)
|
|
{
|
|
arm_pm_idle = at91rm9200_idle;
|
|
arm_pm_restart = at91rm9200_restart;
|
|
}
|
|
|
|
AT91_SOC_START(at91rm9200)
|
|
.init = at91rm9200_initialize,
|
|
AT91_SOC_END
|