summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/common/include/soc/dsi_common.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-08-12 16:48:12 -0700
committerFelix Held <felix-coreboot@felixheld.de>2021-08-18 14:21:28 +0000
commitb2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24 (patch)
tree75788742da59525637ea977bcb419891f98d0c2e /src/soc/mediatek/common/include/soc/dsi_common.h
parent4080e08c09a4f063ed1df280e74fa2b87d304b87 (diff)
downloadcoreboot-b2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24.tar.gz
coreboot-b2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24.tar.bz2
coreboot-b2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24.zip
device: Move MIPI panel library from mainboard/google/kukui into common
All boards that are trying to use MIPI panels eventually run into the problem that they need to store physical parameters and a list of DCS initialization commands for each panel, and these commands can be very different (e.g. a large amount of very short commands, a few very large commands, etc.). Finding a data format to fit all these different cases efficiently into the same structures keeps being a challenge, and the Kukui mainboard already once put a lot of effort into designing a clean, flexible and efficient solution for this. This patch moves that framework into a common src/device/mipi/ library where it can be used by other boards as well. (Also, this will hopefully allow us to save some duplicated work when using the same panel on different boards at some point.) Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I877f2b0c7ab984412b288e2ed27f37cd93c70863 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56965 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/common/include/soc/dsi_common.h')
-rw-r--r--src/soc/mediatek/common/include/soc/dsi_common.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/soc/mediatek/common/include/soc/dsi_common.h b/src/soc/mediatek/common/include/soc/dsi_common.h
index 489a5918908b..31abce026caa 100644
--- a/src/soc/mediatek/common/include/soc/dsi_common.h
+++ b/src/soc/mediatek/common/include/soc/dsi_common.h
@@ -340,18 +340,6 @@ struct mtk_phy_timing {
u32 d_phy;
};
-/* Definitions for cmd in lcm_init_command */
-#define LCM_END_CMD 0
-#define LCM_DELAY_CMD 1
-#define LCM_GENERIC_CMD 2
-#define LCM_DCS_CMD 3
-
-struct lcm_init_command {
- u8 cmd;
- u8 len;
- u8 data[];
-};
-
/* Functions that each SOC should provide. */
void mtk_dsi_reset(void);
void mtk_dsi_configure_mipi_tx(u32 data_rate, u32 lanes);