Also attach spdmem on Gdium.
authormiod <miod@openbsd.org>
Wed, 10 Aug 2022 15:00:58 +0000 (15:00 +0000)
committermiod <miod@openbsd.org>
Wed, 10 Aug 2022 15:00:58 +0000 (15:00 +0000)
sys/arch/loongson/dev/gdiumiic.c

index b247a0e..970aaed 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: gdiumiic.c,v 1.8 2022/04/06 18:59:26 naddy Exp $      */
+/*     $OpenBSD: gdiumiic.c,v 1.9 2022/08/10 15:00:58 miod Exp $       */
 
 /*
  * Copyright (c) 2010 Miodrag Vallat.
@@ -370,6 +370,13 @@ gdiumiic_sensors_scan(struct device *iicdev, struct i2cbus_attach_args *iba,
        ia.ia_name = "lm75";
        config_found(iicdev, &ia, iic_print);
 
+       bzero(&ia, sizeof ia);
+       ia.ia_tag = iba->iba_tag;
+       ia.ia_addr = 0x51;
+       ia.ia_size = 1;
+       ia.ia_name = "spd";
+       config_found(iicdev, &ia, iic_print);
+
        bzero(&ia, sizeof ia);
        ia.ia_tag = iba->iba_tag;
        ia.ia_addr = 0x68;