gpio-nct5104d: Add support for new chip ID
The PC Engines APU3b has a new nct5104b version with chip ID 0xc453. This adds support for that version. Signed-off-by: Jasper Scholte <NightNL@outlook.com>
This commit is contained in:
parent
188328111b
commit
7da6480700
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,8 @@
|
||||||
#define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
|
#define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
|
||||||
|
|
||||||
#define SIO_NCT5104D_ID 0x1061 /* Chip ID */
|
#define SIO_NCT5104D_ID 0x1061 /* Chip ID */
|
||||||
#define SIO_PCENGINES_APU_NCT5104D_ID 0xc452 /* Chip ID */
|
#define SIO_PCENGINES_APU_NCT5104D_ID1 0xc452 /* Chip ID */
|
||||||
|
#define SIO_PCENGINES_APU_NCT5104D_ID2 0xc453 /* Chip ID */
|
||||||
|
|
||||||
enum chips { nct5104d };
|
enum chips { nct5104d };
|
||||||
|
|
||||||
|
@ -350,7 +351,8 @@ static int __init nct5104d_find(int addr, struct nct5104d_sio *sio)
|
||||||
devid = superio_inw(addr, SIO_CHIPID);
|
devid = superio_inw(addr, SIO_CHIPID);
|
||||||
switch (devid) {
|
switch (devid) {
|
||||||
case SIO_NCT5104D_ID:
|
case SIO_NCT5104D_ID:
|
||||||
case SIO_PCENGINES_APU_NCT5104D_ID:
|
case SIO_PCENGINES_APU_NCT5104D_ID1:
|
||||||
|
case SIO_PCENGINES_APU_NCT5104D_ID2:
|
||||||
sio->type = nct5104d;
|
sio->type = nct5104d;
|
||||||
/* enable GPIO0 and GPIO1 */
|
/* enable GPIO0 and GPIO1 */
|
||||||
superio_select(addr, SIO_LD_GPIO);
|
superio_select(addr, SIO_LD_GPIO);
|
||||||
|
|
Loading…
Reference in a new issue