summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/include/mach/devices.h
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2009-03-20 12:50:22 +0800
committerEric Miao <eric.miao@marvell.com>2009-03-23 10:11:35 +0800
commit14c6b5e7add9ec393ad61bceb6106b47c7f14bd3 (patch)
tree525cf72ac77f27201902b85e904b45df529cca68 /arch/arm/mach-mmp/include/mach/devices.h
parenta6b993c6b5183fe2af98569cbb7dd8add01b8deb (diff)
[ARM] pxa: add base support for Marvell PXA910
Signed-off-by: Bin Yang <bin.yang@marvell.com> Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/devices.h')
-rw-r--r--arch/arm/mach-mmp/include/mach/devices.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/devices.h b/arch/arm/mach-mmp/include/mach/devices.h
index bc03388d5fd..24585397217 100644
--- a/arch/arm/mach-mmp/include/mach/devices.h
+++ b/arch/arm/mach-mmp/include/mach/devices.h
@@ -24,4 +24,14 @@ struct pxa_device_desc pxa168_device_##_name __initdata = { \
.dma = { _dma }, \
};
+#define PXA910_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
+struct pxa_device_desc pxa910_device_##_name __initdata = { \
+ .dev_name = "pxa910-" #_name, \
+ .drv_name = _drv, \
+ .id = _id, \
+ .irq = IRQ_PXA910_##_irq, \
+ .start = _start, \
+ .size = _size, \
+ .dma = { _dma }, \
+};
extern int pxa_register_device(struct pxa_device_desc *, void *, size_t);