From mboxrd@z Thu Jan 1 00:00:00 1970 From: boris.brezillon@bootlin.com (Boris Brezillon) Date: Wed, 18 Apr 2018 10:27:55 +0200 Subject: [PATCH v2 4/6] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes In-Reply-To: <8c5847d0-cde1-73fa-9ed1-4f4a5420afbd@axentia.se> References: <20180417131052.16336-1-peda@axentia.se> <20180417131052.16336-5-peda@axentia.se> <20180418092948.6dace10a@bbrezillon> <8c5847d0-cde1-73fa-9ed1-4f4a5420afbd@axentia.se> Message-ID: <20180418102755.0491bc9d@bbrezillon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, 18 Apr 2018 09:46:09 +0200 Peter Rosin wrote: > On 2018-04-18 09:29, Boris Brezillon wrote: > > On Tue, 17 Apr 2018 15:10:50 +0200 > > Peter Rosin wrote: > > > >> This beats the heuristic that the connector is involved in what format > >> should be output for cases where this fails. > >> > >> E.g. if there is a bridge that changes format between the encoder and the > >> connector, or if some of the RGB pins between the lcd controller and the > >> encoder are not routed on the PCB. > >> > >> This is critical for the devices that have the "conflicting output > >> formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant > >> RGB bits move around depending on the selected output mode. For > >> devices that do not have the "conflicting output formats" issue > >> (SAMA5D2, SAMA5D4), this is completely irrelevant. > >> > >> Signed-off-by: Peter Rosin > >> --- > >> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 85 ++++++++++++++++++++------ > >> 1 file changed, 65 insertions(+), 20 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c > >> index d73281095fac..2e718959981e 100644 > >> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c > >> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c > >> @@ -19,12 +19,14 @@ > >> */ > >> > >> #include > >> +#include > >> #include > >> #include > >> #include > >> > >> #include > >> #include > >> +#include > >> #include > >> > >> #include