Author: manu Date: Thu May 17 10:19:52 2018 New Revision: 333708 URL: https://svnweb.freebsd.org/changeset/base/333708
Log: allwinner: Add h3 spi driver This driver is compatible with H3/H5/A64. Test was done on the OrangePi-PC2 board (H5 based), which have a mx25l1606e spi flash on it, by writing u-boot image, reading it and booting from the spi. There is still room for improvement especially on reading using the controller automatic burst which will avoid us to write dummy data to the TX FIFO. DMA is also not supported as we currently don't support the DMA controller on those SoCs Only add a kernel module for it. Modified: head/sys/conf/files.arm64 head/sys/modules/Makefile Modified: head/sys/conf/files.arm64 ============================================================================== --- head/sys/conf/files.arm64 Thu May 17 10:16:20 2018 (r333707) +++ head/sys/conf/files.arm64 Thu May 17 10:19:52 2018 (r333708) @@ -33,6 +33,7 @@ arm/allwinner/aw_nmi.c optional aw_nmi fdt \ arm/allwinner/aw_rsb.c optional aw_rsb fdt arm/allwinner/aw_rtc.c optional aw_rtc fdt arm/allwinner/aw_sid.c optional aw_sid fdt +arm/allwinner/aw_spi.c optional aw_spi fdt arm/allwinner/aw_thermal.c optional aw_thermal fdt arm/allwinner/aw_usbphy.c optional ehci aw_usbphy fdt arm/allwinner/aw_wdog.c optional aw_wdog fdt Modified: head/sys/modules/Makefile ============================================================================== --- head/sys/modules/Makefile Thu May 17 10:16:20 2018 (r333707) +++ head/sys/modules/Makefile Thu May 17 10:19:52 2018 (r333708) @@ -42,6 +42,7 @@ SUBDIR= \ ${_aout} \ ${_apm} \ ${_arcmsr} \ + ${_allwinner} \ ${_armv8crypto} \ ${_asmc} \ ata \ @@ -558,6 +559,7 @@ _cxgb= cxgb .endif .if ${MACHINE_CPUARCH} == "aarch64" +_allwinner= allwinner _armv8crypto= armv8crypto _efirt= efirt _em= em _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"