devices.c (8d33b05581d1bc66e2356957bb2739e177a9cc36) | devices.c (5a1f21b1e546fafe840944f02949c1a8a8725132) |
---|---|
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> --- 575 unchanged lines hidden (view full) --- 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 | 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> --- 575 unchanged lines hidden (view full) --- 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 |
592static struct resource pxa3xx_resources_mci3[] = { 593 [0] = { 594 .start = 0x42500000, 595 .end = 0x42500fff, 596 .flags = IORESOURCE_MEM, 597 }, 598 [1] = { 599 .start = IRQ_MMC3, 600 .end = IRQ_MMC3, 601 .flags = IORESOURCE_IRQ, 602 }, 603 [2] = { 604 .start = 100, 605 .end = 100, 606 .flags = IORESOURCE_DMA, 607 }, 608 [3] = { 609 .start = 101, 610 .end = 101, 611 .flags = IORESOURCE_DMA, 612 }, 613}; 614 615struct platform_device pxa3xx_device_mci3 = { 616 .name = "pxa2xx-mci", 617 .id = 2, 618 .dev = { 619 .dma_mask = &pxamci_dmamask, 620 .coherent_dma_mask = 0xffffffff, 621 }, 622 .num_resources = ARRAY_SIZE(pxa3xx_resources_mci3), 623 .resource = pxa3xx_resources_mci3, 624}; 625 626void __init pxa3xx_set_mci3_info(struct pxamci_platform_data *info) 627{ 628 pxa_register_device(&pxa3xx_device_mci3, info); 629} 630 |
|
592#endif /* CONFIG_PXA3xx */ | 631#endif /* CONFIG_PXA3xx */ |