OSDN Git Service

genX_mfd: clean up the use of profile bitstream element
authorcarpalis <jerome.borsboom@carpalis.nl>
Wed, 1 Nov 2017 18:45:42 +0000 (19:45 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 5 Jan 2018 06:57:31 +0000 (14:57 +0800)
commitfb65a37b90f35abed8b628da060246daad7ec4ca
tree26962b742a1a03b1d369fe0874f96ae991ea8afd
parent30da278c3ce4d80afa35e37154cf32c585c3e3a9
genX_mfd: clean up the use of profile bitstream element

Only gen6 needs mapping from input range to the hardware range for
the profile bitstream element. For gen7 and up there is no need for a
mapping as the hardware uses only one bit indicating simple/main profile
or advanced profile. Therefore, we can remove the mapping for gen7 and
clean up the code a bit.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
src/gen6_mfd.c
src/gen75_mfd.c
src/gen7_mfd.c
src/gen7_mfd.h
src/gen8_mfd.c