Module Name:    src
Committed By:   mrg
Date:           Tue Nov 12 07:40:04 UTC 2019

Modified Files:
        src/sys/dev/i2c: fan53555.c

Log Message:
match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen on some rockpro64s.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/fan53555.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/fan53555.c
diff -u src/sys/dev/i2c/fan53555.c:1.3 src/sys/dev/i2c/fan53555.c:1.4
--- src/sys/dev/i2c/fan53555.c:1.3	Sat Jun 29 14:45:10 2019
+++ src/sys/dev/i2c/fan53555.c	Tue Nov 12 07:40:04 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: fan53555.c,v 1.3 2019/06/29 14:45:10 jmcneill Exp $ */
+/* $NetBSD: fan53555.c,v 1.4 2019/11/12 07:40:04 mrg Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fan53555.c,v 1.3 2019/06/29 14:45:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fan53555.c,v 1.4 2019/11/12 07:40:04 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -54,6 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: fan53555.c,v
 #define	 ID1_VENDOR			__BITS(7,5)
 #define	 ID1_DIE_ID			__BITS(3,0)
 #define	  SILERGY_DIE_ID_SYR82X		8
+#define	  SILERGY_DIE_ID_SYR83X		9
 #define	ID2_REG			0x04
 #define	 ID2_DIE_REV			__BITS(3,0)
 #define	MONITOR_REG		0x05
@@ -231,6 +232,11 @@ fan53555_init(struct fan53555_softc *sc,
 			sc->sc_base = 712500;
 			sc->sc_step = 12500;
 			break;
+		case SILERGY_DIE_ID_SYR83X:
+			aprint_normal(": Silergy SYR83X\n");
+			sc->sc_base = 712500;
+			sc->sc_step = 12500;
+			break;
 		default:
 			aprint_error(": Unsupported Silergy chip (0x%x)\n", die_id);
 			return ENXIO;

Reply via email to