blackfin.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2007-2009 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later.
  5. */
  6. #ifndef _MACH_BLACKFIN_H_
  7. #define _MACH_BLACKFIN_H_
  8. #include "bf548.h"
  9. #include "anomaly.h"
  10. #ifdef CONFIG_BF542
  11. #include "defBF542.h"
  12. #endif
  13. #ifdef CONFIG_BF544
  14. #include "defBF544.h"
  15. #endif
  16. #ifdef CONFIG_BF547
  17. #include "defBF547.h"
  18. #endif
  19. #ifdef CONFIG_BF548
  20. #include "defBF548.h"
  21. #endif
  22. #ifdef CONFIG_BF549
  23. #include "defBF549.h"
  24. #endif
  25. #if !defined(__ASSEMBLY__)
  26. #ifdef CONFIG_BF542
  27. #include "cdefBF542.h"
  28. #endif
  29. #ifdef CONFIG_BF544
  30. #include "cdefBF544.h"
  31. #endif
  32. #ifdef CONFIG_BF547
  33. #include "cdefBF547.h"
  34. #endif
  35. #ifdef CONFIG_BF548
  36. #include "cdefBF548.h"
  37. #endif
  38. #ifdef CONFIG_BF549
  39. #include "cdefBF549.h"
  40. #endif
  41. #endif
  42. #define BFIN_UART_NR_PORTS 4
  43. #define OFFSET_DLL 0x00 /* Divisor Latch (Low-Byte) */
  44. #define OFFSET_DLH 0x04 /* Divisor Latch (High-Byte) */
  45. #define OFFSET_GCTL 0x08 /* Global Control Register */
  46. #define OFFSET_LCR 0x0C /* Line Control Register */
  47. #define OFFSET_MCR 0x10 /* Modem Control Register */
  48. #define OFFSET_LSR 0x14 /* Line Status Register */
  49. #define OFFSET_MSR 0x18 /* Modem Status Register */
  50. #define OFFSET_SCR 0x1C /* SCR Scratch Register */
  51. #define OFFSET_IER_SET 0x20 /* Set Interrupt Enable Register */
  52. #define OFFSET_IER_CLEAR 0x24 /* Clear Interrupt Enable Register */
  53. #define OFFSET_THR 0x28 /* Transmit Holding register */
  54. #define OFFSET_RBR 0x2C /* Receive Buffer register */
  55. #endif