pxa910.h 481 B

1234567891011121314151617181920212223
  1. #ifndef __ASM_MACH_PXA910_H
  2. #define __ASM_MACH_PXA910_H
  3. #include <mach/devices.h>
  4. extern struct pxa_device_desc pxa910_device_uart1;
  5. extern struct pxa_device_desc pxa910_device_uart2;
  6. static inline int pxa910_add_uart(int id)
  7. {
  8. struct pxa_device_desc *d = NULL;
  9. switch (id) {
  10. case 1: d = &pxa910_device_uart1; break;
  11. case 2: d = &pxa910_device_uart2; break;
  12. }
  13. if (d == NULL)
  14. return -EINVAL;
  15. return pxa_register_device(d, NULL, 0);
  16. }
  17. #endif /* __ASM_MACH_PXA910_H */