diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-06-29 11:23:47 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-29 11:23:47 -0400 |
commit | a144a5633c1e625c3134c2ce8d549a054468fd98 (patch) | |
tree | 3dcb1d6821ee465bb804c786b59c6dabc5c61da1 /arch/arm/mach-omap2/devices.c | |
parent | 8fc5ffa063f6551c9e6dd66cab89c46ad41e59c5 (diff) | |
parent | 3cbc96050b02d8e5764bd0970067ef294737e324 (diff) |
Merge omap tree
* master.kernel.org:/pub/scm/linux/kernel/git/tmlind/linux-omap-upstream: (26 commits)
ARM: OMAP: Multiplexing for 24xx GPMC wait pin monitoring
ARM: OMAP: Fix SRAM to use MT_MEMORY instead of MT_DEVICE
ARM: OMAP: Update dmtimers
ARM: OMAP: Make clock variables static
ARM: OMAP: Fix GPMC compilation when DEBUG is defined
ARM: OMAP: Mux updates for external DMA and GPIO
ARM: OMAP: Add OMAP_TAG_CAMERA_SENSOR
ARM: OMAP: Add initial 24xx suspend support
ARM: OMAP: Update cpufreq support for 24xx
ARM: OMAP: Add GPMC support for OMAP2
ARM: OMAP: Fix DMA channel irq handling for omap24xx
ARM: OMAP: OMAP2 DMA burst support
ARM: OMAP: Fix 32 kHz timer and modify GP timer to use GPT1
ARM: OMAP: Port dmtimers to OMAP2 and implement PWM support
ARM: OMAP: Correct two bugs in arch/arm/mach-omap2/clock.c
ARM: OMAP: Register the 24xx McSPI device
ARM: OMAP: Add bitbank SPI driver for Innovator 1510 touchscreen
ARM: OMAP: Aic23 alsa platform driver code for board-innovator
ARM: OMAP: Fix GPIO IRQ mask handling
ARM: OMAP: DMA transfer parameter configuration fix
...
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index fb7f91da1aad..5139677e4266 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -105,6 +105,51 @@ static inline void omap_init_sti(void) | |||
105 | static inline void omap_init_sti(void) {} | 105 | static inline void omap_init_sti(void) {} |
106 | #endif | 106 | #endif |
107 | 107 | ||
108 | #if defined(CONFIG_SPI_OMAP24XX) | ||
109 | |||
110 | #include <asm/arch/mcspi.h> | ||
111 | |||
112 | #define OMAP2_MCSPI1_BASE 0x48098000 | ||
113 | #define OMAP2_MCSPI2_BASE 0x4809a000 | ||
114 | |||
115 | /* FIXME: use resources instead */ | ||
116 | |||
117 | static struct omap2_mcspi_platform_config omap2_mcspi1_config = { | ||
118 | .base = io_p2v(OMAP2_MCSPI1_BASE), | ||
119 | .num_cs = 4, | ||
120 | }; | ||
121 | |||
122 | struct platform_device omap2_mcspi1 = { | ||
123 | .name = "omap2_mcspi", | ||
124 | .id = 1, | ||
125 | .dev = { | ||
126 | .platform_data = &omap2_mcspi1_config, | ||
127 | }, | ||
128 | }; | ||
129 | |||
130 | static struct omap2_mcspi_platform_config omap2_mcspi2_config = { | ||
131 | .base = io_p2v(OMAP2_MCSPI2_BASE), | ||
132 | .num_cs = 2, | ||
133 | }; | ||
134 | |||
135 | struct platform_device omap2_mcspi2 = { | ||
136 | .name = "omap2_mcspi", | ||
137 | .id = 2, | ||
138 | .dev = { | ||
139 | .platform_data = &omap2_mcspi2_config, | ||
140 | }, | ||
141 | }; | ||
142 | |||
143 | static void omap_init_mcspi(void) | ||
144 | { | ||
145 | platform_device_register(&omap2_mcspi1); | ||
146 | platform_device_register(&omap2_mcspi2); | ||
147 | } | ||
148 | |||
149 | #else | ||
150 | static inline void omap_init_mcspi(void) {} | ||
151 | #endif | ||
152 | |||
108 | /*-------------------------------------------------------------------------*/ | 153 | /*-------------------------------------------------------------------------*/ |
109 | 154 | ||
110 | static int __init omap2_init_devices(void) | 155 | static int __init omap2_init_devices(void) |
@@ -113,6 +158,7 @@ static int __init omap2_init_devices(void) | |||
113 | * in alphabetical order so they're easier to sort through. | 158 | * in alphabetical order so they're easier to sort through. |
114 | */ | 159 | */ |
115 | omap_init_i2c(); | 160 | omap_init_i2c(); |
161 | omap_init_mcspi(); | ||
116 | omap_init_sti(); | 162 | omap_init_sti(); |
117 | 163 | ||
118 | return 0; | 164 | return 0; |