clk: tegra: Fix PLL_U post divider and initial rate on Tegra30
authorLucas Stach <dev@lynxeye.de>
Mon, 29 Feb 2016 20:46:07 +0000 (21:46 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 28 Apr 2016 10:41:52 +0000 (12:41 +0200)
commit797097301860c64b63346d068ba4fe4992bd5021
tree14683f1f0cba467b3e8b4144cc289a9d5c11330c
parenta02cc84a31d3bd46a10546ff7024e7b5a186d339
clk: tegra: Fix PLL_U post divider and initial rate on Tegra30

The post divider value in the frequency table is wrong as it would lead
to the PLL producing an output rate of 960 MHz instead of the desired
480 MHz. This wasn't a problem as nothing used the table to actually
initialize the PLL rate, but the bootloader configuration was used
unaltered.

If the bootloader does not set up the PLL it will fail to come when used
under Linux. To fix this don't rely on the bootloader, but set the
correct rate in the clock driver.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-tegra30.c