diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-06-03 22:34:58 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-05 08:01:14 +0200 |
commit | 3cc59d0e21d2b9d7dab137aa9638f5d05906c043 (patch) | |
tree | a720a8ac25c96a316f34596eaccc7c69240b1ddc /arch/arm/mach-tegra/tegra_avp_init.c | |
parent | acef7b8f3d66e8c2dc91990bd2b0384a00f37f0e (diff) | |
download | barebox-3cc59d0e21d2b9d7dab137aa9638f5d05906c043.tar.gz barebox-3cc59d0e21d2b9d7dab137aa9638f5d05906c043.tar.xz |
tegra: disable IDDQ for PLL_X on Tegra124
This is an additional power down control.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-tegra/tegra_avp_init.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra_avp_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra_avp_init.c b/arch/arm/mach-tegra/tegra_avp_init.c index 53e81d9169..cc8b0e24bf 100644 --- a/arch/arm/mach-tegra/tegra_avp_init.c +++ b/arch/arm/mach-tegra/tegra_avp_init.c @@ -25,6 +25,7 @@ #include <mach/tegra20-pmc.h> #include <mach/tegra30-car.h> #include <mach/tegra30-flow.h> +#include <mach/tegra124-car.h> /* instruct the PMIC to enable the CPU power rail */ static void enable_maincomplex_powerrail(void) @@ -107,6 +108,14 @@ static void init_pllx(void) chiptype = tegra_get_chiptype(); + /* disable IDDQ on T124 */ + if (chiptype == TEGRA124) { + reg = readl(TEGRA_CLK_RESET_BASE + CRC_PLLX_MISC_3); + reg &= ~CRC_PLLX_MISC_3_IDDQ; + writel(reg, TEGRA_CLK_RESET_BASE + CRC_PLLX_MISC_3); + tegra_ll_delay_usec(2); + } + osc_freq = (readl(TEGRA_CLK_RESET_BASE + CRC_OSC_CTRL) & CRC_OSC_CTRL_OSC_FREQ_MASK) >> CRC_OSC_CTRL_OSC_FREQ_SHIFT; |