]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-at91/hardware.h
AT91: MCI: add SD/MMC driver using mmc framework
[karo-tx-uboot.git] / arch / arm / include / asm / arch-at91 / hardware.h
1 /*
2  * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h]
3  *
4  *  Copyright (C) 2003 SAN People
5  *  Copyright (C) 2003 ATMEL
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  *
12  */
13
14 #ifndef __ASM_ARCH_HARDWARE_H
15 #define __ASM_ARCH_HARDWARE_H
16
17 #include <asm/sizes.h>
18
19 #if defined(CONFIG_AT91RM9200)
20 #include <asm/arch-at91/at91rm9200.h>
21 #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20)
22 #include <asm/arch/at91sam9260.h>
23 #define AT91_BASE_MCI   AT91SAM9260_BASE_MCI
24 #define AT91_BASE_SPI   AT91SAM9260_BASE_SPI0
25 #define AT91_ID_UHP     AT91SAM9260_ID_UHP
26 #define AT91_PMC_UHP    AT91SAM926x_PMC_UHP
27 #elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
28 #include <asm/arch/at91sam9261.h>
29 #define AT91_BASE_SPI   AT91SAM9261_BASE_SPI0
30 #define AT91_ID_UHP     AT91SAM9261_ID_UHP
31 #define AT91_PMC_UHP    AT91SAM926x_PMC_UHP
32 #elif defined(CONFIG_AT91SAM9263)
33 #include <asm/arch/at91sam9263.h>
34 #define AT91_BASE_SPI   AT91SAM9263_BASE_SPI0
35 #define AT91_ID_UHP     AT91SAM9263_ID_UHP
36 #define AT91_PMC_UHP    AT91SAM926x_PMC_UHP
37 #elif defined(CONFIG_AT91SAM9RL)
38 #include <asm/arch/at91sam9rl.h>
39 #define AT91_BASE_SPI   AT91SAM9RL_BASE_SPI
40 #define AT91_ID_UHP     AT91SAM9RL_ID_UHP
41 #elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45)
42 #include <asm/arch/at91sam9g45.h>
43 #define AT91_BASE_EMAC  AT91SAM9G45_BASE_EMAC
44 #define AT91_BASE_SPI   AT91SAM9G45_BASE_SPI0
45 #define AT91_ID_UHP     AT91SAM9G45_ID_UHPHS
46 #define AT91_PMC_UHP    AT91SAM926x_PMC_UHP
47 #elif defined(CONFIG_AT91CAP9)
48 #include <asm/arch/at91cap9.h>
49 #define AT91_BASE_SPI   AT91CAP9_BASE_SPI0
50 #define AT91_ID_UHP     AT91CAP9_ID_UHP
51 #define AT91_PMC_UHP    AT91CAP9_PMC_UHP
52 #elif defined(CONFIG_AT91X40)
53 #include <asm/arch/at91x40.h>
54 #else
55 #error "Unsupported AT91 processor"
56 #endif
57
58 /* External Memory Map */
59 #define AT91_CHIPSELECT_0       0x10000000
60 #define AT91_CHIPSELECT_1       0x20000000
61 #define AT91_CHIPSELECT_2       0x30000000
62 #define AT91_CHIPSELECT_3       0x40000000
63 #define AT91_CHIPSELECT_4       0x50000000
64 #define AT91_CHIPSELECT_5       0x60000000
65 #define AT91_CHIPSELECT_6       0x70000000
66 #define AT91_CHIPSELECT_7       0x80000000
67
68 /* SDRAM */
69 #ifdef CONFIG_DRAM_BASE
70 #define AT91_SDRAM_BASE         CONFIG_DRAM_BASE
71 #else
72 #define AT91_SDRAM_BASE         AT91_CHIPSELECT_1
73 #endif
74
75 /* Clocks */
76 #define AT91_SLOW_CLOCK         32768           /* slow clock */
77
78 #endif