summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-14 21:03:32 -0600
committerTom Warren <twarren@nvidia.com>2015-05-13 09:24:09 -0700
commit801b05cd613d00c98ecb3300f15e011518075ef4 (patch)
tree4424e11db0c6071ddc45e0c292026363863d6543 /arch/arm/include
parentec022efb8658cce75699afc3ce6ee8b2d9d0c273 (diff)
downloadu-boot-imx-801b05cd613d00c98ecb3300f15e011518075ef4.zip
u-boot-imx-801b05cd613d00c98ecb3300f15e011518075ef4.tar.gz
u-boot-imx-801b05cd613d00c98ecb3300f15e011518075ef4.tar.bz2
tegra: clock: Add checking for invalid clock IDs
The get_pll() function can do the wrong thing if passed values that are out of range. Add checks for this and add a function which can return a 'simple' PLL. This can be defined by SoCs with their own clocks. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/clock.h b/arch/arm/include/asm/arch-tegra/clock.h
index 9d8114c..a641a16 100644
--- a/arch/arm/include/asm/arch-tegra/clock.h
+++ b/arch/arm/include/asm/arch-tegra/clock.h
@@ -265,6 +265,9 @@ void clock_early_init(void);
/* Returns a pointer to the clock source register for a peripheral */
u32 *get_periph_source_reg(enum periph_id periph_id);
+/* Returns a pointer to the given 'simple' PLL */
+struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid);
+
/**
* Given a peripheral ID and the required source clock, this returns which
* value should be programmed into the source mux for that peripheral.