summaryrefslogtreecommitdiff
path: root/tools/intel_bios.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-09-12 13:34:53 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-09-26 12:26:24 +0300
commit8e4ce75542a958ed62dcc5f1f80d92767e0187c8 (patch)
tree411a2af0e962ecb82218fc4e8915003e75cd2836 /tools/intel_bios.h
parent94ca170e9e6943931261398b9987a7101565125f (diff)
tools/intel_bios_reader: Dump PSR block from VBT
Decode the PSR block (9) from VBT. Looks like the same block ID may have been used for something else in the past, so a version check is also needed. The wakeup times part is still up in the air due to the spec not knowing what it's saying, but let's do something that makes at least some sense given the VBTs currently out there in the wild. v2: Actually dump out tp2/3 wakeup time Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_bios.h')
-rw-r--r--tools/intel_bios.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/intel_bios.h b/tools/intel_bios.h
index 925bb06c..324ef4a7 100644
--- a/tools/intel_bios.h
+++ b/tools/intel_bios.h
@@ -63,6 +63,7 @@ struct bdb_header {
#define BDB_SWF_IO 7
#define BDB_SWF_MMIO 8
#define BDB_DOT_CLOCK_TABLE 9
+#define BDB_PSR 9
#define BDB_MODE_REMOVAL_TABLE 10
#define BDB_CHILD_DEVICE_TABLE 11
#define BDB_DRIVER_FEATURES 12
@@ -691,6 +692,20 @@ struct bdb_edp { /* 155 */
struct edp_full_link_params full_link_params[16]; /* 199 */
} __attribute__ ((packed));
+struct psr_params {
+ uint8_t full_link:1;
+ uint8_t require_aux_to_wakeup:1;
+ uint8_t rsvd1:6;
+ uint8_t idle_frames:4;
+ uint8_t lines_to_wait:3;
+ uint8_t rsvd2:1;
+ uint16_t tp1_wakeup_time;
+ uint16_t tp2_tp3_wakeup_time;
+} __attribute__ ((packed));
+
+struct bdb_psr {
+ struct psr_params psr[16];
+} __attribute__ ((packed));
/* Block 52 contains MiPi Panel info
* 6 such enteries will there. Index into correct