aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-nct5104d
diff options
context:
space:
mode:
authorJasper Scholte <NightNL@outlook.com>2018-02-15 13:40:53 +0100
committerMathias Kresin <dev@kresin.me>2018-02-16 14:46:03 +0100
commit7da64807002cbe665176b125d8b2ee1a46d4e785 (patch)
treee42ba932e42cf84914cc2b53e740b26dcd670484 /package/kernel/gpio-nct5104d
parent188328111b46ebc9592ee0f5cbcd2439d1c4aef0 (diff)
downloadupstream-7da64807002cbe665176b125d8b2ee1a46d4e785.tar.gz
upstream-7da64807002cbe665176b125d8b2ee1a46d4e785.tar.bz2
upstream-7da64807002cbe665176b125d8b2ee1a46d4e785.zip
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>
Diffstat (limited to 'package/kernel/gpio-nct5104d')
-rw-r--r--package/kernel/gpio-nct5104d/src/gpio-nct5104d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
index 1ad1a6b10a..c139cf8d20 100644
--- a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
+++ b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
@@ -35,7 +35,8 @@
#define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
#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 };
@@ -350,7 +351,8 @@ static int __init nct5104d_find(int addr, struct nct5104d_sio *sio)
devid = superio_inw(addr, SIO_CHIPID);
switch (devid) {
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;
/* enable GPIO0 and GPIO1 */
superio_select(addr, SIO_LD_GPIO);