at91sam9g45.c 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*
 *  Chip-specific setup code for the AT91SAM9G45 family
 *
 *  Copyright (C) 2009 Atmel Corporation.
 *
 * 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.
 *
 */

13
#include <asm/system_misc.h>
14
#include <asm/irq.h>
15
#include <mach/cpu.h>
16
#include <mach/hardware.h>
17

18
#include "soc.h"
19 20 21 22 23 24
#include "generic.h"

/* --------------------------------------------------------------------
 *  AT91SAM9G45 processor initialization
 * -------------------------------------------------------------------- */

25
static void __init at91sam9g45_map_io(void)
26
{
27
	at91_init_sram(0, AT91SAM9G45_SRAM_BASE, AT91SAM9G45_SRAM_SIZE);
28
}
29

30
static void __init at91sam9g45_initialize(void)
31
{
32
	arm_pm_idle = at91sam9_idle;
33

34
	at91_sysirq_mask_rtc(AT91SAM9G45_BASE_RTC);
35
	at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT);
36 37
}

38 39
static void __init at91sam9g45_init_time(void)
{
40
	at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
41 42
}

43
AT91_SOC_START(at91sam9g45)
44 45
	.map_io = at91sam9g45_map_io,
	.init = at91sam9g45_initialize,
46
	.init_time = at91sam9g45_init_time,
47
AT91_SOC_END