mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
drm/panel: Add driver for the Toppoly TD043MTEA1 panel
This panel is used on the OMAP3 Pandora.
The code is based on the omapdrm-specific panel-tpo-td043mtea1 driver.
v2:
- fix checkpatch warnings
o (lcd == NULL) => (!lcd) (sam)
o alignment to open '(' (sam)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190813201101.30980-10-laurent.pinchart@ideasonboard.com
This commit is contained in:
committed by
Sam Ravnborg
parent
415b8dd087
commit
dc2e1e5b27
@@ -332,6 +332,13 @@ config DRM_PANEL_TPO_TD028TTEC1
|
||||
Say Y here if you want to enable support for TPO TD028TTEC1 480x640
|
||||
2.8" panel (found on the OpenMoko Neo FreeRunner and Neo 1973).
|
||||
|
||||
config DRM_PANEL_TPO_TD043MTEA1
|
||||
tristate "Toppoly (TPO) TD043MTEA1 panel driver"
|
||||
depends on GPIOLIB && OF && REGULATOR && SPI
|
||||
help
|
||||
Say Y here if you want to enable support for TPO TD043MTEA1 800x480
|
||||
4.3" panel (found on the OMAP3 Pandora board).
|
||||
|
||||
config DRM_PANEL_TPO_TPG110
|
||||
tristate "TPO TPG 800x400 panel"
|
||||
depends on OF && SPI && GPIOLIB
|
||||
|
||||
@@ -35,5 +35,6 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o
|
||||
obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o
|
||||
obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o
|
||||
obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o
|
||||
obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o
|
||||
obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o
|
||||
obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o
|
||||
|
||||
@@ -328,7 +328,7 @@ static int td028ttec1_probe(struct spi_device *spi)
|
||||
int ret;
|
||||
|
||||
lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL);
|
||||
if (lcd == NULL)
|
||||
if (!lcd)
|
||||
return -ENOMEM;
|
||||
|
||||
spi_set_drvdata(spi, lcd);
|
||||
|
||||
509
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
Normal file
509
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user