1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MACH_DEVICE_H
3 #define __MACH_DEVICE_H
5 #include <linux/types.h>
7 #define MAX_RESOURCE_DMA 2
9 /* structure for describing the on-chip devices */
10 struct pxa_device_desc
{
17 int dma
[MAX_RESOURCE_DMA
];
20 #define PXA168_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
21 struct pxa_device_desc pxa168_device_##_name __initdata = { \
22 .dev_name = "pxa168-" #_name, \
25 .irq = IRQ_PXA168_##_irq, \
31 #define PXA910_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
32 struct pxa_device_desc pxa910_device_##_name __initdata = { \
33 .dev_name = "pxa910-" #_name, \
36 .irq = IRQ_PXA910_##_irq, \
42 #define MMP2_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
43 struct pxa_device_desc mmp2_device_##_name __initdata = { \
44 .dev_name = "mmp2-" #_name, \
47 .irq = IRQ_MMP2_##_irq, \
53 extern int pxa_register_device(struct pxa_device_desc
*, void *, size_t);
54 extern int pxa_usb_phy_init(void __iomem
*phy_reg
);
55 extern void pxa_usb_phy_deinit(void __iomem
*phy_reg
);
57 #endif /* __MACH_DEVICE_H */