diff options
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/pxa910.h')
| -rw-r--r-- | arch/arm/mach-mmp/include/mach/pxa910.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/pxa910.h b/arch/arm/mach-mmp/include/mach/pxa910.h new file mode 100644 index 000000000000..b7aeaf574c36 --- /dev/null +++ b/arch/arm/mach-mmp/include/mach/pxa910.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef __ASM_MACH_PXA910_H | ||
| 2 | #define __ASM_MACH_PXA910_H | ||
| 3 | |||
| 4 | #include <mach/devices.h> | ||
| 5 | |||
| 6 | extern struct pxa_device_desc pxa910_device_uart1; | ||
| 7 | extern struct pxa_device_desc pxa910_device_uart2; | ||
| 8 | |||
| 9 | static inline int pxa910_add_uart(int id) | ||
| 10 | { | ||
| 11 | struct pxa_device_desc *d = NULL; | ||
| 12 | |||
| 13 | switch (id) { | ||
| 14 | case 1: d = &pxa910_device_uart1; break; | ||
| 15 | case 2: d = &pxa910_device_uart2; break; | ||
| 16 | } | ||
| 17 | |||
| 18 | if (d == NULL) | ||
| 19 | return -EINVAL; | ||
| 20 | |||
| 21 | return pxa_register_device(d, NULL, 0); | ||
| 22 | } | ||
| 23 | #endif /* __ASM_MACH_PXA910_H */ | ||
