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/eaf1200875c8
branches:  trunk
changeset: 964515:eaf1200875c8
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 0d68d244c8c1 -r eaf1200875c8 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