clock.h 506 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright (C) 2018 Marvell International Ltd.
  4. *
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef __CLOCK_H__
  8. /** System PLL reference clock */
  9. #define PLL_REF_CLK 50000000 /* 50 MHz */
  10. #define NS_PER_REF_CLK_TICK (1000000000 / PLL_REF_CLK)
  11. /**
  12. * Returns the I/O clock speed in Hz
  13. */
  14. u64 octeontx_get_io_clock(void);
  15. /**
  16. * Returns the core clock speed in Hz
  17. */
  18. u64 octeontx_get_core_clock(void);
  19. #endif /* __CLOCK_H__ */