Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/29591
Change subject: Read pmic cid for check. Do not submit. ......................................................................
Read pmic cid for check. Do not submit.
Change-Id: I4cb1692d07fb7745d26e2aca0f40ac57dc965e4f Signed-off-by: Tristan Shieh tristan.shieh@mediatek.com --- M src/soc/mediatek/mt8183/mt6358.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/29591/1
diff --git a/src/soc/mediatek/mt8183/mt6358.c b/src/soc/mediatek/mt8183/mt6358.c index c2cf259..708f8e7 100644 --- a/src/soc/mediatek/mt8183/mt6358.c +++ b/src/soc/mediatek/mt8183/mt6358.c @@ -14,6 +14,7 @@ */
#include <assert.h> +#include <console/console.h> #include <soc/pmic_wrap.h> #include <soc/mt6358.h>
@@ -356,9 +357,14 @@
void mt6358_init(void) { + u16 cid; + if (pwrap_init()) die("ERROR - Failed to initialize pmic wrap!");
+ cid = pwrap_read_field(PMIC_SWCID, 0xFFFF, 0); + printk(BIOS_DEBUG, "PMIC CID 0x%x\r\n", cid); + pmic_set_power_hold(true); pmic_wdt_set(); mt6358_init_setting();