Add build glue for modular spdmem(4) driver, and enable it

This commit is contained in:
pgoyette 2011-08-01 03:51:05 +00:00
parent e3bc45f1ac
commit c3df63d89d
3 changed files with 35 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.80 2011/07/31 17:55:41 jmcneill Exp $
# $NetBSD: Makefile,v 1.81 2011/08/01 03:51:05 pgoyette Exp $
.include <bsd.own.mk>
@ -55,6 +55,7 @@ SUBDIR+= secmodel_bsd44
SUBDIR+= secmodel_overlay
SUBDIR+= securelevel
SUBDIR+= smbfs
SUBDIR+= spdmem
SUBDIR+= sysvbfs
SUBDIR+= suser
SUBDIR+= swsensor

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2011/08/01 03:51:05 pgoyette Exp $
.include "../Makefile.inc"
.PATH: ${S}/dev/i2c
KMOD= spdmem
IOCONF= spdmem.ioconf
SRCS= spdmem_i2c.c
.PATH: ${S}/dev/ic
SRCS+= spdmem.c
WARNS= 4
.include <bsd.kmodule.mk>

View File

@ -0,0 +1,16 @@
# $NetBSD: spdmem.ioconf,v 1.1 2011/08/01 03:51:05 pgoyette Exp $
ioconf spdmem
include "conf/files"
pseudo-root iic*
spdmem0 at iic? addr 0x50
spdmem1 at iic? addr 0x51
spdmem2 at iic? addr 0x52
spdmem3 at iic? addr 0x53
spdmem4 at iic? addr 0x54
spdmem5 at iic? addr 0x55
spdmem6 at iic? addr 0x56
spdmem7 at iic? addr 0x57