0439-drm-vc4-Fix-flipped-HVS-channels-for-DSI0-1.patch 907 B

123456789101112131415161718192021222324252627282930
  1. From d6bbcaf3c7706243fafc0d6ddf4136f9c83eb599 Mon Sep 17 00:00:00 2001
  2. From: Eric Anholt <eric@anholt.net>
  3. Date: Thu, 11 Feb 2016 12:29:45 -0800
  4. Subject: [PATCH] drm/vc4: Fix flipped HVS channels for DSI0/1.
  5. Empirically, DSI1 appears to be using HVS channel 0 on my Pi2.
  6. Signed-off-by: Eric Anholt <eric@anholt.net>
  7. ---
  8. drivers/gpu/drm/vc4/vc4_crtc.c | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. --- a/drivers/gpu/drm/vc4/vc4_crtc.c
  11. +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
  12. @@ -699,13 +699,13 @@ void vc4_cancel_page_flip(struct drm_crt
  13. }
  14. static const struct vc4_crtc_data pv0_data = {
  15. - .hvs_channel = 0,
  16. + .hvs_channel = 2,
  17. .encoder0_type = VC4_ENCODER_TYPE_DSI0,
  18. .encoder1_type = VC4_ENCODER_TYPE_DPI,
  19. };
  20. static const struct vc4_crtc_data pv1_data = {
  21. - .hvs_channel = 2,
  22. + .hvs_channel = 0,
  23. .encoder0_type = VC4_ENCODER_TYPE_DSI1,
  24. .encoder1_type = VC4_ENCODER_TYPE_SMI,
  25. };