Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32511 )
Change subject: mb/google/kukui: Initialize display
......................................................................
Patch Set 20:
(3 comments)
Rev
https://review.coreboot.org/c/coreboot/+/32511/19/src/mainboard/google/kukui...
File src/mainboard/google/kukui/display.c:
https://review.coreboot.org/c/coreboot/+/32511/19/src/mainboard/google/kukui...
PS19, Line 61: static struct edid *get_edid(struct board_display_intf *intf)
: {
: struct panel_info *info = intf->cur_panel_info;
:
: if (info)
: return info->edid;
: return NULL;
: }
I think this function is not needed since it's only called one time, and the intf is provided by developer so simply assert() would be sufficient. Please move it to the caller.
https://review.coreboot.org/c/coreboot/+/32511/19/src/mainboard/google/kukui...
PS19, Line 84: get_panel_name
this is also not needed...
https://review.coreboot.org/c/coreboot/+/32511/19/src/mainboard/google/kukui...
PS19, Line 100: update_panel_info
In fact we don't need to call intf->get_panel_id.
For Kukui family, the panel ID is decided by ADC (see boardid.c).
We may add a new get_panel_id() calling ADC if needed,
or simply do get_sku_id() >> 4.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/32511
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I19213aee1ac0f69f42e73be9e5ab72394f412a01
Gerrit-Change-Number: 32511
Gerrit-PatchSet: 20
Gerrit-Owner: Kaka Ni
nigang@huaqin.corp-partner.google.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Jerry Han
hanxu5@huaqin.corp-partner.google.com
Gerrit-Reviewer: Jitao Shi
jitao.shi@mediatek.corp-partner.google.com
Gerrit-Reviewer: Kaka Ni
nigang@huaqin.corp-partner.google.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: YH Lin
yueherngl@chromium.org
Gerrit-Reviewer: You-Cheng Syu
youcheng@google.com
Gerrit-Reviewer: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: jitao shi
jitao.shi@mediatek.com
Gerrit-Reviewer: yongqiang niu
yongqiang.niu@mediatek.com
Gerrit-CC: Julius Werner
jwerner@chromium.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: SJ Huang
sj.huang@mediatek.corp-partner.google.com
Gerrit-Comment-Date: Sat, 20 Jul 2019 04:29:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment