summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-12-30 03:48:39 +0000
committermarcel <marcel@FreeBSD.org>2011-12-30 03:48:39 +0000
commitf19f110a1820707079803b8328113f09ad87a22f (patch)
tree9ed47bbbd73f4d17901d892782d536b59a895dd2
parentb8f81a9070810921b4d908974c477fb99ace61cb (diff)
downloadFreeBSD-src-f19f110a1820707079803b8328113f09ad87a22f.zip
FreeBSD-src-f19f110a1820707079803b8328113f09ad87a22f.tar.gz
Add a module for cfi(4). Build only for arm and powerpc, as there are
only bus attachments only for these.
-rw-r--r--sys/modules/Makefile6
-rw-r--r--sys/modules/cfi/Makefile19
2 files changed, 25 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index a8bf719..3a3f5e2 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -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
diff --git a/sys/modules/cfi/Makefile b/sys/modules/cfi/Makefile
new file mode 100644
index 0000000..a11ebd1
--- /dev/null
+++ b/sys/modules/cfi/Makefile
@@ -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>
OpenPOWER on IntegriCloud