diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-12-21 16:18:20 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-12-22 14:21:22 +0200 |
commit | 9c4aa072f071d4cfe1513a723419f43e43fe3293 (patch) | |
tree | 0c27df22f5791a7478ed0cdee5a930fa33c0447f /tools/intel_bios.h | |
parent | 68cfe4ba575064c798ef9857781fa4969319e876 (diff) |
intel_bios_reader: rewrite the mipi sequence block dumping
Simplify things a lot, make it correct, don't pass random pointers to
free() on errors, etc.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/intel_bios.h')
-rw-r--r-- | tools/intel_bios.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tools/intel_bios.h b/tools/intel_bios.h index 6135a2b4..b7ebd48e 100644 --- a/tools/intel_bios.h +++ b/tools/intel_bios.h @@ -763,22 +763,31 @@ struct bdb_mipi_sequence { uint8_t data[0]; } __attribute__ ((packed)); -/* MIPI Sequnece Block definitions */ -enum MIPI_SEQ { - MIPI_SEQ_UNDEFINED = 0, +/* MIPI Sequence Block definitions */ +enum mipi_seq { + MIPI_SEQ_END = 0, MIPI_SEQ_ASSERT_RESET, MIPI_SEQ_INIT_OTP, MIPI_SEQ_DISPLAY_ON, MIPI_SEQ_DISPLAY_OFF, MIPI_SEQ_DEASSERT_RESET, + MIPI_SEQ_BACKLIGHT_ON, /* sequence block v2+ */ + MIPI_SEQ_BACKLIGHT_OFF, /* sequence block v2+ */ + MIPI_SEQ_TEAR_ON, /* sequence block v2+ */ + MIPI_SEQ_TEAR_OFF, /* sequence block v3+ */ + MIPI_SEQ_POWER_ON, /* sequence block v3+ */ + MIPI_SEQ_POWER_OFF, /* sequence block v3+ */ MIPI_SEQ_MAX }; -enum MIPI_SEQ_ELEMENT { - MIPI_SEQ_ELEM_UNDEFINED = 0, +enum mipi_seq_element { + MIPI_SEQ_ELEM_END = 0, MIPI_SEQ_ELEM_SEND_PKT, MIPI_SEQ_ELEM_DELAY, MIPI_SEQ_ELEM_GPIO, + MIPI_SEQ_ELEM_I2C, /* sequence block v2+ */ + MIPI_SEQ_ELEM_SPI, /* sequence block v3+ */ + MIPI_SEQ_ELEM_PMIC, /* sequence block v3+ */ MIPI_SEQ_ELEM_MAX }; |