summaryrefslogtreecommitdiff
path: root/tools/intel_bios.h
diff options
context:
space:
mode:
authorGaurav K Singh <gaurav.k.singh@intel.com>2014-07-16 19:39:33 +0530
committerDamien Lespiau <damien.lespiau@intel.com>2014-08-01 17:48:53 +0100
commitac31f19264d45df63fdd6591d66ae57060d1ee5e (patch)
treeb0701960ed1d695280376b34318b0eed8875958c /tools/intel_bios.h
parent525044ba32a9fa848c9fb36e8bd96211d6b38e12 (diff)
intel_bios_reader: Add support to dump MIPI Sequence block #53
Signed-off-by: Gaurav K Singh <gaurav.k.singh@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tools/intel_bios.h')
-rw-r--r--tools/intel_bios.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/intel_bios.h b/tools/intel_bios.h
index 752379a7..aedc5fcb 100644
--- a/tools/intel_bios.h
+++ b/tools/intel_bios.h
@@ -30,6 +30,7 @@
#include <stdint.h>
+
struct vbt_header {
char signature[20]; /**< Always starts with 'VBT$' */
uint16_t version; /**< decimal */
@@ -729,6 +730,31 @@ struct bdb_mipi_config {
struct mipi_pps_data pps[MAX_MIPI_CONFIGURATIONS];
} __attribute__ ((packed));
+/* variable number of these - max 6 */
+struct bdb_mipi_sequence {
+ uint8_t version;
+ uint8_t data[0];
+} __attribute__ ((packed));
+
+/* MIPI Sequnece Block definitions */
+enum MIPI_SEQ {
+ MIPI_SEQ_UNDEFINED = 0,
+ MIPI_SEQ_ASSERT_RESET,
+ MIPI_SEQ_INIT_OTP,
+ MIPI_SEQ_DISPLAY_ON,
+ MIPI_SEQ_DISPLAY_OFF,
+ MIPI_SEQ_DEASSERT_RESET,
+ MIPI_SEQ_MAX
+};
+
+enum MIPI_SEQ_ELEMENT {
+ MIPI_SEQ_ELEM_UNDEFINED = 0,
+ MIPI_SEQ_ELEM_SEND_PKT,
+ MIPI_SEQ_ELEM_DELAY,
+ MIPI_SEQ_ELEM_GPIO,
+ MIPI_SEQ_ELEM_MAX
+};
+
/*
* Driver<->VBIOS interaction occurs through scratch bits in
* GR18 & SWF*.