Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/spi spi: make the "slave" config(5) locator optional



details:   https://anonhg.NetBSD.org/src/rev/985b121012e4
branches:  trunk
changeset: 453274:985b121012e4
user:      tnn <tnn%NetBSD.org@localhost>
date:      Mon Aug 05 23:42:48 2019 +0000

description:
spi: make the "slave" config(5) locator optional

needed to be able to support FDT direct attachment of SPI slaves

diffstat:

 sys/dev/spi/files.spi |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 6aaba436a437 -r 985b121012e4 sys/dev/spi/files.spi
--- a/sys/dev/spi/files.spi     Mon Aug 05 22:03:10 2019 +0000
+++ b/sys/dev/spi/files.spi     Mon Aug 05 23:42:48 2019 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index