From: Ben Widawsky Date: Fri, 20 Sep 2013 16:35:30 +0000 (-0700) Subject: drm/i915: Calculate PSR register offsets from base + gen X-Git-Tag: v3.13-rc1~76^2~80^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b5992c37560dffc52b84dec7f83738847cf5c7;p=pandora-kernel.git drm/i915: Calculate PSR register offsets from base + gen Future generations will be changing these registers (thanks to design for giving us an early heads up). To help abstract, create the definition of the base of the register block, and define all registers relative to that. Design has promised to not change the offsets relative to the base. v2: Also change IS_HASWELL checks to HAS_PSR CC: Rodrigo Vivi CC: Intel GFX Signed-off-by: Ben Widawsky Reviewed-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed