drm/sitronix/st7571: split up the driver into a common and an i2c part

Split up the driver to make it possible to add support for hw interfaces
other than I2C.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://patch.msgid.link/20251215-st7571-split-v3-5-d5f3205c3138@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
Marcus Folkesson
2025-12-15 10:46:47 +01:00
committed by Javier Martinez Canillas
parent b0c20d827e
commit b362de167d
6 changed files with 960 additions and 917 deletions

View File

@@ -1,13 +1,29 @@
config DRM_ST7571_I2C
tristate "DRM support for Sitronix ST7571 display panels (I2C)"
depends on DRM && I2C && MMU
config DRM_ST7571
tristate "DRM support for Sitronix ST7567/ST7571 display panels"
depends on DRM && MMU
select DRM_CLIENT_SELECTION
select DRM_GEM_SHMEM_HELPER
select DRM_KMS_HELPER
select REGMAP_I2C
select VIDEOMODE_HELPERS
help
DRM driver for Sitronix ST7571 panels controlled over I2C.
Sitronix ST7571 is a driver and controller for 4-level gray
scale and monochrome dot matrix LCD panels.
DRM driver for Sitronix ST7567/ST7571 panels.
This is only the core driver, a driver for the appropriate bus
transport in your chip also must be selected.
if M is selected the module will be called st7571.
config DRM_ST7571_I2C
tristate "DRM support for Sitronix ST7567/ST7571 display panels (I2C)"
depends on DRM_ST7571 && I2C
select REGMAP
help
Sitronix ST7571 is a driver and controller for 4-level gray
scale and monochrome dot matrix LCD panels.
DRM driver for Sitronix ST7565/ST7571 panels connected via I2C bus.
if M is selected the module will be called st7571-i2c.