drm/i915/icp: Get/set proper Raw clock frequency on ICP
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Thu, 11 Jan 2018 18:00:06 +0000 (16:00 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 19 Jan 2018 19:55:52 +0000 (17:55 -0200)
commit4ef99abd07ef3ceb014b4359ec4a977d7ae8a8f9
tree093460c8737c949289794dda45409c9894a0afa3
parent0b58436f2d9ad20a4622e96a7a024e6f196f127e
drm/i915/icp: Get/set proper Raw clock frequency on ICP

Add register definitions for setting the rawclock.
Set the numerator,denominator and divider values.

v2: Simplify the commit message. Simplify the math.
Add  register bits for numerator. (Paulo)
v3 (from Paulo): coding style bikesheds.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180111180010.24357-5-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_cdclk.c