blob: 086e27a79f51cdeba175c64c4e5f6bfd7f07d5ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <common.h>
#include <init.h>
#include <restart.h>
#include <mach/at91sam9x5.h>
#include <mach/board.h>
#include <mach/at91_rstc.h>
static void at91sam9x5_restart(struct restart_handler *rst)
{
at91sam9g45_reset(IOMEM(AT91SAM9X5_BASE_DDRSDRC0),
IOMEM(AT91SAM9X5_BASE_RSTC + AT91_RSTC_CR));
}
static int at91sam9x5_initialize(void)
{
restart_handler_register_fn("soc", at91sam9x5_restart);
return 0;
}
coredevice_initcall(at91sam9x5_initialize);
|