syscounter.h 499 B

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