[coreboot-gerrit] Change in coreboot[master]: Read pmic cid for check. Do not submit.
Tristan Hsieh (Code Review)
gerrit at coreboot.org
Mon Nov 12 11:14:27 CET 2018
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 at 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();
--
To view, visit https://review.coreboot.org/29591
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4cb1692d07fb7745d26e2aca0f40ac57dc965e4f
Gerrit-Change-Number: 29591
Gerrit-PatchSet: 1
Gerrit-Owner: Tristan Hsieh <tristan.shieh at mediatek.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181112/2126527b/attachment.html>
More information about the coreboot-gerrit
mailing list