-/* $OpenBSD: stftemp.c,v 1.1 2022/06/12 10:51:55 kettenis Exp $ */
+/* $OpenBSD: stftemp.c,v 1.2 2023/07/01 08:20:38 jsing Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
{
struct fdt_attach_args *faa = aux;
- return OF_is_compatible(faa->fa_node, "starfive,jh7100-temp");
+ return OF_is_compatible(faa->fa_node, "starfive,jh7100-temp") ||
+ OF_is_compatible(faa->fa_node, "starfive,jh7110-temp");
}
void
stftemp_refresh_sensors(void *arg)
{
struct stftemp_softc *sc = arg;
-
+
sc->sc_sensor.value = 273150000 + 1000 * stftemp_get_temp(sc);
sc->sc_sensor.flags &= ~SENSOR_FINVALID;
}