Stelian Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 1 | /* |
Stelian Pop | 97904f7 | 2008-05-08 20:52:10 +0200 | [diff] [blame] | 2 | * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h] |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2003 SAN People |
| 5 | * Copyright (C) 2003 ATMEL |
Stelian Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 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 | * |
Stelian Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 12 | */ |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 13 | |
Stelian Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 14 | #ifndef __ASM_ARCH_HARDWARE_H |
| 15 | #define __ASM_ARCH_HARDWARE_H |
| 16 | |
| 17 | #include <asm/sizes.h> |
| 18 | |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 19 | #if defined(CONFIG_AT91RM9200) |
| 20 | #include <asm/arch/at91rm9200.h> |
Nicolas Ferre | 4ef545e | 2009-03-22 14:48:16 +0100 | [diff] [blame] | 21 | #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20) |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 22 | #include <asm/arch/at91sam9260.h> |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 23 | #define AT91_BASE_SPI AT91SAM9260_BASE_SPI0 |
| 24 | #define AT91_ID_UHP AT91SAM9260_ID_UHP |
| 25 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP |
Sedji Gaouaou | 97a031b | 2009-06-25 17:04:15 +0200 | [diff] [blame^] | 26 | #elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10) |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 27 | #include <asm/arch/at91sam9261.h> |
Stelian Pop | 61e69d7 | 2008-05-08 20:52:22 +0200 | [diff] [blame] | 28 | #define AT91_BASE_SPI AT91SAM9261_BASE_SPI0 |
| 29 | #define AT91_ID_UHP AT91SAM9261_ID_UHP |
| 30 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 31 | #elif defined(CONFIG_AT91SAM9263) |
| 32 | #include <asm/arch/at91sam9263.h> |
Stelian Pop | 69c925f | 2008-05-08 18:52:23 +0200 | [diff] [blame] | 33 | #define AT91_BASE_SPI AT91SAM9263_BASE_SPI0 |
| 34 | #define AT91_ID_UHP AT91SAM9263_ID_UHP |
| 35 | #define AT91_PMC_UHP AT91SAM926x_PMC_UHP |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 36 | #elif defined(CONFIG_AT91SAM9RL) |
| 37 | #include <asm/arch/at91sam9rl.h> |
Stelian Pop | 0bf5cad | 2008-05-08 18:52:25 +0200 | [diff] [blame] | 38 | #define AT91_BASE_SPI AT91SAM9RL_BASE_SPI |
| 39 | #define AT91_ID_UHP AT91SAM9RL_ID_UHP |
Sedji Gaouaou | 538566d | 2009-07-09 10:16:29 +0200 | [diff] [blame] | 40 | #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 Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 46 | #elif defined(CONFIG_AT91CAP9) |
| 47 | #include <asm/arch/at91cap9.h> |
Stelian Pop | c638111 | 2008-03-26 19:52:31 +0100 | [diff] [blame] | 48 | #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 Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 56 | |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 57 | /* 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-VILLARD | 23164f1 | 2009-04-16 21:30:44 +0200 | [diff] [blame] | 74 | /* Clocks */ |
| 75 | #define AT91_SLOW_CLOCK 32768 /* slow clock */ |
| 76 | |
Stelian Pop | 7d42a22 | 2008-01-31 21:15:53 +0000 | [diff] [blame] | 77 | #endif |