diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
commit | b4b7a4ef097f288f724420b473dbf92a89c0ab7e (patch) | |
tree | 23ad8101e3e77c32a8d1e1b95a9c1cd7f7a475b7 /arch/arm/plat-s3c24xx/devs.c | |
parent | e9ce335df51ff782035a15c261a3c0c9892a1767 (diff) | |
parent | a3d3203e4bb40f253b1541e310dc0f9305be7c84 (diff) |
Merge branch 'master' into for-linus
Conflicts:
block/Kconfig
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx/devs.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index 7f686a31e672..8c6de1c9968f 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <plat/regs-serial.h> | 33 | #include <plat/regs-serial.h> |
34 | #include <plat/udc.h> | 34 | #include <plat/udc.h> |
35 | #include <plat/mci.h> | ||
35 | 36 | ||
36 | #include <plat/devs.h> | 37 | #include <plat/devs.h> |
37 | #include <plat/cpu.h> | 38 | #include <plat/cpu.h> |
@@ -112,34 +113,6 @@ struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { | |||
112 | }, | 113 | }, |
113 | }; | 114 | }; |
114 | 115 | ||
115 | /* yart devices */ | ||
116 | |||
117 | static struct platform_device s3c24xx_uart_device0 = { | ||
118 | .id = 0, | ||
119 | }; | ||
120 | |||
121 | static struct platform_device s3c24xx_uart_device1 = { | ||
122 | .id = 1, | ||
123 | }; | ||
124 | |||
125 | static struct platform_device s3c24xx_uart_device2 = { | ||
126 | .id = 2, | ||
127 | }; | ||
128 | |||
129 | static struct platform_device s3c24xx_uart_device3 = { | ||
130 | .id = 3, | ||
131 | }; | ||
132 | |||
133 | struct platform_device *s3c24xx_uart_src[4] = { | ||
134 | &s3c24xx_uart_device0, | ||
135 | &s3c24xx_uart_device1, | ||
136 | &s3c24xx_uart_device2, | ||
137 | &s3c24xx_uart_device3, | ||
138 | }; | ||
139 | |||
140 | struct platform_device *s3c24xx_uart_devs[4] = { | ||
141 | }; | ||
142 | |||
143 | /* LCD Controller */ | 116 | /* LCD Controller */ |
144 | 117 | ||
145 | static struct resource s3c_lcd_resource[] = { | 118 | static struct resource s3c_lcd_resource[] = { |
@@ -185,9 +158,27 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd) | |||
185 | } | 158 | } |
186 | 159 | ||
187 | /* Touchscreen */ | 160 | /* Touchscreen */ |
161 | |||
162 | static struct resource s3c_ts_resource[] = { | ||
163 | [0] = { | ||
164 | .start = S3C24XX_PA_ADC, | ||
165 | .end = S3C24XX_PA_ADC + S3C24XX_SZ_ADC - 1, | ||
166 | .flags = IORESOURCE_MEM, | ||
167 | }, | ||
168 | [1] = { | ||
169 | .start = IRQ_TC, | ||
170 | .end = IRQ_TC, | ||
171 | .flags = IORESOURCE_IRQ, | ||
172 | }, | ||
173 | |||
174 | }; | ||
175 | |||
188 | struct platform_device s3c_device_ts = { | 176 | struct platform_device s3c_device_ts = { |
189 | .name = "s3c2410-ts", | 177 | .name = "s3c2410-ts", |
190 | .id = -1, | 178 | .id = -1, |
179 | .dev.parent = &s3c_device_adc.dev, | ||
180 | .num_resources = ARRAY_SIZE(s3c_ts_resource), | ||
181 | .resource = s3c_ts_resource, | ||
191 | }; | 182 | }; |
192 | EXPORT_SYMBOL(s3c_device_ts); | 183 | EXPORT_SYMBOL(s3c_device_ts); |
193 | 184 | ||
@@ -379,6 +370,18 @@ struct platform_device s3c_device_sdi = { | |||
379 | 370 | ||
380 | EXPORT_SYMBOL(s3c_device_sdi); | 371 | EXPORT_SYMBOL(s3c_device_sdi); |
381 | 372 | ||
373 | void s3c24xx_mci_set_platdata(struct s3c24xx_mci_pdata *pdata) | ||
374 | { | ||
375 | struct s3c24xx_mci_pdata *npd; | ||
376 | |||
377 | npd = kmemdup(pdata, sizeof(struct s3c24xx_mci_pdata), GFP_KERNEL); | ||
378 | if (!npd) | ||
379 | printk(KERN_ERR "%s: no memory to copy pdata", __func__); | ||
380 | |||
381 | s3c_device_sdi.dev.platform_data = npd; | ||
382 | } | ||
383 | |||
384 | |||
382 | /* SPI (0) */ | 385 | /* SPI (0) */ |
383 | 386 | ||
384 | static struct resource s3c_spi0_resource[] = { | 387 | static struct resource s3c_spi0_resource[] = { |