Skip to content

Commit

Permalink
hwmon: (nct6775) Add missing voltage input on NCT6796D Part 2
Browse files Browse the repository at this point in the history
Noticed in the documentation that the NCT6796D actually has 16 analog voltage inputs, where only 15 are configured.
See: NCT6796D_Datasheet_V0_6.pdf page 59-60:

8.6.2.1. Voltage Reading
NCT6796D has 16 voltage reading:
.....
and the missing one in the driver:
VIN9: Voltage reading Bank 4, Index 8F

This patch adds support for in15 on the NCT6796D.

Signed-off-by: Henk Vergonet <henk.vergont@gmail.com>
  • Loading branch information
Henk Vergonet committed Jul 7, 2021
1 parent 0180563 commit 00b3427
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/hwmon/nct6775.c
Expand Up @@ -209,14 +209,14 @@ superio_exit(int ioreg)

/* Common and NCT6775 specific data */

/* Voltage min/max registers for nr=7..14 are in bank 5 */
/* Voltage min/max registers for nr=7..15 are in bank 5 */

static const u16 NCT6775_REG_IN_MAX[] = {
0x2b, 0x2d, 0x2f, 0x31, 0x33, 0x35, 0x37, 0x554, 0x556, 0x558, 0x55a,
0x55c, 0x55e, 0x560, 0x562 };
0x55c, 0x55e, 0x560, 0x562, 0x564 };
static const u16 NCT6775_REG_IN_MIN[] = {
0x2c, 0x2e, 0x30, 0x32, 0x34, 0x36, 0x38, 0x555, 0x557, 0x559, 0x55b,
0x55d, 0x55f, 0x561, 0x563 };
0x55d, 0x55f, 0x561, 0x563, 0x565 };
static const u16 NCT6775_REG_IN[] = {
0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x550, 0x551, 0x552
};
Expand Down Expand Up @@ -478,7 +478,7 @@ static const u16 NCT6776_REG_TEMP_CRIT[32] = {

static const u16 NCT6779_REG_IN[] = {
0x480, 0x481, 0x482, 0x483, 0x484, 0x485, 0x486, 0x487,
0x488, 0x489, 0x48a, 0x48b, 0x48c, 0x48d, 0x48e };
0x488, 0x489, 0x48a, 0x48b, 0x48c, 0x48d, 0x48e, 0x48f };

static const u16 NCT6779_REG_ALARM[NUM_REG_ALARM] = {
0x459, 0x45A, 0x45B, 0x568 };
Expand Down

0 comments on commit 00b3427

Please sign in to comment.