summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/include
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2019-08-07 16:28:08 +0800
committerJulius Werner <jwerner@chromium.org>2019-08-15 03:03:49 +0000
commite366ba14eb99c58b074dd9c31460e8165f0ecc0d (patch)
treec94f49f161e47517fb5d96b49dc18cab5bdf7a97 /src/soc/mediatek/common/include
parent00e1ee9242cc0796f09ddb2c019d3dce35e13832 (diff)
soc/mediatek: Change DSI init commands to take flexible length array
The fixed size of init command in lcm_init_table is wasting lots of space and we should change to packed array since the command buffer already provides length information. With this change, BOE panel init commands have been reduced from 4848 bytes to 1309 bytes. BUG=b:80501386,b:117254947 TEST=emerge-kukui coreboot chromeos-bootimage; Boots properly Change-Id: I359dde8e6f2e1c0983f4677193bb47a7ae497ca6 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34778 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r--src/soc/mediatek/common/include/soc/dsi_common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/common/include/soc/dsi_common.h b/src/soc/mediatek/common/include/soc/dsi_common.h
index c684aaf940..9a00d1d149 100644
--- a/src/soc/mediatek/common/include/soc/dsi_common.h
+++ b/src/soc/mediatek/common/include/soc/dsi_common.h
@@ -350,9 +350,9 @@ struct mtk_phy_timing {
#define LCM_DCS_CMD 3
struct lcm_init_command {
- u16 cmd;
- u16 len;
- u8 data[8];
+ u8 cmd;
+ u8 len;
+ u8 data[];
};
/* Functions that each SOC should provide. */
@@ -365,6 +365,6 @@ void mtk_dsi_override_phy_timing(struct mtk_phy_timing *timing);
/* Public API provided in common/dsi.c */
int mtk_dsi_bpp_from_format(u32 format);
int mtk_dsi_init(u32 mode_flags, u32 format, u32 lanes, const struct edid *edid,
- const struct lcm_init_command *init_commands);
+ const u8 *init_commands);
#endif /* SOC_MEDIATEK_DSI_COMMON_H */