Add a module for cfi(4). Build only for arm and powerpc, as there are

only bus attachments only for these.
This commit is contained in:
Marcel Moolenaar 2011-12-30 03:48:39 +00:00
parent a3388f6d69
commit 2064b86fc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228981
2 changed files with 25 additions and 0 deletions

View File

@ -57,6 +57,7 @@ SUBDIR= ${_3dfx} \
cd9660 \
cd9660_iconv \
${_ce} \
${_cfi} \
${_ciss} \
${_cm} \
${_cmx} \
@ -654,6 +655,10 @@ _zfs= zfs
.endif
.endif
.if ${MACHINE_CPUARCH} == "arm"
_cfi= cfi
.endif
.if ${MACHINE_CPUARCH} == "ia64"
_aac= aac
_aic= aic
@ -697,6 +702,7 @@ _xe= xe
_agp= agp
_an= an
_bm= bm
_cfi= cfi
_cpufreq= cpufreq
_nvram= powermac_nvram
_smbfs= smbfs

19
sys/modules/cfi/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../dev/cfi
KMOD= cfi
SRCS= ${_cfi_bus} cfi_core.c cfi_dev.c
SRCS+= bus_if.h device_if.h opt_cfi.h
.if ${MACHINE} == "arm"
_cfi_bus= cfi_bus_fdt.c cfi_bus_ixp4xx.c
.endif
.if ${MACHINE} == "powerpc"
_cfi_bus= cfi_bus_fdt.c
.endif
opt_cfi.h:
echo "#define CFI_SUPPORT_STRATAFLASH 1" > ${.TARGET}
.include <bsd.kmod.mk>