diff options
author | Jani Nikula <jani.nikula@intel.com> | 2017-08-25 13:51:25 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2017-08-29 17:26:19 +0300 |
commit | ef52ae2cf9a52d8380a7335e5e87c495f557f8e9 (patch) | |
tree | 490a81dfd1235fed909291419be00d02aa75ff46 /tools/intel_vbt_decode.c | |
parent | 09f35ea4dc0656f7dcd3f2427c469822f55dcbc0 (diff) |
tools/intel_vbt_decode: migrate timing dumping to kernel struct
Adapt the dumping according to the changes, and do what the kernel does.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/intel_vbt_decode.c')
-rw-r--r-- | tools/intel_vbt_decode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c index 836a9783..2e4eba29 100644 --- a/tools/intel_vbt_decode.c +++ b/tools/intel_vbt_decode.c @@ -950,7 +950,8 @@ print_detail_timing_data(const struct lvds_dvo_timing *dvo_timing) display = (dvo_timing->hactive_hi << 8) | dvo_timing->hactive_lo; sync_start = display + ((dvo_timing->hsync_off_hi << 8) | dvo_timing->hsync_off_lo); - sync_end = sync_start + dvo_timing->hsync_pulse_width; + sync_end = sync_start + ((dvo_timing->hsync_pulse_width_hi << 8) | + dvo_timing->hsync_pulse_width_lo); total = display + ((dvo_timing->hblank_hi << 8) | dvo_timing->hblank_lo); printf("\thdisplay: %d\n", display); @@ -959,8 +960,10 @@ print_detail_timing_data(const struct lvds_dvo_timing *dvo_timing) printf("\thtotal: %d\n", total); display = (dvo_timing->vactive_hi << 8) | dvo_timing->vactive_lo; - sync_start = display + dvo_timing->vsync_off; - sync_end = sync_start + dvo_timing->vsync_pulse_width; + sync_start = display + ((dvo_timing->vsync_off_hi << 8) | + dvo_timing->vsync_off_lo); + sync_end = sync_start + ((dvo_timing->vsync_pulse_width_hi << 8) | + dvo_timing->vsync_pulse_width_lo); total = display + ((dvo_timing->vblank_hi << 8) | dvo_timing->vblank_lo); printf("\tvdisplay: %d\n", display); |