diff options
author | Julius Werner <jwerner@chromium.org> | 2021-08-12 16:48:12 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-08-18 14:21:28 +0000 |
commit | b2a14801916ad9dfa2a6b4fa9ceb6de7d2d03e24 (patch) | |
tree | 75788742da59525637ea977bcb419891f98d0c2e /src/soc/mediatek/common/include | |
parent | 4080e08c09a4f063ed1df280e74fa2b87d304b87 (diff) |
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')
-rw-r--r-- | src/soc/mediatek/common/include/soc/dsi_common.h | 12 |
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 489a591890..31abce026c 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); |