From owner-svn-src-head@freebsd.org Thu May 17 10:19:53 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DAC69EE66A3; Thu, 17 May 2018 10:19:53 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 897FB7822A; Thu, 17 May 2018 10:19:53 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 685F627CE0; Thu, 17 May 2018 10:19:53 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4HAJrnR037799; Thu, 17 May 2018 10:19:53 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4HAJrrI037798; Thu, 17 May 2018 10:19:53 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201805171019.w4HAJrrI037798@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Thu, 17 May 2018 10:19:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333708 - in head/sys: conf modules X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: in head/sys: conf modules X-SVN-Commit-Revision: 333708 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2018 10:19:54 -0000 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