mcfslt.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /****************************************************************************/
  3. /*
  4. * mcfslt.h -- ColdFire internal Slice (SLT) timer support defines.
  5. *
  6. * (C) Copyright 2004, Greg Ungerer ([email protected])
  7. * (C) Copyright 2009, Philippe De Muyter ([email protected])
  8. */
  9. /****************************************************************************/
  10. #ifndef mcfslt_h
  11. #define mcfslt_h
  12. /****************************************************************************/
  13. /*
  14. * Define the SLT timer register set addresses.
  15. */
  16. #define MCFSLT_STCNT 0x00 /* Terminal count */
  17. #define MCFSLT_SCR 0x04 /* Control */
  18. #define MCFSLT_SCNT 0x08 /* Current count */
  19. #define MCFSLT_SSR 0x0C /* Status */
  20. /*
  21. * Bit definitions for the SCR control register.
  22. */
  23. #define MCFSLT_SCR_RUN 0x04000000 /* Run mode (continuous) */
  24. #define MCFSLT_SCR_IEN 0x02000000 /* Interrupt enable */
  25. #define MCFSLT_SCR_TEN 0x01000000 /* Timer enable */
  26. /*
  27. * Bit definitions for the SSR status register.
  28. */
  29. #define MCFSLT_SSR_BE 0x02000000 /* Bus error condition */
  30. #define MCFSLT_SSR_TE 0x01000000 /* Timeout condition */
  31. /****************************************************************************/
  32. #endif /* mcfslt_h */