mcfslt.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /****************************************************************************/
  2. /*
  3. * mcfslt.h -- ColdFire internal Slice (SLT) timer support defines.
  4. *
  5. * (C) Copyright 2004, Greg Ungerer (gerg@snapgear.com)
  6. * (C) Copyright 2009, Philippe De Muyter (phdm@macqel.be)
  7. */
  8. /****************************************************************************/
  9. #ifndef mcfslt_h
  10. #define mcfslt_h
  11. /****************************************************************************/
  12. /*
  13. * Get address specific defines for the 547x.
  14. */
  15. #define MCFSLT_TIMER0 0x900 /* Base address of TIMER0 */
  16. #define MCFSLT_TIMER1 0x910 /* Base address of TIMER1 */
  17. /*
  18. * Define the SLT timer register set addresses.
  19. */
  20. #define MCFSLT_STCNT 0x00 /* Terminal count */
  21. #define MCFSLT_SCR 0x04 /* Control */
  22. #define MCFSLT_SCNT 0x08 /* Current count */
  23. #define MCFSLT_SSR 0x0C /* Status */
  24. /*
  25. * Bit definitions for the SCR control register.
  26. */
  27. #define MCFSLT_SCR_RUN 0x04000000 /* Run mode (continuous) */
  28. #define MCFSLT_SCR_IEN 0x02000000 /* Interrupt enable */
  29. #define MCFSLT_SCR_TEN 0x01000000 /* Timer enable */
  30. /*
  31. * Bit definitions for the SSR status register.
  32. */
  33. #define MCFSLT_SSR_BE 0x02000000 /* Bus error condition */
  34. #define MCFSLT_SSR_TE 0x01000000 /* Timeout condition */
  35. /****************************************************************************/
  36. #endif /* mcfslt_h */