blob: de06a1004b55ca56d2c1543b71f832e5ee5a528d [file] [log] [blame]
Stelian Pop7d42a222008-01-31 21:15:53 +00001/*
Stelian Pop97904f72008-05-08 20:52:10 +02002 * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h]
Stelian Popc6381112008-03-26 19:52:31 +01003 *
4 * Copyright (C) 2003 SAN People
5 * Copyright (C) 2003 ATMEL
Stelian Pop7d42a222008-01-31 21:15:53 +00006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
Stelian Pop7d42a222008-01-31 21:15:53 +000012 */
Stelian Popc6381112008-03-26 19:52:31 +010013
Stelian Pop7d42a222008-01-31 21:15:53 +000014#ifndef __ASM_ARCH_HARDWARE_H
15#define __ASM_ARCH_HARDWARE_H
16
17#include <asm/sizes.h>
18
Stelian Popc6381112008-03-26 19:52:31 +010019#if defined(CONFIG_AT91RM9200)
20#include <asm/arch/at91rm9200.h>
Nicolas Ferre4ef545e2009-03-22 14:48:16 +010021#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20)
Stelian Popc6381112008-03-26 19:52:31 +010022#include <asm/arch/at91sam9260.h>
Stelian Pop78379932008-03-26 18:52:33 +010023#define AT91_BASE_SPI AT91SAM9260_BASE_SPI0
24#define AT91_ID_UHP AT91SAM9260_ID_UHP
25#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
Sedji Gaouaou97a031b2009-06-25 17:04:15 +020026#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
Stelian Popc6381112008-03-26 19:52:31 +010027#include <asm/arch/at91sam9261.h>
Stelian Pop61e69d72008-05-08 20:52:22 +020028#define AT91_BASE_SPI AT91SAM9261_BASE_SPI0
29#define AT91_ID_UHP AT91SAM9261_ID_UHP
30#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
Stelian Popc6381112008-03-26 19:52:31 +010031#elif defined(CONFIG_AT91SAM9263)
32#include <asm/arch/at91sam9263.h>
Stelian Pop69c925f2008-05-08 18:52:23 +020033#define AT91_BASE_SPI AT91SAM9263_BASE_SPI0
34#define AT91_ID_UHP AT91SAM9263_ID_UHP
35#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
Stelian Popc6381112008-03-26 19:52:31 +010036#elif defined(CONFIG_AT91SAM9RL)
37#include <asm/arch/at91sam9rl.h>
Stelian Pop0bf5cad2008-05-08 18:52:25 +020038#define AT91_BASE_SPI AT91SAM9RL_BASE_SPI
39#define AT91_ID_UHP AT91SAM9RL_ID_UHP
Sedji Gaouaou538566d2009-07-09 10:16:29 +020040#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45)
41#include <asm/arch/at91sam9g45.h>
42#define AT91_BASE_EMAC AT91SAM9G45_BASE_EMAC
43#define AT91_BASE_SPI AT91SAM9G45_BASE_SPI0
44#define AT91_ID_UHP AT91SAM9G45_ID_UHPHS
45#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
Stelian Popc6381112008-03-26 19:52:31 +010046#elif defined(CONFIG_AT91CAP9)
47#include <asm/arch/at91cap9.h>
Stelian Popc6381112008-03-26 19:52:31 +010048#define AT91_BASE_SPI AT91CAP9_BASE_SPI0
49#define AT91_ID_UHP AT91CAP9_ID_UHP
50#define AT91_PMC_UHP AT91CAP9_PMC_UHP
51#elif defined(CONFIG_AT91X40)
52#include <asm/arch/at91x40.h>
53#else
54#error "Unsupported AT91 processor"
55#endif
Stelian Pop7d42a222008-01-31 21:15:53 +000056
Ilko Iliev8b954a92009-04-16 21:30:48 +020057/* External Memory Map */
58#define AT91_CHIPSELECT_0 0x10000000
59#define AT91_CHIPSELECT_1 0x20000000
60#define AT91_CHIPSELECT_2 0x30000000
61#define AT91_CHIPSELECT_3 0x40000000
62#define AT91_CHIPSELECT_4 0x50000000
63#define AT91_CHIPSELECT_5 0x60000000
64#define AT91_CHIPSELECT_6 0x70000000
65#define AT91_CHIPSELECT_7 0x80000000
66
67/* SDRAM */
68#ifdef CONFIG_DRAM_BASE
69#define AT91_SDRAM_BASE CONFIG_DRAM_BASE
70#else
71#define AT91_SDRAM_BASE AT91_CHIPSELECT_1
72#endif
73
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020074/* Clocks */
75#define AT91_SLOW_CLOCK 32768 /* slow clock */
76
Stelian Pop7d42a222008-01-31 21:15:53 +000077#endif