]>
Commit | Line | Data |
---|---|---|
fa506a92 | 1 | /* |
4f6c8101 | 2 | * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h] |
177e8a5a SP |
3 | * |
4 | * Copyright (C) 2003 SAN People | |
5 | * Copyright (C) 2003 ATMEL | |
fa506a92 SP |
6 | * |
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 | * | |
fa506a92 | 12 | */ |
177e8a5a | 13 | |
fa506a92 SP |
14 | #ifndef __ASM_ARCH_HARDWARE_H |
15 | #define __ASM_ARCH_HARDWARE_H | |
16 | ||
17 | #include <asm/sizes.h> | |
18 | ||
177e8a5a | 19 | #if defined(CONFIG_AT91RM9200) |
98250e8e | 20 | #include <asm/arch-at91/at91rm9200.h> |
ab8fe79c | 21 | #define AT91_PMC_UHP AT91RM9200_PMC_UHP |
df486b1f | 22 | #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20) |
177e8a5a | 23 | #include <asm/arch/at91sam9260.h> |
1592ef85 | 24 | #define AT91_BASE_MCI AT91SAM9260_BASE_MCI |
0176d43e | 25 | #define AT91_BASE_SPI AT91SAM9260_BASE_SPI0 |
33825ec1 | 26 | #define AT91_BASE_SPI1 AT91SAM9260_BASE_SPI1 |
0176d43e SP |
27 | #define AT91_ID_UHP AT91SAM9260_ID_UHP |
28 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP | |
5ccc2d99 | 29 | #elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10) |
177e8a5a | 30 | #include <asm/arch/at91sam9261.h> |
d99a8ff6 SP |
31 | #define AT91_BASE_SPI AT91SAM9261_BASE_SPI0 |
32 | #define AT91_ID_UHP AT91SAM9261_ID_UHP | |
33 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP | |
177e8a5a SP |
34 | #elif defined(CONFIG_AT91SAM9263) |
35 | #include <asm/arch/at91sam9263.h> | |
8e429b3e SP |
36 | #define AT91_BASE_SPI AT91SAM9263_BASE_SPI0 |
37 | #define AT91_ID_UHP AT91SAM9263_ID_UHP | |
38 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP | |
177e8a5a SP |
39 | #elif defined(CONFIG_AT91SAM9RL) |
40 | #include <asm/arch/at91sam9rl.h> | |
2118ebb4 SP |
41 | #define AT91_BASE_SPI AT91SAM9RL_BASE_SPI |
42 | #define AT91_ID_UHP AT91SAM9RL_ID_UHP | |
22ee6473 SG |
43 | #elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) |
44 | #include <asm/arch/at91sam9g45.h> | |
45 | #define AT91_BASE_EMAC AT91SAM9G45_BASE_EMAC | |
46 | #define AT91_BASE_SPI AT91SAM9G45_BASE_SPI0 | |
47 | #define AT91_ID_UHP AT91SAM9G45_ID_UHPHS | |
48 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP | |
177e8a5a SP |
49 | #elif defined(CONFIG_AT91CAP9) |
50 | #include <asm/arch/at91cap9.h> | |
177e8a5a SP |
51 | #define AT91_BASE_SPI AT91CAP9_BASE_SPI0 |
52 | #define AT91_ID_UHP AT91CAP9_ID_UHP | |
53 | #define AT91_PMC_UHP AT91CAP9_PMC_UHP | |
54 | #elif defined(CONFIG_AT91X40) | |
55 | #include <asm/arch/at91x40.h> | |
56 | #else | |
57 | #error "Unsupported AT91 processor" | |
58 | #endif | |
fa506a92 | 59 | |
f0a2c7b4 II |
60 | /* External Memory Map */ |
61 | #define AT91_CHIPSELECT_0 0x10000000 | |
62 | #define AT91_CHIPSELECT_1 0x20000000 | |
63 | #define AT91_CHIPSELECT_2 0x30000000 | |
64 | #define AT91_CHIPSELECT_3 0x40000000 | |
65 | #define AT91_CHIPSELECT_4 0x50000000 | |
66 | #define AT91_CHIPSELECT_5 0x60000000 | |
67 | #define AT91_CHIPSELECT_6 0x70000000 | |
68 | #define AT91_CHIPSELECT_7 0x80000000 | |
69 | ||
70 | /* SDRAM */ | |
71 | #ifdef CONFIG_DRAM_BASE | |
72 | #define AT91_SDRAM_BASE CONFIG_DRAM_BASE | |
73 | #else | |
74 | #define AT91_SDRAM_BASE AT91_CHIPSELECT_1 | |
75 | #endif | |
76 | ||
dc39ae95 JCPV |
77 | /* Clocks */ |
78 | #define AT91_SLOW_CLOCK 32768 /* slow clock */ | |
79 | ||
fa506a92 | 80 | #endif |