regs-serial.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * arch/arm/mach-nuc93x/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. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. */
  15. #ifndef __ASM_ARM_REGS_SERIAL_H
  16. #define __ASM_ARM_REGS_SERIAL_H
  17. #define UART0_BA NUC93X_VA_UART
  18. #define UART1_BA (NUC93X_VA_UART+0x100)
  19. #define UART0_PA NUC93X_PA_UART
  20. #define UART1_PA (NUC93X_PA_UART+0x100)
  21. #ifndef __ASSEMBLY__
  22. struct nuc93x_uart_clksrc {
  23. const char *name;
  24. unsigned int divisor;
  25. unsigned int min_baud;
  26. unsigned int max_baud;
  27. };
  28. struct nuc93x_uartcfg {
  29. unsigned char hwport;
  30. unsigned char unused;
  31. unsigned short flags;
  32. unsigned long uart_flags;
  33. unsigned long ucon;
  34. unsigned long ulcon;
  35. unsigned long ufcon;
  36. struct nuc93x_uart_clksrc *clocks;
  37. unsigned int clocks_size;
  38. };
  39. #endif /* __ASSEMBLY__ */
  40. #endif /* __ASM_ARM_REGS_SERIAL_H */