]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/arch-tegra124/clock.h
e202cc5a7f469a2d6533d8851032c0544c620886
2 * (C) Copyright 2010-2013
3 * NVIDIA Corporation <www.nvidia.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 /* Tegra124 clock control definitions */
10 #ifndef _TEGRA124_CLOCK_H_
11 #define _TEGRA124_CLOCK_H_
13 #include <asm/arch-tegra/clock.h>
15 /* CLK_RST_CONTROLLER_OSC_CTRL_0 */
16 #define OSC_FREQ_SHIFT 28
17 #define OSC_FREQ_MASK (0xF << OSC_FREQ_SHIFT)
19 /* CLK_RST_CONTROLLER_CLK_SOURCE_SOR0_0 */
20 #define SOR0_CLK_SEL0 (1 << 14)
21 #define SOR0_CLK_SEL1 (1 << 15)
23 int tegra_plle_enable(void);
25 void clock_sor_enable_edp_clock(void);
28 * clock_set_display_rate() - Set the display clock rate
30 * @frequency: the requested PLLD frequency
32 * Return the PLLD frequenc (which may not quite what was requested), or 0
35 u32
clock_set_display_rate(u32 frequency
);
38 * clock_set_up_plldp() - Set up the EDP clock ready for use
40 void clock_set_up_plldp(void);
42 #endif /* _TEGRA124_CLOCK_H_ */