diff options
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/devices.h')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/devices.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/devices.h b/arch/arm/mach-mmp/include/mach/devices.h index 24585397217e..1fa0a492454a 100644 --- a/arch/arm/mach-mmp/include/mach/devices.h +++ b/arch/arm/mach-mmp/include/mach/devices.h | |||
@@ -34,4 +34,16 @@ struct pxa_device_desc pxa910_device_##_name __initdata = { \ | |||
34 | .size = _size, \ | 34 | .size = _size, \ |
35 | .dma = { _dma }, \ | 35 | .dma = { _dma }, \ |
36 | }; | 36 | }; |
37 | |||
38 | #define MMP2_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \ | ||
39 | struct pxa_device_desc mmp2_device_##_name __initdata = { \ | ||
40 | .dev_name = "mmp2-" #_name, \ | ||
41 | .drv_name = _drv, \ | ||
42 | .id = _id, \ | ||
43 | .irq = IRQ_MMP2_##_irq, \ | ||
44 | .start = _start, \ | ||
45 | .size = _size, \ | ||
46 | .dma = { _dma }, \ | ||
47 | } | ||
48 | |||
37 | extern int pxa_register_device(struct pxa_device_desc *, void *, size_t); | 49 | extern int pxa_register_device(struct pxa_device_desc *, void *, size_t); |