From 4fc76adf313f2792b7438f9372321ce3ea66c6c2 Mon Sep 17 00:00:00 2001 From: Vijay Purushothaman Date: Fri, 17 Aug 2012 18:06:52 +0530 Subject: tools: Added intel_dpio_read and intel_dpio_write In Valleyview the DPLL and lane control registers are accessible only through side band fabric called DPIO. Added two tools to read and write registers residing in this space. v2: Moved the core read/write functions to lib/intel_dpio.c based on Ben's feedback Signed-off-by: Vijay Purushothaman Signed-off-by: Daniel Vetter --- lib/intel_reg.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/intel_reg.h') diff --git a/lib/intel_reg.h b/lib/intel_reg.h index a371d67b..ffded64e 100644 --- a/lib/intel_reg.h +++ b/lib/intel_reg.h @@ -3741,5 +3741,18 @@ typedef enum { #define SFUSE_STRAP_DDIC_DETECTED (1<<1) #define SFUSE_STRAP_DDID_DETECTED (1<<0) +/* Valleyview related items */ + +/* Valleyview DPIO registers */ +#define VLV_DISPLAY_BASE 0x180000 +#define DPIO_PKT 0x2100 +#define DPIO_RID (0 << 24) +#define DPIO_OP_WRITE (1 << 16) +#define DPIO_OP_READ (0 << 16) +#define DPIO_PORTID (0x12 << 8) +#define DPIO_BYTE (0xf << 4) +#define DPIO_BUSY (1 << 0) +#define DPIO_DATA 0x2104 +#define DPIO_REG 0x2108 #endif /* _I810_REG_H */ -- cgit v1.2.3