diff options
author | Shobhit Kumar <shobhit.kumar@intel.com> | 2014-04-14 01:30:34 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-04-14 03:56:12 -0400 |
commit | d3b542fcfc72d7724585e3fd2c5e75351bc3df47 (patch) | |
tree | 5ec983f5813e2b26a50740e9862f436d77e9c7b6 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 773875bfb6737982903c42d1ee88cf60af80089c (diff) |
drm/i915: Add parsing support for new MIPI blocks in VBT
The parser extracts the config block(#52) and sequence(#53) data
and store in private data structures.
v2: Address review comments by Jani
- adjust code for the structure changes for bdb_mipi_config
- add boundry and buffer overflow checks as suggested
- use kmemdup instead of kmalloc and memcpy
v3: More strict check while parsing VBT
- Ensure that at anytime we do not go beyond sequence block
while parsing
- On unknown element fail the whole parsing
v4: Style changes and spell check mostly as suggested by Jani
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 761fc53e6044..92c30950c2b2 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1169,6 +1169,12 @@ struct intel_vbt_data { | |||
1169 | /* MIPI DSI */ | 1169 | /* MIPI DSI */ |
1170 | struct { | 1170 | struct { |
1171 | u16 panel_id; | 1171 | u16 panel_id; |
1172 | struct mipi_config *config; | ||
1173 | struct mipi_pps_data *pps; | ||
1174 | u8 seq_version; | ||
1175 | u32 size; | ||
1176 | u8 *data; | ||
1177 | u8 *sequence[MIPI_SEQ_MAX]; | ||
1172 | } dsi; | 1178 | } dsi; |
1173 | 1179 | ||
1174 | int crt_ddc_pin; | 1180 | int crt_ddc_pin; |