Fixes the following missing includes: arch/arm/mach-at91/at91sam9g45.c: In function 'at91sam9g45_init_time': arch/arm/mach-at91/at91sam9g45.c:39:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function) at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS); ^ arch/arm/mach-at91/at91sam9g45.c:39:23: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [arch/arm/mach-at91/at91sam9g45.o] Error 1 arch/arm/mach-at91/at91sam9rl.c: In function 'at91sam9rl_init_time': arch/arm/mach-at91/at91sam9rl.c:51:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function) at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS); Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Olof Johansson <olof@lixom.net>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#include <asm/system_misc.h>
|
|
#include <asm/irq.h>
|
|
#include <mach/cpu.h>
|
|
#include <mach/hardware.h>
|
|
|
|
#include "soc.h"
|
|
#include "generic.h"
|
|
|
|
/* --------------------------------------------------------------------
|
|
* AT91SAM9G45 processor initialization
|
|
* -------------------------------------------------------------------- */
|
|
|
|
static void __init at91sam9g45_map_io(void)
|
|
{
|
|
at91_init_sram(0, AT91SAM9G45_SRAM_BASE, AT91SAM9G45_SRAM_SIZE);
|
|
}
|
|
|
|
static void __init at91sam9g45_initialize(void)
|
|
{
|
|
arm_pm_idle = at91sam9_idle;
|
|
|
|
at91_sysirq_mask_rtc(AT91SAM9G45_BASE_RTC);
|
|
at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT);
|
|
}
|
|
|
|
static void __init at91sam9g45_init_time(void)
|
|
{
|
|
at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
|
|
}
|
|
|
|
AT91_SOC_START(at91sam9g45)
|
|
.map_io = at91sam9g45_map_io,
|
|
.init = at91sam9g45_initialize,
|
|
.init_time = at91sam9g45_init_time,
|
|
AT91_SOC_END
|