]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tegra: clock: Add checking for invalid clock IDs
authorSimon Glass <sjg@chromium.org>
Wed, 15 Apr 2015 03:03:32 +0000 (21:03 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:34 +0000 (22:39 +0200)
commit036f893c884c8dfd514250f607368ceebfdf2591
tree477a009eef1c73698c22c85c9e4ae16063cb3061
parent22b21e30a611b4635522f4af6367e38e84e6bdb3
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>
arch/arm/include/asm/arch-tegra/clock.h
arch/arm/mach-tegra/clock.c