panels.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 914 行 · 第 1/2 页

H
914
字号
/* $Header: /Windows CE/BigSur/SDBTEST/MediaQ/panels.h 1     6/20/00 5:30p Mrastogi $
 * 
 * Copyright (c) 1999 by MediaQ, Incorporated.
 * All Rights Reserved.
 *
 * Confidential and Proprietary to MediaQ, Incorporated.
 *
 * PANELS.H : Panel parameters for MediaQ Graphics Controller (MQGC)
 * 
 * $Log: /Windows CE/BigSur/SDBTEST/MediaQ/panels.h $
 * 
 * 1     6/20/00 5:30p Mrastogi
 * Base Version received from HCL Noida on June 07, 2000.
// 
// 1     9/15/99 10:34a Ngupta
 * 
 *    Rev 1.16   Aug 25 1999 15:31:32   hoang
 * Panels Customization
 * 
 *    Rev 1.15   Aug 07 1999 17:44:04   chijen
 * fix panel type FP_PIN_CONTROL=0x20
 * 
 *    Rev 1.14   Jul 20 1999 10:11:12   chijen
 * fix type 16 model
 * 
 *    Rev 1.13   Jul 19 1999 17:46:06   chijen
 * remove PWM from panel data
 * 
 *    Rev 1.12   Jul 17 1999 09:49:30   chijen
 * fix compiler error
 * 
 *    Rev 1.11   Jul 16 1999 19:53:10   benny
 * Fine tune HVGA panels and FRC for type 16.
 * 
 *    Rev 1.10   Jul 16 1999 14:10:36   benny
 * Add panel type 16 for SSTN 640x240x8 at 90Hz.
 * 
 *    Rev 1.9   Jul 08 1999 13:47:30   chijen
 * clean up
 * 
 *    Rev 1.8   May 13 1999 11:17:54   tzyywei
 * fix typo. Change TFT 16bit to TFT 18 bit
 * 
 *    Rev 1.7   May 05 1999 08:26:48   tzyywei
 * set PWM value to 0x00a10012
 * 
 *    Rev 1.6   Apr 07 1999 11:06:08   chijen
 * put nec tft svga to panel type 15
 * 
 *    Rev 1.5   Apr 04 1999 17:53:04   chijen
 * fix compile error
 * 
 *    Rev 1.4   Mar 30 1999 14:16:44   tzyywei
 * update for JP demo.
 * 
 *    Rev 1.3   Mar 29 1999 16:43:50   chijen
 * apply same fix to other dstn panels
 * 
 *    Rev 1.2   Mar 29 1999 16:12:24   chijen
 * -1 for VD End and use fine-tune value for DSTN SVGA 8x6 (type 10)
 * 
 *    Rev 1.1   Mar 13 1999 11:00:14   tzyywei
 * temp working version for SDB
 * 
 *    Rev 1.0   Feb 20 1999 21:32:42   yuhuan
 * Initial revision.
 */

#ifndef __PANELS_H__
#define __PANELS_H__

// Flat panel control register
//
FP_CONTROL_STRUC FPControlData[] =
{

	// Type OEM panel :
	//
	{	// Flat panel control
		0,
		0,

		// Flat panel timing
		0,						// HD Total + HD End
		0,						// VD Total + VD End
		0,						// HS Start + HS End
		0,						// VS Start + VS End
		0.0F,					// PLLx frequency

		// Flat panel Control
		0,

		// Flat panel pin control
		0,

		// STN panel control
		0x0
	},
	// Type 1 : SSTN VGA 8Bit Color - 72Hz
	// - Sanyo SSTN 640x480 8-bit color interface
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(832-2) | (640L << 16),			// HD Total + HD End
		(520-1) | ((480L-1) << 16),	// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00af0930,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#else
		(832-2) | (640L << 16),			// HD Total + HD End
		(520-1) | ((480L-1) << 16),	// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00f50b30,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#endif

		// Flat panel Control
		FP_TYPE_SSTN
		| FP_COLOR
		| SSTN_8BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x00400000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		//| FP_SCLK_16mA
		//| FP_FD0_16mA
		//| FP_DATA_16mA
		| FDE_ACTIVE_L	
		,

		// STN panel control
		0x00bd0000
	},

	// Type 2 : DSTN 16 Bit VGA Color - 72Hz
	// - Hitachi 8.2" SX21V001
	// - Sanyo 10.4" LM-CJ53-22NTK
	// - Sharp 10.4" LM64C35P
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(832-2) | (640L << 16),			// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00af0930,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#else
		(832-2) | (640L << 16),			// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00f50b30,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_DSTN
		| FP_COLOR
		| DSTN_16BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x0c840000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		//| FP_SCLK_16mA
		//| FP_FD0_16mA
		//| FP_DATA_16mA
		| FDE_ACTIVE_L	
		,

		// STN panel control
		0x00bd0001
	},

	// Type 3 : TFT 18 Bit VGA - 60Hz
	// - NEC 10.4" NL6448AC33-24
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(800-2) | (640L << 16),       	// HD Total + HD End
		(525-1) | ((480L-1) << 16),			// VD Total + VD End
		656 | (752L << 16),				// HS Start + HS End
		490 | (492L << 16),				// VS Start + VS End
		//0x00e00740,					// PLLx multiplier and control
		25.175F,						// PLLx frequency
	#else
		(800-2) | (640L << 16),       	// HD Total + HD End
		(525-1) | ((480L-1) << 16),			// VD Total + VD End
		656 | (752L << 16),				// HS Start + HS End
		490 | (492L << 16),				// VS Start + VS End
		//0x00a30930,					// PLLx multiplier and control
		25.175F,						// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_TFT
		| FP_COLOR
		| TFT_18BITS_COLOR
		| DITHER_PATTERN_3
		| DITHER_BASE_6BITS 
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		,

		// STN panel control
		0x00bd0001
	},

	// Type 4 : TFT 18 Bit SVGA - 60Hz
	// - Hitachi 12.1" 800x600 TX31D24VC1CAA
	//
	{	// Flat panel control
		800,
		600,

		// Flat panel timing
	#ifdef RCLK_14_318
		(1056-2) | (800L << 16),		// HD Total + HD End
		(628-1) | ((600L-1) << 16),			// VD Total + VD End
		840 | (968L << 16),				// HS Start + HS End
		601 | (605L << 16),				// VS Start + VS End
		//0x00f50a30,					// PLLx multiplier and control
		40.0F,							// PLLx frequency
	#else
		(1054-2) | (800L << 16),		// HD Total + HD End
		(628-1) | ((600L-1) << 16),			// VD Total + VD End
		839 | (967L << 16),				// HS Start + HS End
		601 | (605L << 16),				// VS Start + VS End
		//0x00e90830,					// PLLx multiplier and control
		40.0F,							// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_TFT
		| FP_COLOR
		| TFT_18BITS_COLOR
		| DITHER_PATTERN_3
		| DITHER_BASE_6BITS 
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		//| FHSYNC_ACTIVE_L
		//| FVSYNC_ACTIVE_L
		//| FP_FSCLK_MAX
		//| FP_FD2_MAX
		//| FP_DATA_MAX
		,

		// STN panel control
		0x00bd0001
	},

	// Type 5 : DSTN 16Bit SVGA Color Panel - 72Hz
	// - Hitachi 10.0" SX25S001
	// - Hitachi 12.1" SX25S003
	//
	{	// Flat panel control
		800,
		600,

		// Flat panel timing
	#ifdef RCLK_14_318
		(1038-2) | (800L << 16),		// HD Total + HD End
		(666-1) | ((600L-1) << 16),			// VD Total + VD End
		854 | (974L << 16),				// HS Start + HS End
		637 | (643L << 16),				// VS Start + VS End
		//0x00fa0830,					// PLLx multiplier and control
		50.0F,							// PLLx frequency
	#else
		(1040-2) | (800L << 16),		// HD Total + HD End
		(666-1) | ((600L-1) << 16),			// VD Total + VD End
		856 | (976L << 16),				// HS Start + HS End
		637 | (643L << 16),				// VS Start + VS End
		//0x00b20a20,					// PLLx multiplier and control
		50.0F,							// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_DSTN
		| FP_COLOR
		| DSTN_16BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x0c840000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		//| FP_SCLK_16mA
		//| FP_FD0_16mA
		//| FP_DATA_16mA
		| FDE_ACTIVE_L	
		,

		// STN panel control
		0x00bd0001
	},

	// Type 6 : DSTN 8 Bit VGA Color - 72Hz
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(832-2) | (640L << 16),       	// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00af0930,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#else
		(832-2) | (640L << 16),       	// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00f50b30,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_DSTN
		| FP_COLOR
		| DSTN_8BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x0c840000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		//| FP_SCLK_16mA
		//| FP_FD0_16mA
		//| FP_DATA_16mA
		| FDE_ACTIVE_L	
		,

		// STN panel control
		0x00bd0001
	},

	// Type 7 : SSTN VGA 16Bit Color - 72Hz
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(832-2) | (640L << 16),       	// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00af0930,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#else
		(832-2) | (640L << 16),       	// HD Total + HD End
		(520-1) | ((480L-1) << 16),			// VD Total + VD End
		664 | (704L << 16),				// HS Start + HS End
		489 | (492L << 16),				// VS Start + VS End
		//0x00f50b30,					// PLLx multiplier and control
		31.5F,							// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_SSTN
		| FP_COLOR
		| SSTN_16BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x00400000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		//| FP_SCLK_16mA
		//| FP_FD0_16mA
		//| FP_DATA_16mA
		| FDE_ACTIVE_L	
		,

		// STN panel control
		0x00bd0000
	},

	// Type 8 : SSTN VGA 8Bit Color - 60Hz
	// - Sanyo SSTN 640x480 8-bit color interface
	//
	{	// Flat panel control
		640,
		480,

		// Flat panel timing
	#ifdef RCLK_14_318
		(800-2) | (640L << 16),       	// HD Total + HD End
		(525-1) | ((480L-1) << 16),			// VD Total + VD End
		656 | (752L << 16),				// HS Start + HS End
		490 | (492L << 16),				// VS Start + VS End
		//0x00e00740,					// PLLx multiplier and control
		25.175F,						// PLLx frequency
	#else
		(800-2) | (640L << 16),       	// HD Total + HD End
		(525-1) | ((480L-1) << 16),			// VD Total + VD End
		656 | (752L << 16),				// HS Start + HS End
		490 | (492L << 16),				// VS Start + VS End
		//0x00a30930,					// PLLx multiplier and control
		25.175F,						// PLLx frequency
	#endif // (RCLK_14_318)

		// Flat panel Control
		FP_TYPE_SSTN
		| FP_COLOR
		| SSTN_8BITS_MONOCLR
		| DITHER_PATTERN_3
		| DITHER_BASE_4BITS
		| FRC_16LEVEL
		| 0x00400000
		,

		// Flat panel pin control
		FSCLK_OUTPUT_ENABLE
		| SCLK_MASK
		| FDE_ACTIVE_L	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?