summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8186/include/soc
diff options
context:
space:
mode:
authorAllen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com>2022-08-08 18:39:45 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-08-12 17:13:08 +0000
commita4795c01ed161cb0d288272a6eaa363d26aef63d (patch)
tree9a44879cf2626ad629dd9d92e9c56786b4ce638a /src/soc/mediatek/mt8186/include/soc
parentec37ef2bae0542ab5f7207683041346a0bf26fba (diff)
downloadcoreboot-a4795c01ed161cb0d288272a6eaa363d26aef63d.tar.gz
coreboot-a4795c01ed161cb0d288272a6eaa363d26aef63d.tar.bz2
coreboot-a4795c01ed161cb0d288272a6eaa363d26aef63d.zip
soc/mediatek/mt8186: Enable USB macro control
When powering down SSUSB, the system needs to wait the ACK from SSUSB. We found that the setting of USB PAD top macro is not correct and it will cause timeout waiting for the ACK from SSUSB. To resolve this, we add mt_pll_set_usb_clock() in pll.c to enable usb macro control for powering down SSUSB. TEST=timeout of ssusb powerdown ack does not occur. BUG=b:239634625 Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com> Change-Id: I58ba86e0467284e9947bfda1005c151a3e0c8881 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66600 Reviewed-by: Yidi Lin <yidilin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8186/include/soc')
-rw-r--r--src/soc/mediatek/mt8186/include/soc/pll.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/include/soc/pll.h b/src/soc/mediatek/mt8186/include/soc/pll.h
index c2dace32201e..bcd00da23c72 100644
--- a/src/soc/mediatek/mt8186/include/soc/pll.h
+++ b/src/soc/mediatek/mt8186/include/soc/pll.h
@@ -522,4 +522,6 @@ DEFINE_BITFIELD(INFRACFG_AO_PERI_BUS_REG0_0, 1, 0)
DEFINE_BITFIELD(INFRACFG_AO_PERI_BUS_REG0_1, 27, 3)
DEFINE_BIT(INFRACFG_AO_PERI_BUS_REG0_2, 31)
+DEFINE_BITFIELD(USB_TOP_CFG_MACRO_CTRL, 1, 0)
+
#endif /* SOC_MEDIATEK_MT8186_PLL_H */