diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-14 21:03:33 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2015-05-13 09:24:09 -0700 |
commit | 7bb6199bd6c95c89bb9b8e2e2890223e2bca6595 (patch) | |
tree | a81c6bd9afb4f3263f8f2d00c07e5ae3d65ed7c2 /arch/arm/include | |
parent | 801b05cd613d00c98ecb3300f15e011518075ef4 (diff) | |
download | u-boot-imx-7bb6199bd6c95c89bb9b8e2e2890223e2bca6595.zip u-boot-imx-7bb6199bd6c95c89bb9b8e2e2890223e2bca6595.tar.gz u-boot-imx-7bb6199bd6c95c89bb9b8e2e2890223e2bca6595.tar.bz2 |
tegra: clock: Split the clock source code into a separate function
Create a function which sets the source clock for a peripheral, given
the number of mux bits to adjust. This can then be used more generally.
For now, don't export it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-tegra/clock.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/clock.h b/arch/arm/include/asm/arch-tegra/clock.h index a641a16..04011ae 100644 --- a/arch/arm/include/asm/arch-tegra/clock.h +++ b/arch/arm/include/asm/arch-tegra/clock.h @@ -156,6 +156,17 @@ void reset_cmplx_set_enable(int cpu, int which, int reset); void clock_ll_set_source(enum periph_id periph_id, unsigned source); /** + * This function is similar to clock_ll_set_source() except that it can be + * used for clocks with more than 2 mux bits. + * + * @param periph_id peripheral to adjust + * @param mux_bits number of mux bits for the clock + * @param source source clock (0-15 depending on mux_bits) + */ +int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, + unsigned source); + +/** * Set the source and divisor for a peripheral clock. This sets the * clock rate. You need to look up the datasheet to see the meaning of the * source parameter as it changes for each peripheral. |