[OpenPower-Firmware] [PATCH V2] Update VGA Ownership register value.

Mamatha Inamdar mamatha4 at linux.vnet.ibm.com
Fri Jun 24 01:53:37 AEST 2016


Problem Description: 
Right now SCU2C: Control Register  values are not set correctly to enable VGA mode. 
SCU2C register value is set to 0x00041080, where bit 18 and bit 7 are set to 1 which is CRT mode.

Fix: 
To enable VGA mode we have to set all register bit values to default values ie VGA mode.

1)  bit 18 in SCU2C register is to select  the DVO source for display output, 
    by default it is VGA mode but it was set to 1(CRT mode).

	18  RW Select the DVO source for display output
	0: VGA mode (default)
	1: Graphics CRT mode

2) second issue is  bit 7 in SCU2C register is to Enable 2D CRT Mode function as 
   below and it was set to 1 as CRT mode.

	7 Enable 2D CRT Mode function
	0: VGA mode (default)
	1: CRT mode

The new value of SCU2C register is 0x00001010, which will enable VGA mode by 
resetting bits 18 and 7 in SCU2C control register.

Signed-off-by: Mamatha Inamdar <mamatha4 at linux.vnet.ibm.com>
---
 drivers/gpu/drm/ast/ast_post.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
index 703dba2..15c3792 100644
--- a/drivers/gpu/drm/ast/ast_post.c
+++ b/drivers/gpu/drm/ast/ast_post.c
@@ -1681,7 +1681,7 @@ static void ast_init_output_control(struct drm_device *dev)
 		break;
 	default:
 		/* VGA only: enable DAC output */
-		val &= ~0x30000;
+		val = 0x00001010;
 		break;
 	}
 



More information about the OpenPower-Firmware mailing list