regs-serial.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/regs-serial.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation
  5. * All rights reserved.
  6. *
  7. * Wan ZongShun <mcuos.com@gmail.com>
  8. *
  9. * Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. */
  17. #ifndef __ASM_ARM_REGS_SERIAL_H
  18. #define __ASM_ARM_REGS_SERIAL_H
  19. #define UART0_BA W90X900_VA_UART
  20. #define UART1_BA (W90X900_VA_UART+0x100)
  21. #define UART2_BA (W90X900_VA_UART+0x200)
  22. #define UART3_BA (W90X900_VA_UART+0x300)
  23. #define UART4_BA (W90X900_VA_UART+0x400)
  24. #define UART0_PA W90X900_PA_UART
  25. #define UART1_PA (W90X900_PA_UART+0x100)
  26. #define UART2_PA (W90X900_PA_UART+0x200)
  27. #define UART3_PA (W90X900_PA_UART+0x300)
  28. #define UART4_PA (W90X900_PA_UART+0x400)
  29. #ifndef __ASSEMBLY__
  30. struct w90x900_uart_clksrc {
  31. const char *name;
  32. unsigned int divisor;
  33. unsigned int min_baud;
  34. unsigned int max_baud;
  35. };
  36. struct w90x900_uartcfg {
  37. unsigned char hwport;
  38. unsigned char unused;
  39. unsigned short flags;
  40. unsigned long uart_flags;
  41. unsigned long ucon;
  42. unsigned long ulcon;
  43. unsigned long ufcon;
  44. struct w90x900_uart_clksrc *clocks;
  45. unsigned int clocks_size;
  46. };
  47. #endif /* __ASSEMBLY__ */
  48. #endif /* __ASM_ARM_REGS_SERIAL_H */