Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen ...
details: https://anonhg.NetBSD.org/src/rev/32c12db57675
branches: trunk
changeset: 460976:32c12db57675
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Nov 12 07:40:04 2019 +0000
description:
match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen on some rockpro64s.
diffstat:
sys/dev/i2c/fan53555.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 3b295a57e851 -r 32c12db57675 sys/dev/i2c/fan53555.c
--- a/sys/dev/i2c/fan53555.c Tue Nov 12 05:13:29 2019 +0000
+++ b/sys/dev/i2c/fan53555.c Tue Nov 12 07:40:04 2019 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
#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 @@
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;
Home |
Main Index |
Thread Index |
Old Index