summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124/lp0
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2014-03-05 11:38:54 -0800
committerMarc Jones <marc.jones@se-eng.com>2014-11-13 06:25:49 +0100
commit479cfeb12b95a98bd408139f08649c6c2b47f37c (patch)
tree24c7628d22df33385565f2a24f54c90df76bce37 /src/soc/nvidia/tegra124/lp0
parent25bf7757b7ed4f571f7f5d2a26ed9d3fea4e7e2b (diff)
downloadcoreboot-479cfeb12b95a98bd408139f08649c6c2b47f37c.tar.xz
tegra124: fix OSC initialization on LP0 resume
Add a missing "~" so that we mask off just OSC_XOFS field and not the rest of the register. BUG=chrome-os-partner:26326 TEST=XHCI sometimes works after LP0. BRANCH=none Original-Change-Id: I2df2387dbad6920d36aa2ae5e6cd91e9ec42fa08 Original-Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/188897 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> (cherry picked from commit bdbe9ead46fa883618a4acedd1feaf676e2eb29b) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: Ic853e737fc106527eb3bb15c25bf801a36bbff57 Reviewed-on: http://review.coreboot.org/7412 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/soc/nvidia/tegra124/lp0')
-rw-r--r--src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c
index 72506c81f5..b993e31600 100644
--- a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c
+++ b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c
@@ -326,7 +326,7 @@ static void config_oscillator(void)
PMC_XOFS_MASK) >> PMC_XOFS_SHIFT;
uint32_t osc_ctrl = read32(clk_rst_osc_ctrl_ptr);
- osc_ctrl &= OSC_XOFS_MASK;
+ osc_ctrl &= ~OSC_XOFS_MASK;
osc_ctrl |= (xofs << OSC_XOFS_SHIFT);
osc_ctrl |= OSC_XOE;
write32(osc_ctrl, clk_rst_osc_ctrl_ptr);