devices.c (85a3685852d9ac7d92be9d824533c915a4597fa4) | devices.c (4be0856fa34ef3b0681aeec669e50c13e394f145) |
---|---|
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#include <linux/spi/pxa2xx_spi.h> 7#include <linux/i2c/pxa-i2c.h> 8 9#include <mach/udc.h> 10#include <linux/platform_data/usb-pxa3xx-ulpi.h> 11#include <linux/platform_data/video-pxafb.h> 12#include <linux/platform_data/mmc-pxamci.h> 13#include <linux/platform_data/irda-pxaficp.h> 14#include <mach/irqs.h> 15#include <linux/platform_data/usb-ohci-pxa27x.h> 16#include <linux/platform_data/keypad-pxa27x.h> 17#include <linux/platform_data/camera-pxa.h> 18#include <mach/audio.h> 19#include <mach/hardware.h> | 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#include <linux/spi/pxa2xx_spi.h> 7#include <linux/i2c/pxa-i2c.h> 8 9#include <mach/udc.h> 10#include <linux/platform_data/usb-pxa3xx-ulpi.h> 11#include <linux/platform_data/video-pxafb.h> 12#include <linux/platform_data/mmc-pxamci.h> 13#include <linux/platform_data/irda-pxaficp.h> 14#include <mach/irqs.h> 15#include <linux/platform_data/usb-ohci-pxa27x.h> 16#include <linux/platform_data/keypad-pxa27x.h> 17#include <linux/platform_data/camera-pxa.h> 18#include <mach/audio.h> 19#include <mach/hardware.h> |
20#include <linux/platform_data/mmp_dma.h> |
|
20#include <linux/platform_data/mtd-nand-pxa3xx.h> 21 22#include "devices.h" 23#include "generic.h" 24 25void __init pxa_register_device(struct platform_device *dev, void *data) 26{ 27 int ret; --- 1160 unchanged lines hidden (view full) --- 1188 printk(KERN_ERR "pxa2xx-spi: failed to allocate device id %d\n", 1189 id); 1190 return; 1191 } 1192 1193 pd->dev.platform_data = info; 1194 platform_device_add(pd); 1195} | 21#include <linux/platform_data/mtd-nand-pxa3xx.h> 22 23#include "devices.h" 24#include "generic.h" 25 26void __init pxa_register_device(struct platform_device *dev, void *data) 27{ 28 int ret; --- 1160 unchanged lines hidden (view full) --- 1189 printk(KERN_ERR "pxa2xx-spi: failed to allocate device id %d\n", 1190 id); 1191 return; 1192 } 1193 1194 pd->dev.platform_data = info; 1195 platform_device_add(pd); 1196} |
1197 1198static struct mmp_dma_platdata pxa_dma_pdata = { 1199 .dma_channels = 0, 1200}; 1201 1202static struct resource pxa_dma_resource[] = { 1203 [0] = { 1204 .start = 0x40000000, 1205 .end = 0x4000ffff, 1206 .flags = IORESOURCE_MEM, 1207 }, 1208 [1] = { 1209 .start = IRQ_DMA, 1210 .end = IRQ_DMA, 1211 .flags = IORESOURCE_IRQ, 1212 }, 1213}; 1214 1215static u64 pxadma_dmamask = 0xffffffffUL; 1216 1217static struct platform_device pxa2xx_pxa_dma = { 1218 .name = "pxa-dma", 1219 .id = 0, 1220 .dev = { 1221 .dma_mask = &pxadma_dmamask, 1222 .coherent_dma_mask = 0xffffffff, 1223 }, 1224 .num_resources = ARRAY_SIZE(pxa_dma_resource), 1225 .resource = pxa_dma_resource, 1226}; 1227 1228void __init pxa2xx_set_dmac_info(int nb_channels) 1229{ 1230 pxa_dma_pdata.dma_channels = nb_channels; 1231 pxa_register_device(&pxa2xx_pxa_dma, &pxa_dma_pdata); 1232} |
|