Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45399 )
Change subject: soc/mediatek/mt8192: add pmic MT6359P driver
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45399/1/src/soc/mediatek/mt8192/mt6...
File src/soc/mediatek/mt8192/mt6359p.c:
https://review.coreboot.org/c/coreboot/+/45399/1/src/soc/mediatek/mt8192/mt6...
PS1, Line 307: mt6359p_read_field
I think we can create generic functions for these, say
u32 pmif_read_field(struct pmif *arb, u32 slave_id, u32 reg, u32, mask,u32 shift)
{
..
}
So you don't need to declare these read/write field functions everywhere.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/45399
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I62f69490165539847b8b7260942644533b15285b
Gerrit-Change-Number: 45399
Gerrit-PatchSet: 1
Gerrit-Owner: CK HU
ck.hu@mediatek.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: hsin-hsiung wang
hsin-hsiung.wang@mediatek.com
Gerrit-CC: Hung-Te Lin
hungte@chromium.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 17 Sep 2020 01:22:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment