-/* $OpenBSD: axppmic.c,v 1.17 2023/07/06 20:02:36 uaa Exp $ */
+/* $OpenBSD: axppmic.c,v 1.18 2023/07/31 09:00:43 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
/* RSB interface */
+#include "sxirsb.h"
+
+#if NSXIRSB > 0
+
int axppmic_rsb_match(struct device *, void *, void *);
void axppmic_rsb_attach(struct device *, struct device *, void *);
rsb_write_1(sc->sc_cookie, sc->sc_addr, reg, value);
}
+#endif
+
/* Common code */
void axppmic_attach_node(struct axppmic_softc *, int);
-# $OpenBSD: files.fdt,v 1.196 2023/07/22 22:43:53 patrick Exp $
+# $OpenBSD: files.fdt,v 1.197 2023/07/31 09:00:43 kettenis Exp $
#
# Config file and device description for machine-independent FDT code.
# Included by ports that need it.
define rsb {}
device sxirsb: rsb
attach sxirsb at fdt
-file dev/fdt/sxirsb.c sxirsb
+file dev/fdt/sxirsb.c sxirsb needs-flag
device sxipwm
attach sxipwm at fdt