drivers: display: Update setting the mode in the st7796s driver
MIPI mode is read from the device tree. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
53b5dbfb88
commit
6236779d32
1 changed files with 2 additions and 1 deletions
|
|
@ -319,7 +319,8 @@ static const struct display_driver_api st7796s_api = {
|
|||
SPI_OP_MODE_MASTER | \
|
||||
SPI_WORD_SET(8), \
|
||||
0), \
|
||||
.mode = MIPI_DBI_MODE_SPI_4WIRE, \
|
||||
.mode = DT_INST_PROP_OR(n, mipi_mode, \
|
||||
MIPI_DBI_MODE_SPI_4WIRE), \
|
||||
}, \
|
||||
.width = DT_INST_PROP(n, width), \
|
||||
.height = DT_INST_PROP(n, height), \
|
||||
|
|
|
|||
Loading…
Reference in a new issue