5c050c465e
a sample driver for the TI TMP121 temperature sensor. This has been moderately tested on Au1550, and it is not enabled in sys/conf (yet). So the change is harmless at worst, and useful at best. Alchemy Au1550 bus driver forthcoming, along with a driver for SPI flash devices, such as found on the Meraki Mini This development was partially funded by the Champaign-Urbana Community Wireless Network Project. Note that there are some MD-specific SPI drivers that could probably be made MI under this new framework.
17 lines
315 B
Plaintext
17 lines
315 B
Plaintext
# $NetBSD: files.spi,v 1.1 2006/10/02 07:18:19 gdamore Exp $
|
|
|
|
define spibus { }
|
|
|
|
device spi { slave }
|
|
attach spi at spibus
|
|
file dev/spi/spi.c spi | spibus
|
|
|
|
#
|
|
# SPI client devices
|
|
#
|
|
|
|
# TI TMP121 digital temperature sensor
|
|
device tmp121temp: sysmon_envsys
|
|
attach tmp121temp at spi
|
|
file dev/spi/tmp121.c tmp121temp
|