drivers: ssd1673: use compatible property to identify display
Use compatible property to identify display and select proper LUT for display controller. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
f7495ef8eb
commit
c2fe802479
2 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,7 @@
|
|||
cs-gpios = <&gpio0 17 0>;
|
||||
|
||||
ssd1673fb@0 {
|
||||
compatible = "solomon,ssd1673fb";
|
||||
compatible = "solomon,ssd1673fb", "gd,gde0213b1";
|
||||
label = "SSD1673";
|
||||
spi-max-frequency = <4000000>;
|
||||
reg = <0>;
|
||||
|
|
|
@ -45,6 +45,7 @@ struct ssd1673_data {
|
|||
u8_t scan_mode;
|
||||
};
|
||||
|
||||
#if defined(DT_GD_GDE0213B1_0)
|
||||
static u8_t ssd1673_lut_initial[] = {
|
||||
0x22, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -58,6 +59,7 @@ static u8_t ssd1673_lut_default[] = {
|
|||
0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
#endif
|
||||
|
||||
static inline int ssd1673_write_cmd(struct ssd1673_data *driver,
|
||||
u8_t cmd, u8_t *data, size_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue