i915/dp/dsc: Add Rate Control Buffer Threshold Registers
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Tue, 17 Jul 2018 21:11:00 +0000 (14:11 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 19 Jul 2018 00:47:45 +0000 (17:47 -0700)
commitdbda5111e2d85ff67452e9f8b82fc9eee73a224c
tree0076715511dd9bc917dffede27c67f4c4f3b7068
parent2efbb2f099fb75d95150bf2f4029b641ecbd1503
i915/dp/dsc: Add Rate Control Buffer Threshold Registers

Add register defines and  shifts that control the RC buffer threshold
between encoder and decoder for eDP/MIPI and DP cases.

The actual values are calculated usung a helper function.
This patch adds the shifts to registers where the value will
be written during atomic commit.

v2:
- Use _MMIO_PIPE() instead of _MMIO_(_PICK()) (Manasi)
- Combine shifts (Manasi)

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1531861861-10950-3-git-send-email-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/i915_reg.h