u-boot-brain/arch/arm/cpu
Jimmy Zhang b9dd6215ce ARM: tegra: don't exceed AVP limits when configuring PLLP
Based on the Tegra TRM, the system clock (which is the AVP clock) can
run up to 275MHz. On power on, the default sytem clock source is set to
PLLP_OUT0. In function clock_early_init(), PLLP_OUT0 will be set to
408MHz which is beyond system clock's upper limit.

The fix is to set the system clock to CLK_M before initializing PLLP,
and then switch back to PLLP_OUT4, which has an appropriate divider
configured, after PLLP has been configured

Implement this logic in new function tegra30_set_up_pllp(),
which sets up PLLP and all PLLP_OUT* dividers, and handles the AVP
clock switching. Remove the duplicate PLLP setup from pllx_set_rate()
and adjust_pllp_out_freqs().

Signed-off-by: Jimmy Zhang <jimmzhang@nvidia.com>
[swarren, significantly refactored the change]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2014-02-03 09:46:45 -07:00
..
arm720t ARM: tegra: don't exceed AVP limits when configuring PLLP 2014-02-03 09:46:45 -07:00
arm920t ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
arm926ejs ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
arm946es ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
arm1136 ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
arm1176 ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
arm_intcm ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
armv7 Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2014-01-29 14:07:50 +01:00
armv8 arm64: core support 2014-01-09 16:08:44 +01:00
at91-common arm926ejs, at91: add common phy_reset function 2013-12-01 22:38:52 +01:00
ixp ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
pxa ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
sa1100 ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
tegra20-common ARM: tegra: use MASK_BITS_* macros everywhere 2014-02-03 09:46:45 -07:00
tegra30-common ARM: tegra: don't exceed AVP limits when configuring PLLP 2014-02-03 09:46:45 -07:00
tegra114-common ARM: tegra: don't exceed AVP limits when configuring PLLP 2014-02-03 09:46:45 -07:00
tegra-common ARM: tegra: don't exceed AVP limits when configuring PLLP 2014-02-03 09:46:45 -07:00
Makefile arm: atmel: add ddr2 initialization function 2013-12-01 22:38:47 +01:00
u-boot-spl.lds arm: keep all sections in ELF file 2013-12-07 06:53:58 +01:00
u-boot.lds arm: put .hash, .got.plt and .machine_param back in binaries 2014-01-14 11:43:10 +01:00