[PATCH v2 4/9] drm/tinydrm: Split struct mipi_dbi in two
David Lechner
david at lechnology.com
Mon Jul 22 20:25:38 UTC 2019
On 7/22/19 5:43 AM, Noralf Trønnes wrote:
> Split struct mipi_dbi into an interface part and a display pipeline part.
> The interface part can be used by drivers that need to initialize the
> controller, but that won't upload the framebuffer over this interface.
>
> MIPI DBI supports 3 interface types:
> - A. Motorola 6800 type parallel bus
> - B. Intel 8080 type parallel bus
> - C. SPI type with 3 options:
>
> I've embedded the SPI type specifics in the mipi_dbi struct to avoid
> adding unnecessary complexity. If more interface types will be supported
> in the future, the type specifics might have to be split out.
>
> Rename functions to match the new struct mipi_dbi_dev:
> - drm_to_mipi_dbi() -> drm_to_mipi_dbi_dev().
> - mipi_dbi_init*() -> mipi_dbi_dev_init*().
>
> Cc: Eric Anholt <eric at anholt.net>
> Cc: David Lechner <david at lechnology.com>
> Reviewed-by: Sam Ravnborg <sam at ravnborg.org>
> Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
> ---
Acked-by: David Lechner <david at lechnology.com>
More information about the dri-devel
mailing list