syscounter.h 499 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2015 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef _ASM_ARCH_SYSTEM_COUNTER_H
  6. #define _ASM_ARCH_SYSTEM_COUNTER_H
  7. /* System Counter */
  8. struct sctr_regs {
  9. u32 cntcr;
  10. u32 cntsr;
  11. u32 cntcv1;
  12. u32 cntcv2;
  13. u32 resv1[4];
  14. u32 cntfid0;
  15. u32 cntfid1;
  16. u32 cntfid2;
  17. u32 resv2[1001];
  18. u32 counterid[1];
  19. };
  20. #define SC_CNTCR_ENABLE (1 << 0)
  21. #define SC_CNTCR_HDBG (1 << 1)
  22. #define SC_CNTCR_FREQ0 (1 << 8)
  23. #define SC_CNTCR_FREQ1 (1 << 9)
  24. #endif