coreboot-kgpe-d16/src/soc/mediatek/common
Julius Werner 4757a7ea33 mipi: Make panel init callback work directly on DSI transaction types
Our MIPI panel initialization framework differentiates between DCS and
GENERIC commands, but the exact interpretation of those terms is left to
the platform drivers. In practice, the MIPI DSI transaction codes for
these are standardized and platforms always need to do the same
operation of combining the command length and transfer type into a
correct DSI protocol code. This patch factors out the various
platform-specific DSI protocol definitions into a single global one and
moves the transaction type calculation into the common panel framework.

The Qualcomm SC7180 implementation which previously only supported DCS
commands is enhanced to (hopefully? untested for now...) also support
GENERIC commands. While we're rewriting that whole section also fix some
other issues about how exactly long and short commands need to be passed
to that hardware which we identified in the meantime.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I09ade7857ca04e89d286cf538b1a5ebb1eeb8c04
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57150
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2021-09-11 01:42:47 +00:00
..
include/soc mipi: Make panel init callback work directly on DSI transaction types 2021-09-11 01:42:47 +00:00
auxadc.c soc/mediatek: Move auxadc driver from MT8183 to common 2020-11-20 08:40:19 +00:00
cbmem.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
clkbuf.c soc/mediatek/mt8195: Add clk_buf driver 2021-05-10 01:57:49 +00:00
ddp.c src/soc/mediatek: Add include <types.h> 2020-07-26 21:35:27 +00:00
dfd.c soc/mediatek/mt8192: move DFD driver to common folder 2021-08-12 17:59:00 +00:00
dpm.c soc/mediatek/common: Add DPM_FOUR_CHANNEL option 2021-06-23 05:50:37 +00:00
dram_init.c soc/mediatek: Include sdram_info in ddr_base_info 2021-04-14 00:55:57 +00:00
dramc_param.c soc/mediatek: Use MRC cache API for asurada 2021-03-24 05:43:50 +00:00
dsi.c mipi: Make panel init callback work directly on DSI transaction types 2021-09-11 01:42:47 +00:00
eint_event.c src/mediatek: Move mt8192 eint driver to common 2021-04-21 08:56:36 +00:00
flash_controller.c soc/mediatek/mt8192: Move flash_controller.c to common/ 2020-12-31 03:09:19 +00:00
gpio.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c.c soc/mediatek/mt8192: add i2c driver support 2020-12-14 03:55:13 +00:00
Kconfig soc/mediatek/mt8192: move DFD driver to common folder 2021-08-12 17:59:00 +00:00
mcu.c soc/mediatek/common: Add common API for loading firmwares 2020-12-10 03:21:19 +00:00
mcupm.c soc/mediatek: Move the MT8192 MCUPM driver to common 2021-05-26 07:32:51 +00:00
memory.c soc/mediatek: Remove misleading memory logs 2021-04-16 06:42:25 +00:00
memory_test.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mmu_operations.c soc/mediatek/mt8183: Set MMU default map length to 8GB befor mem init 2020-08-06 03:03:53 +00:00
msdc.c soc/mediatek: add new driver 'msdc' for eMMC 2021-04-09 06:05:12 +00:00
mt6315.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
mt6359p.c soc/mediatek/common: add mt6359p vcore support 2021-08-09 01:53:00 +00:00
mtcmos.c soc/mediatek/mt8195: Add mtcmos init support 2021-05-05 07:38:06 +00:00
mtk_mipi_dphy.c soc/mediatek/mt8183: Move dsi driver to common/ 2020-12-14 03:55:37 +00:00
pll.c helpers: Add GENMASK macro 2021-08-02 15:01:54 +00:00
pmic_wrap.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pmif.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
pmif_clk.c soc/mediatek/mt8195: add pmif/spmi/pmic driver 2021-05-05 07:36:26 +00:00
pmif_spi.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
pmif_spmi.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
reset.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
rtc.c soc/mediatek: rtc: Use bool as return type 2021-01-07 02:02:51 +00:00
rtc_mt6359p.c soc/mediatek/mt8195: Add RTC driver 2021-05-10 01:58:28 +00:00
rtc_osc_init.c soc/mediatek/mt8192: add rtc MT6359P driver 2020-12-28 13:39:01 +00:00
spi.c soc/mediatek: Move the common part of SPI drivers to common/ 2021-05-05 07:36:48 +00:00
spm.c soc/mediatek: Extract spm_parse_firmware to common 2021-06-04 10:10:54 +00:00
sspm.c soc/mediatek: Move the SSPM driver to common 2021-06-01 08:28:30 +00:00
timer.c soc/mediatek/mt8195: Add timer support 2021-04-26 02:43:06 +00:00
uart.c include/console/uart: make index parameter unsigned 2020-09-12 14:59:33 +00:00
ufs.c soc/mediatek: Move mt8192 ufs driver to common 2021-04-21 08:56:44 +00:00
usb.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
wdt.c soc/mediatek: preserve WDT reset reason for debugging 2021-09-08 08:25:19 +00:00