diff options
author | Robert Schwebel <robert@schwebel.de> | 2008-01-08 02:44:23 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-28 08:13:20 -0500 |
commit | 34e31d871ee4b6a9f6c5504da7d6dcc24967844c (patch) | |
tree | ab6f518113f9d13445c514ad5f36f0c5e2b6167f /include/asm-arm/arch-pxa/pcm027.h | |
parent | e7b3dc7ef1e27fd5713a0df71f82c0a27de1c2eb (diff) |
[ARM] 4744/1: pcm027: add support for phyCORE-PXA270 CPU module
This patch adds main support for the generic phyCORE-PXA270 CPU module
(aka PCM-027). Its as generic as possible to support any kind of baseboard.
Note: Neither the CPU module nor the pcm027.c implementation can work without
a baseboard support. Baseboard support can be added by the PCM-990 or any
custom variant.
V2:
After comments by Eric Miao:
- Currently unsupported devices moved into separate patch
- direct call of baseboard initialisation
V3:
After comments by Russell King
- sort include files
- setting RTC bit for power control removed
- style problems fixed (discovered by checkpatch.pl)
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-pxa/pcm027.h')
-rw-r--r-- | include/asm-arm/arch-pxa/pcm027.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/pcm027.h b/include/asm-arm/arch-pxa/pcm027.h new file mode 100644 index 000000000000..7beae1472c3e --- /dev/null +++ b/include/asm-arm/arch-pxa/pcm027.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/pcm027.h | ||
3 | * | ||
4 | * (c) 2003 Phytec Messtechnik GmbH <armlinux@phytec.de> | ||
5 | * (c) 2007 Juergen Beisert <j.beisert@pengutronix.de> | ||
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 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | /* | ||
23 | * Definitions of CPU card resources only | ||
24 | */ | ||
25 | |||
26 | /* I2C RTC */ | ||
27 | #define PCM027_RTC_IRQ_GPIO 0 | ||
28 | #define PCM027_RTC_IRQ IRQ_GPIO(PCM027_RTC_IRQ_GPIO) | ||
29 | #define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING | ||
30 | #define ADR_PCM027_RTC 0x51 /* I2C address */ | ||
31 | |||
32 | /* I2C EEPROM */ | ||
33 | #define ADR_PCM027_EEPROM 0x54 /* I2C address */ | ||
34 | |||
35 | /* Ethernet chip (SMSC91C111) */ | ||
36 | #define PCM027_ETH_IRQ_GPIO 52 | ||
37 | #define PCM027_ETH_IRQ IRQ_GPIO(PCM027_ETH_IRQ_GPIO) | ||
38 | #define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING | ||
39 | #define PCM027_ETH_PHYS PXA_CS5_PHYS | ||
40 | #define PCM027_ETH_SIZE (1*1024*1024) | ||
41 | |||
42 | /* CAN controller SJA1000 (unsupported yet) */ | ||
43 | #define PCM027_CAN_IRQ_GPIO 114 | ||
44 | #define PCM027_CAN_IRQ IRQ_GPIO(PCM027_CAN_IRQ_GPIO) | ||
45 | #define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING | ||
46 | #define PCM027_CAN_PHYS 0x22000000 | ||
47 | #define PCM027_CAN_SIZE 0x100 | ||
48 | |||
49 | /* SPI GPIO expander (unsupported yet) */ | ||
50 | #define PCM027_EGPIO_IRQ_GPIO 27 | ||
51 | #define PCM027_EGPIO_IRQ IRQ_GPIO(PCM027_EGPIO_IRQ_GPIO) | ||
52 | #define PCM027_EGPIO_IRQ_EDGE IRQ_TYPE_EDGE_FALLING | ||
53 | #define PCM027_EGPIO_CS 24 | ||
54 | /* | ||
55 | * TODO: Switch this pin from dedicated usage to GPIO if | ||
56 | * more than the MAX7301 device is connected to this SPI bus | ||
57 | */ | ||
58 | #define PCM027_EGPIO_CS_MODE GPIO24_SFRM_MD | ||
59 | |||
60 | /* Flash memory */ | ||
61 | #define PCM027_FLASH_PHYS 0x00000000 | ||
62 | #define PCM027_FLASH_SIZE 0x02000000 | ||
63 | |||
64 | /* onboard LEDs connected to GPIO */ | ||
65 | #define PCM027_LED_CPU 90 | ||
66 | #define PCM027_LED_HEARD_BEAT 91 | ||
67 | |||
68 | /* | ||
69 | * This CPU module needs a baseboard to work. After basic initializing | ||
70 | * its own devices, it calls baseboard's init function. | ||
71 | * TODO: Add your own basebaord init function and call it from | ||
72 | * inside pcm027_init(). This example here is for the developmen board. | ||
73 | * Refer pcm990-baseboard.c | ||
74 | */ | ||
75 | extern void pcm990_baseboard_init(void); | ||