diff options
author | Simon Glass <sjg@chromium.org> | 2015-06-05 20:39:36 (GMT) |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2015-06-09 16:56:13 (GMT) |
commit | 746dc76b99e44128025d9f18f7a154e2382ed134 (patch) | |
tree | f320bd96c7f8f561d9a689f09b1130c5a30a37d8 /arch/arm/include/asm/arch-tegra/clock.h | |
parent | 20edd1ac7ae7d081078dd64ffe7a89f48c09fd65 (diff) | |
download | u-boot-746dc76b99e44128025d9f18f7a154e2382ed134.tar.xz |
tegra: clock: Support enabling external clocks
Add a simple function to enable external clocks.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra/clock.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra/clock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/clock.h b/arch/arm/include/asm/arch-tegra/clock.h index 04011ae..f9dd3c8 100644 --- a/arch/arm/include/asm/arch-tegra/clock.h +++ b/arch/arm/include/asm/arch-tegra/clock.h @@ -336,4 +336,12 @@ void arch_timer_init(void); void tegra30_set_up_pllp(void); +/** + * Enable output clock for external peripherals + * + * @param clk_id Clock ID to output (1, 2 or 3) + * @return 0 if OK. -ve on error + */ +int clock_external_output(int clk_id); + #endif /* _TEGRA_CLOCK_H_ */ |