mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
From c63a1b63d37c4c0a13108a87dae408ab288a126a Mon Sep 17 00:00:00 2001
 | 
						|
From: Chris Morgan <macromorgan@hotmail.com>
 | 
						|
Date: Fri, 28 Jan 2022 17:39:54 -0600
 | 
						|
Subject: [PATCH 700/828] drm/vc4: dpi: Support DPI interface in mode3 for
 | 
						|
 RGB565
 | 
						|
 | 
						|
Add support for the VC4 DPI driver to utilize DPI mode 3. This is
 | 
						|
defined here as xxxRRRRRxxGGGGGGxxxBBBBB:
 | 
						|
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#parallel-display-interface-dpi
 | 
						|
 | 
						|
This mode is required to use the Geekworm MZP280 DPI display.
 | 
						|
 | 
						|
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
 | 
						|
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
 | 
						|
---
 | 
						|
 drivers/gpu/drm/vc4/vc4_dpi.c | 4 ++++
 | 
						|
 1 file changed, 4 insertions(+)
 | 
						|
 | 
						|
--- a/drivers/gpu/drm/vc4/vc4_dpi.c
 | 
						|
+++ b/drivers/gpu/drm/vc4/vc4_dpi.c
 | 
						|
@@ -191,6 +191,10 @@ static void vc4_dpi_encoder_enable(struc
 | 
						|
 				dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3,
 | 
						|
 						       DPI_FORMAT);
 | 
						|
 				break;
 | 
						|
+			case MEDIA_BUS_FMT_RGB565_1X24_CPADHI:
 | 
						|
+				dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_2,
 | 
						|
+						       DPI_FORMAT);
 | 
						|
+				break;
 | 
						|
 			}
 | 
						|
 		} else {
 | 
						|
 			/* Default to 18bit if no connector found. */
 |