mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
fdd591e00a
The Solomon SSD132x controllers (such as the SSD1322, SSD1325 and SSD1327) are used by 16 grayscale dot matrix OLED panels, extend the driver to also support this chip family. Instead adding an indirection level to allow the same modesetting pipeline to be used by both controller families, add another pipeline for SSD132x. This leads to some code duplication but it makes the driver easier to read and reason about. Once other controller families are added (e.g: SSD133x), some common code can be factored out in driver helpers to be shared by the different families. But that can be done later once these patterns emerge. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20231014071520.1342189-5-javierm@redhat.com
32 lines
1004 B
Plaintext
32 lines
1004 B
Plaintext
config DRM_SSD130X
|
|
tristate "DRM support for Solomon SSD13xx OLED displays"
|
|
depends on DRM && MMU
|
|
select BACKLIGHT_CLASS_DEVICE
|
|
select DRM_GEM_SHMEM_HELPER
|
|
select DRM_KMS_HELPER
|
|
help
|
|
DRM driver for the SSD13xx Solomon and SINO WEALTH SH110x OLED
|
|
controllers. This is only for 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 ssd130x.
|
|
|
|
config DRM_SSD130X_I2C
|
|
tristate "DRM support for Solomon SSD13xx OLED displays (I2C bus)"
|
|
depends on DRM_SSD130X && I2C
|
|
select REGMAP_I2C
|
|
help
|
|
Say Y here if the SSD13xx or SH110x OLED display is connected via
|
|
I2C bus.
|
|
|
|
If M is selected the module will be called ssd130x-i2c.
|
|
|
|
config DRM_SSD130X_SPI
|
|
tristate "DRM support for Solomon SSD13xx OLED displays (SPI bus)"
|
|
depends on DRM_SSD130X && SPI
|
|
select REGMAP
|
|
help
|
|
Say Y here if the SSD13xx OLED display is connected via SPI bus.
|
|
|
|
If M is selected the module will be called ssd130x-spi.
|