[Intel-gfx] [PATCH] reg_dump: Dump display port register on Ironlake

Zhenyu Wang zhenyuw at linux.intel.com
Wed Jan 6 07:52:42 CET 2010


On 2010.01.05 22:13:43 +0800, yakui.zhao at intel.com wrote:
> From: Zhao Yakui <yakui.zhao at intel.com>
> 
> Dump the display port register on Ironlake.
> 

I was having something like this for Ironlake, but may not be able
to find out now. I also dumped other PCH DP regs like control and status,
do you need them too?

> Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
> ---
>  lib/intel_reg.h          |    4 ++++
>  tools/intel_reg_dumper.c |    4 ++++
>  2 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/intel_reg.h b/lib/intel_reg.h
> index 93bfcda..a743e67 100644
> --- a/lib/intel_reg.h
> +++ b/lib/intel_reg.h
> @@ -1432,6 +1432,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
>  #define ADPA_HSYNC_ACTIVE_HIGH	(1<<3)
>  #define ADPA_HSYNC_ACTIVE_LOW	0
>  
> +#define PCH_eDP_A		0x64000
> +#define PCH_DP_B		0xe4100
> +#define PCH_DP_C		0xe4200
> +#define PCH_DP_D		0xe4300
>  
>  #define DVOA			0x61120
>  #define DVOB			0x61140
> diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c
> index 26891a2..d21e676 100644
> --- a/tools/intel_reg_dumper.c
> +++ b/tools/intel_reg_dumper.c
> @@ -1392,6 +1392,10 @@ static struct reg_debug ironlake_debug_regs[] = {
>  	DEFINEREG(HDMIC),
>  	DEFINEREG(HDMID),
>  	DEFINEREG2(PCH_LVDS, i830_debug_lvds),
> +	DEFINEREG(PCH_eDP_A),
> +	DEFINEREG(PCH_DP_B),
> +	DEFINEREG(PCH_DP_C),
> +	DEFINEREG(PCH_DP_D),
>  };
>  
>  static void
> -- 
> 1.5.4.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20100106/fd5c650b/attachment.sig>


More information about the Intel-gfx mailing list