drivers: display: ili9xxx: generalize ILI display driver
Make driver generic for multiple ILI displays. The adopted strategy is to share all driver code except register initialization, which has been found to have some specific registers/values depending on the controller. The driver has been adjusted to support multiple compatibles. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
df51a8a5c7
commit
acb0cd65ca
13 changed files with 735 additions and 629 deletions
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Teslabs Engineering S.L.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_
|
||||
|
||||
/* Pixel formats */
|
||||
#define ILI9340_PIXEL_FORMAT_RGB565 0U
|
||||
#define ILI9340_PIXEL_FORMAT_RGB888 1U
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_ */
|
13
include/dt-bindings/display/ili9xxx.h
Normal file
13
include/dt-bindings/display/ili9xxx.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Teslabs Engineering S.L.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9XXX_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9XXX_H_
|
||||
|
||||
/* Pixel formats */
|
||||
#define ILI9XXX_PIXEL_FORMAT_RGB565 0U
|
||||
#define ILI9XXX_PIXEL_FORMAT_RGB888 1U
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9XXX_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue