Module Name: src
Committed By: tnn
Date: Mon Aug 5 23:42:48 UTC 2019
Modified Files:
src/sys/dev/spi: files.spi
Log Message:
spi: make the "slave" config(5) locator optional
needed to be able to support FDT direct attachment of SPI slaves
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/spi/files.spi
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/spi/files.spi
diff -u src/sys/dev/spi/files.spi:1.5 src/sys/dev/spi/files.spi:1.6
--- src/sys/dev/spi/files.spi:1.5 Tue Aug 18 15:54:20 2015
+++ src/sys/dev/spi/files.spi Mon Aug 5 23:42:48 2019
@@ -1,8 +1,8 @@
-# $NetBSD: files.spi,v 1.5 2015/08/18 15:54:20 phx Exp $
+# $NetBSD: files.spi,v 1.6 2019/08/05 23:42:48 tnn Exp $
define spibus { }
-device spi { slave }
+device spi { [slave = -1] }
attach spi at spibus
file dev/spi/spi.c spi | spibus