blob: e7ad148640837d45a9038e58cf7610e3cf35e2a6 [file] [log] [blame]
Andrew Victorb2c65612007-02-08 09:42:40 +01001/*
2 * arch/arm/mach-at91/at91sam9263.c
3 *
4 * Copyright (C) 2007 Atmel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 */
12
David Howells9f97da72012-03-28 18:30:01 +010013#include <asm/system_misc.h>
Uwe Kleine-Königac11a1d2013-11-14 10:49:19 +010014#include <mach/hardware.h>
Andrew Victorb2c65612007-02-08 09:42:40 +010015
Jean-Christophe PLAGNIOL-VILLARD21d08b92011-04-23 15:28:34 +080016#include "soc.h"
Andrew Victorb2c65612007-02-08 09:42:40 +010017#include "generic.h"
Andrew Victorb2c65612007-02-08 09:42:40 +010018
Andrew Victorb2c65612007-02-08 09:42:40 +010019/* --------------------------------------------------------------------
20 * AT91SAM9263 processor initialization
21 * -------------------------------------------------------------------- */
22
Jean-Christophe PLAGNIOL-VILLARD21d08b92011-04-23 15:28:34 +080023static void __init at91sam9263_map_io(void)
Andrew Victorb2c65612007-02-08 09:42:40 +010024{
Jean-Christophe PLAGNIOL-VILLARDf0051d82011-05-10 03:20:09 +080025 at91_init_sram(0, AT91SAM9263_SRAM0_BASE, AT91SAM9263_SRAM0_SIZE);
26 at91_init_sram(1, AT91SAM9263_SRAM1_BASE, AT91SAM9263_SRAM1_SIZE);
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080027}
Andrew Victorb2c65612007-02-08 09:42:40 +010028
Jean-Christophe PLAGNIOL-VILLARD46539372011-04-24 18:20:28 +080029static void __init at91sam9263_initialize(void)
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080030{
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080031 arm_pm_idle = at91sam9_idle;
Andrew Victorb2c65612007-02-08 09:42:40 +010032
Johan Hovold94c4c792013-10-16 11:56:15 +020033 at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT0);
34 at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT1);
Maxime Ripard0f391f12014-07-01 11:33:25 +020035}
36
Ludovic Desroches84ddb082013-03-22 13:24:09 +000037AT91_SOC_START(at91sam9263)
Jean-Christophe PLAGNIOL-VILLARD21d08b92011-04-23 15:28:34 +080038 .map_io = at91sam9263_map_io,
39 .init = at91sam9263_initialize,
Jean-Christophe PLAGNIOL-VILLARD8d39e0fd02012-08-16 17:36:55 +080040AT91_SOC_END