ARM: tegra210: set PLLE_PTS bit when enabling PLLE
authorStephen Warren <swarren@nvidia.com>
Tue, 22 Mar 2016 15:45:36 +0000 (09:45 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 29 Mar 2016 16:57:57 +0000 (09:57 -0700)
This bit needs to be set for system suspend/resume to work. This setting
will be documented in an updated TRM at some time in the future.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/mach-tegra/tegra210/clock.c

index df92bdc..f0052e7 100644 (file)
@@ -1104,6 +1104,7 @@ static int tegra_pllref_enable(void)
 #define  PLLE_MISC_IDDQ_SWCTL (1 << 14)
 #define  PLLE_MISC_IDDQ_OVERRIDE_VALUE (1 << 13)
 #define  PLLE_MISC_LOCK (1 << 11)
+#define  PLLE_PTS (1 << 8)
 #define  PLLE_MISC_KCP(x) (((x) & 0x3) << 6)
 #define  PLLE_MISC_VREG_CTRL(x) (((x) & 0x3) << 2)
 #define  PLLE_MISC_KVCO (1 << 0)
@@ -1157,6 +1158,7 @@ int tegra_plle_enable(void)
        writel(value, NV_PA_CLK_RST_BASE + PLLE_BASE);
 
        value = readl(NV_PA_CLK_RST_BASE + PLLE_MISC);
+       value |= PLLE_PTS;
        value &= ~PLLE_MISC_KCP(3);
        value &= ~PLLE_MISC_VREG_CTRL(3);
        value &= ~PLLE_MISC_KVCO;