From patchwork Tue Aug 2 19:31:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Weiser X-Patchwork-Id: 9260259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6B406077C for ; Tue, 2 Aug 2016 19:39:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B682B27F99 for ; Tue, 2 Aug 2016 19:39:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9F5F284F2; Tue, 2 Aug 2016 19:39:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6802927F99 for ; Tue, 2 Aug 2016 19:39:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUfVp-0000kH-3D; Tue, 02 Aug 2016 19:38:01 +0000 Received: from heinz.dinsnail.net ([85.214.155.104]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUfVi-0000fa-5Q for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2016 19:37:55 +0000 Received: from heinz.dinsnail.net (localhost [127.0.0.1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id u72Ja3Uv005335; Tue, 2 Aug 2016 21:36:03 +0200 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id u72Ja3wZ005334; Tue, 2 Aug 2016 21:36:03 +0200 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [192.168.1.8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.8) with ESMTP id u72JWDXl014606; Tue, 2 Aug 2016 21:32:13 +0200 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id u72JWDqY001642; Tue, 2 Aug 2016 21:32:13 +0200 From: Michael Weiser To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] ARM: sunxi: enable big-endian Date: Tue, 2 Aug 2016 21:31:15 +0200 Message-Id: <20160802193115.850-6-michael.weiser@gmx.de> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160802193115.850-1-michael.weiser@gmx.de> References: <20160802193115.850-1-michael.weiser@gmx.de> X-dinsnail.net-MailScanner-ID: u72Ja3Uv005335 X-MailScanner: Found to be clean X-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160802_123754_617380_4B6C4A09 X-CRM114-Status: UNSURE ( 7.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Michael Weiser , Chen-Yu Tsai MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With previous fixes to stmmac, sun4i-emac and sun4i-mmc at least the Cubieboard2 incarnation of sunxi works correctly in big-endian mode. Allow the selection of big-endian. Tested using a Cubieboard Two-Card and the following hardware-components: - GMAC (stmmac) - EMAC (sun4i-emac) - SATA - SPI - UART - security system - touchscreen controller hwmon functionality - pinctrl (custom interrupt for SPI ethernet controller) - watchdog as reset controller - onboard RTC - DS1307 I2C RTC - sound codec and with this indirectly the DMA engine Signed-off-by: Michael Weiser Cc: Maxime Ripard Cc: Chen-Yu Tsai Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 096ed21..cdeba4a 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -1,6 +1,7 @@ menuconfig ARCH_SUNXI bool "Allwinner SoCs" depends on ARCH_MULTI_V7 + select ARCH_SUPPORTS_BIG_ENDIAN select ARCH_HAS_RESET_CONTROLLER select CLKSRC_MMIO select GENERIC_IRQ_CHIP