From: miod Date: Wed, 10 Aug 2022 15:00:58 +0000 (+0000) Subject: Also attach spdmem on Gdium. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c9c35ed080d7dfec5a148834806ea8a72349c269;p=openbsd Also attach spdmem on Gdium. --- diff --git a/sys/arch/loongson/dev/gdiumiic.c b/sys/arch/loongson/dev/gdiumiic.c index b247a0e2eed..970aaed35be 100644 --- a/sys/arch/loongson/dev/gdiumiic.c +++ b/sys/arch/loongson/dev/gdiumiic.c @@ -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;