devices.c (fafc9d3fa35530c1a14e6743c477d7398b431e74) | devices.c (8d33b05581d1bc66e2356957bb2739e177a9cc36) |
---|---|
1#include <linux/module.h> 2#include <linux/kernel.h> 3#include <linux/init.h> 4#include <linux/platform_device.h> 5#include <linux/dma-mapping.h> 6 7#include <asm/arch/gpio.h> 8#include <asm/arch/udc.h> --- 535 unchanged lines hidden (view full) --- 544 .id = 3, 545 .dev = { 546 .dma_mask = &pxa3xx_ssp4_dma_mask, 547 .coherent_dma_mask = DMA_BIT_MASK(32), 548 }, 549 .resource = pxa3xx_resource_ssp4, 550 .num_resources = ARRAY_SIZE(pxa3xx_resource_ssp4), 551}; | 1#include <linux/module.h> 2#include <linux/kernel.h> 3#include <linux/init.h> 4#include <linux/platform_device.h> 5#include <linux/dma-mapping.h> 6 7#include <asm/arch/gpio.h> 8#include <asm/arch/udc.h> --- 535 unchanged lines hidden (view full) --- 544 .id = 3, 545 .dev = { 546 .dma_mask = &pxa3xx_ssp4_dma_mask, 547 .coherent_dma_mask = DMA_BIT_MASK(32), 548 }, 549 .resource = pxa3xx_resource_ssp4, 550 .num_resources = ARRAY_SIZE(pxa3xx_resource_ssp4), 551}; |
552 553static struct resource pxa3xx_resources_mci2[] = { 554 [0] = { 555 .start = 0x42000000, 556 .end = 0x42000fff, 557 .flags = IORESOURCE_MEM, 558 }, 559 [1] = { 560 .start = IRQ_MMC2, 561 .end = IRQ_MMC2, 562 .flags = IORESOURCE_IRQ, 563 }, 564 [2] = { 565 .start = 93, 566 .end = 93, 567 .flags = IORESOURCE_DMA, 568 }, 569 [3] = { 570 .start = 94, 571 .end = 94, 572 .flags = IORESOURCE_DMA, 573 }, 574}; 575 576struct platform_device pxa3xx_device_mci2 = { 577 .name = "pxa2xx-mci", 578 .id = 1, 579 .dev = { 580 .dma_mask = &pxamci_dmamask, 581 .coherent_dma_mask = 0xffffffff, 582 }, 583 .num_resources = ARRAY_SIZE(pxa3xx_resources_mci2), 584 .resource = pxa3xx_resources_mci2, 585}; 586 587void __init pxa3xx_set_mci2_info(struct pxamci_platform_data *info) 588{ 589 pxa_register_device(&pxa3xx_device_mci2, info); 590} 591 |
|
552#endif /* CONFIG_PXA3xx */ | 592#endif /* CONFIG_PXA3xx */ |