generic.c (1ff8392c32a2645d2665ca779ecb91bb29361c13) generic.c (e09d02e123fb6944af23a0697369ebcfc15acf73)
1/*
2 * linux/arch/arm/mach-pxa/generic.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code common to all PXA machines.

--- 229 unchanged lines hidden (view full) ---

238 .start = IRQ_MMC,
239 .end = IRQ_MMC,
240 .flags = IORESOURCE_IRQ,
241 },
242};
243
244static u64 pxamci_dmamask = 0xffffffffUL;
245
1/*
2 * linux/arch/arm/mach-pxa/generic.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code common to all PXA machines.

--- 229 unchanged lines hidden (view full) ---

238 .start = IRQ_MMC,
239 .end = IRQ_MMC,
240 .flags = IORESOURCE_IRQ,
241 },
242};
243
244static u64 pxamci_dmamask = 0xffffffffUL;
245
246struct platform_device pxamci_device = {
246struct platform_device pxa_device_mci = {
247 .name = "pxa2xx-mci",
248 .id = -1,
249 .dev = {
250 .dma_mask = &pxamci_dmamask,
251 .coherent_dma_mask = 0xffffffff,
252 },
253 .num_resources = ARRAY_SIZE(pxamci_resources),
254 .resource = pxamci_resources,
255};
256
257void __init pxa_set_mci_info(struct pxamci_platform_data *info)
258{
247 .name = "pxa2xx-mci",
248 .id = -1,
249 .dev = {
250 .dma_mask = &pxamci_dmamask,
251 .coherent_dma_mask = 0xffffffff,
252 },
253 .num_resources = ARRAY_SIZE(pxamci_resources),
254 .resource = pxamci_resources,
255};
256
257void __init pxa_set_mci_info(struct pxamci_platform_data *info)
258{
259 pxamci_device.dev.platform_data = info;
259 pxa_device_mci.dev.platform_data = info;
260}
261
262
263static struct pxa2xx_udc_mach_info pxa_udc_info;
264
265void __init pxa_set_udc_info(struct pxa2xx_udc_mach_info *info)
266{
267 memcpy(&pxa_udc_info, info, sizeof *info);

--- 9 unchanged lines hidden (view full) ---

277 .start = IRQ_USB,
278 .end = IRQ_USB,
279 .flags = IORESOURCE_IRQ,
280 },
281};
282
283static u64 udc_dma_mask = ~(u32)0;
284
260}
261
262
263static struct pxa2xx_udc_mach_info pxa_udc_info;
264
265void __init pxa_set_udc_info(struct pxa2xx_udc_mach_info *info)
266{
267 memcpy(&pxa_udc_info, info, sizeof *info);

--- 9 unchanged lines hidden (view full) ---

277 .start = IRQ_USB,
278 .end = IRQ_USB,
279 .flags = IORESOURCE_IRQ,
280 },
281};
282
283static u64 udc_dma_mask = ~(u32)0;
284
285struct platform_device pxaudc_device = {
285struct platform_device pxa_device_udc = {
286 .name = "pxa2xx-udc",
287 .id = -1,
288 .resource = pxa2xx_udc_resources,
289 .num_resources = ARRAY_SIZE(pxa2xx_udc_resources),
290 .dev = {
291 .platform_data = &pxa_udc_info,
292 .dma_mask = &udc_dma_mask,
293 }

--- 9 unchanged lines hidden (view full) ---

303 .start = IRQ_LCD,
304 .end = IRQ_LCD,
305 .flags = IORESOURCE_IRQ,
306 },
307};
308
309static u64 fb_dma_mask = ~(u64)0;
310
286 .name = "pxa2xx-udc",
287 .id = -1,
288 .resource = pxa2xx_udc_resources,
289 .num_resources = ARRAY_SIZE(pxa2xx_udc_resources),
290 .dev = {
291 .platform_data = &pxa_udc_info,
292 .dma_mask = &udc_dma_mask,
293 }

--- 9 unchanged lines hidden (view full) ---

303 .start = IRQ_LCD,
304 .end = IRQ_LCD,
305 .flags = IORESOURCE_IRQ,
306 },
307};
308
309static u64 fb_dma_mask = ~(u64)0;
310
311struct platform_device pxafb_device = {
311struct platform_device pxa_device_fb = {
312 .name = "pxa2xx-fb",
313 .id = -1,
314 .dev = {
315 .dma_mask = &fb_dma_mask,
316 .coherent_dma_mask = 0xffffffff,
317 },
318 .num_resources = ARRAY_SIZE(pxafb_resources),
319 .resource = pxafb_resources,
320};
321
322void __init set_pxa_fb_info(struct pxafb_mach_info *info)
323{
312 .name = "pxa2xx-fb",
313 .id = -1,
314 .dev = {
315 .dma_mask = &fb_dma_mask,
316 .coherent_dma_mask = 0xffffffff,
317 },
318 .num_resources = ARRAY_SIZE(pxafb_resources),
319 .resource = pxafb_resources,
320};
321
322void __init set_pxa_fb_info(struct pxafb_mach_info *info)
323{
324 pxafb_device.dev.platform_data = info;
324 pxa_device_fb.dev.platform_data = info;
325}
326
327void __init set_pxa_fb_parent(struct device *parent_dev)
328{
325}
326
327void __init set_pxa_fb_parent(struct device *parent_dev)
328{
329 pxafb_device.dev.parent = parent_dev;
329 pxa_device_fb.dev.parent = parent_dev;
330}
331
330}
331
332struct platform_device ffuart_device = {
332struct platform_device pxa_device_ffuart= {
333 .name = "pxa2xx-uart",
334 .id = 0,
335};
333 .name = "pxa2xx-uart",
334 .id = 0,
335};
336struct platform_device btuart_device = {
336struct platform_device pxa_device_btuart = {
337 .name = "pxa2xx-uart",
338 .id = 1,
339};
337 .name = "pxa2xx-uart",
338 .id = 1,
339};
340struct platform_device stuart_device = {
340struct platform_device pxa_device_stuart = {
341 .name = "pxa2xx-uart",
342 .id = 2,
343};
341 .name = "pxa2xx-uart",
342 .id = 2,
343};
344struct platform_device hwuart_device = {
344struct platform_device pxa_device_hwuart = {
345 .name = "pxa2xx-uart",
346 .id = 3,
347};
348
349static struct resource pxai2c_resources[] = {
350 {
351 .start = 0x40301680,
352 .end = 0x403016a3,
353 .flags = IORESOURCE_MEM,
354 }, {
355 .start = IRQ_I2C,
356 .end = IRQ_I2C,
357 .flags = IORESOURCE_IRQ,
358 },
359};
360
345 .name = "pxa2xx-uart",
346 .id = 3,
347};
348
349static struct resource pxai2c_resources[] = {
350 {
351 .start = 0x40301680,
352 .end = 0x403016a3,
353 .flags = IORESOURCE_MEM,
354 }, {
355 .start = IRQ_I2C,
356 .end = IRQ_I2C,
357 .flags = IORESOURCE_IRQ,
358 },
359};
360
361struct platform_device pxai2c_device = {
361struct platform_device pxa_device_i2c = {
362 .name = "pxa2xx-i2c",
363 .id = 0,
364 .resource = pxai2c_resources,
365 .num_resources = ARRAY_SIZE(pxai2c_resources),
366};
367
368void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
369{
362 .name = "pxa2xx-i2c",
363 .id = 0,
364 .resource = pxai2c_resources,
365 .num_resources = ARRAY_SIZE(pxai2c_resources),
366};
367
368void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
369{
370 pxai2c_device.dev.platform_data = info;
370 pxa_device_i2c.dev.platform_data = info;
371}
372
373static struct resource pxai2s_resources[] = {
374 {
375 .start = 0x40400000,
376 .end = 0x40400083,
377 .flags = IORESOURCE_MEM,
378 }, {
379 .start = IRQ_I2S,
380 .end = IRQ_I2S,
381 .flags = IORESOURCE_IRQ,
382 },
383};
384
371}
372
373static struct resource pxai2s_resources[] = {
374 {
375 .start = 0x40400000,
376 .end = 0x40400083,
377 .flags = IORESOURCE_MEM,
378 }, {
379 .start = IRQ_I2S,
380 .end = IRQ_I2S,
381 .flags = IORESOURCE_IRQ,
382 },
383};
384
385struct platform_device pxai2s_device = {
385struct platform_device pxa_device_i2s = {
386 .name = "pxa2xx-i2s",
387 .id = -1,
388 .resource = pxai2s_resources,
389 .num_resources = ARRAY_SIZE(pxai2s_resources),
390};
391
392static u64 pxaficp_dmamask = ~(u32)0;
393
386 .name = "pxa2xx-i2s",
387 .id = -1,
388 .resource = pxai2s_resources,
389 .num_resources = ARRAY_SIZE(pxai2s_resources),
390};
391
392static u64 pxaficp_dmamask = ~(u32)0;
393
394struct platform_device pxaficp_device = {
394struct platform_device pxa_device_ficp = {
395 .name = "pxa2xx-ir",
396 .id = -1,
397 .dev = {
398 .dma_mask = &pxaficp_dmamask,
399 .coherent_dma_mask = 0xffffffff,
400 },
401};
402
403void __init pxa_set_ficp_info(struct pxaficp_platform_data *info)
404{
395 .name = "pxa2xx-ir",
396 .id = -1,
397 .dev = {
398 .dma_mask = &pxaficp_dmamask,
399 .coherent_dma_mask = 0xffffffff,
400 },
401};
402
403void __init pxa_set_ficp_info(struct pxaficp_platform_data *info)
404{
405 pxaficp_device.dev.platform_data = info;
405 pxa_device_ficp.dev.platform_data = info;
406}
407
406}
407
408struct platform_device pxartc_device = {
408struct platform_device pxa_device_rtc = {
409 .name = "sa1100-rtc",
410 .id = -1,
411};
409 .name = "sa1100-rtc",
410 .id = -1,
411};