• H
    hwmon/f71882fg: Add support for f71889ed · 3cad4022
    Hans de Goede 提交于
    Note that this patch also makes 2 changes to the code paths for the f71889fg
    to keep the code unified between the 2 (for simplicities sake). Both of these
    are harmless for then f71889fg:
    
    1) The first change is to always set the FAN_PROG_SEL bit to 0. This influences
       accesses to some banked fan / pwm registers. On the f71889fg no registers
       which we use are banked. On the f71889ed however some more fan registers
       have been banked including one which we use, by making the FAN_PROG_SEL bit
       0, address 0x96 will point to the right register.
    2) The second change is to see a FANx_TEMP_SEL value of 0 as pointing to
       a PECI / AMDSI value, and thus disable our pwm related sysfs attr.
       This is correct for the f71889ed and on the f71889fg 0 is a reserved
       value, so we should never see it and if we do, disabling the pwm related
       sysfs attr is a sane thing to do.
    Signed-off-by: NHans de Goede <hdegoede@redhat.com>
    Tested-by: NThomas Greve <tg42@gmx.net>
    Tested-by: NSander Eikelenboom <linux@eikelenboom.it>
    Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
    3cad4022
f71882fg 4.2 KB