clock.h 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2010-2013
  4. * NVIDIA Corporation <www.nvidia.com>
  5. */
  6. /* Tegra124 clock control definitions */
  7. #ifndef _TEGRA124_CLOCK_H_
  8. #define _TEGRA124_CLOCK_H_
  9. #include <asm/arch-tegra/clock.h>
  10. /* CLK_RST_CONTROLLER_OSC_CTRL_0 */
  11. #define OSC_FREQ_SHIFT 28
  12. #define OSC_FREQ_MASK (0xF << OSC_FREQ_SHIFT)
  13. /* CLK_RST_CONTROLLER_PLLC_MISC_0 */
  14. #define PLLC_IDDQ (1 << 26)
  15. /* CLK_RST_CONTROLLER_CLK_SOURCE_SOR0_0 */
  16. #define SOR0_CLK_SEL0 (1 << 14)
  17. #define SOR0_CLK_SEL1 (1 << 15)
  18. int tegra_plle_enable(void);
  19. void clock_sor_enable_edp_clock(void);
  20. /**
  21. * clock_set_display_rate() - Set the display clock rate
  22. *
  23. * @frequency: the requested PLLD frequency
  24. *
  25. * Return the PLLD frequenc (which may not quite what was requested), or 0
  26. * on failure
  27. */
  28. u32 clock_set_display_rate(u32 frequency);
  29. /**
  30. * clock_set_up_plldp() - Set up the EDP clock ready for use
  31. */
  32. void clock_set_up_plldp(void);
  33. #endif /* _TEGRA124_CLOCK_H_ */