mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fbdev: ssd1307fb: add ssd1309 support
The ssd1307fb driver supports a lot of chips from the ssd130xfb series. This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very similar to the other chips and only has some definitions added to support it. Signed-off-by: Olliver Schinagl <[email protected]> Acked-by: Rob Herring <[email protected]> Acked-by: Prabhakar Lad <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
48846ec502
commit
3ac58d5808
2 changed files with 13 additions and 1 deletions
|
|
@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
|
|||
.need_pwm = 1,
|
||||
};
|
||||
|
||||
static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
|
||||
.default_vcomh = 0x34,
|
||||
.default_dclk_div = 1,
|
||||
.default_dclk_frq = 10,
|
||||
};
|
||||
|
||||
static const struct of_device_id ssd1307fb_of_match[] = {
|
||||
{
|
||||
.compatible = "solomon,ssd1305fb-i2c",
|
||||
|
|
@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
|
|||
.compatible = "solomon,ssd1307fb-i2c",
|
||||
.data = (void *)&ssd1307fb_ssd1307_deviceinfo,
|
||||
},
|
||||
{
|
||||
.compatible = "solomon,ssd1309fb-i2c",
|
||||
.data = (void *)&ssd1307fb_ssd1309_deviceinfo,
|
||||
},
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
|
||||
|
|
@ -709,6 +719,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
|
|||
{ "ssd1305fb", 0 },
|
||||
{ "ssd1306fb", 0 },
|
||||
{ "ssd1307fb", 0 },
|
||||
{ "ssd1309fb", 0 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue