drm/i915/dmc: extract function to parse package_header
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 7 Jun 2019 09:12:26 +0000 (02:12 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 17 Jun 2019 19:32:30 +0000 (12:32 -0700)
commit32fd773384afc2b9e8dfc9c8ee1927f34b852fab
treef3e52e5a331ea8605c477519848ab26f356cf55b
parent46fcbe4b5e40d5f0862b44cd1c7d9adbbe59f511
drm/i915/dmc: extract function to parse package_header

Like parse_csr_fw_css() this parses the package_header from firmware and
saves the relevant fields in the csr struct. In this function we also
lookup the fw_info we are interested in.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190607091230.1489-6-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_csr.c