From patchwork Tue Nov 13 16:06:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thor Thayer X-Patchwork-Id: 10681067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E30A014BA for ; Tue, 13 Nov 2018 16:05:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEC2C2074F for ; Tue, 13 Nov 2018 16:05:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE864285DA; Tue, 13 Nov 2018 16:05:21 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03C722074F for ; Tue, 13 Nov 2018 16:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=vj5UV+Wgr3kJjpZ61Ub798lZ1K8VoysRfk4wl+nC7qw=; b=WMX WdmG4qWA4u/QVgLHSYhoBhlDPUnstW9LW63ShpJ1RDmhtMZ/MEdx7zDeCcsYHqBT10JAxHhT0xy9F 2fWxFKKrwiSRzQ6A38owWBUZpvpvw6dazvDEAEMIibxfvAg9X7Mg2X7jCOrV8G+fsJ7WJVcZjaeZw fs+MFgQDbpqP/uv09FbRSr4Ca+qaqA5xiNFo271ozvzT+CRbyy81vbV/GDOC2naMYxG0ys+qUoneJ sLK/Phb06DeIOiaMCbVgoflwQUaysMb+B2zbdyq1xDeFq8H4CrCD8pAyzqfF2EhPRAWAh4LuqHVIh FD4pixZNGX280ukSYTYOXDXYwiFACJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMbBg-000212-6n; Tue, 13 Nov 2018 16:05:12 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMbBf-00020p-2e for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 16:05:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xrZfawlPjkRtTp6mcKL5tPv+ysfL6247oF9drhZk7vw=; b=TnoUT9xO7TXfIsSvJRHWjyVCu icyHhqA/qeeCS7iQomIaxvtRGv9DBXA4TknJMChtEYYF2CyFEnoNcS0oQEzGReI8dnTasI0n3tGcM j8FroLHcqwYr7Nr129/lVPbKRMDF78xRm83rpRaMfOB7mB80do/17SMfWse++8A36mFC8AyYZFNCp TJ0QS2D2SjddGORBknUu5roM3KdII/LI/2ExLzN4OS9/ouHLW40t3smPk0Vi8BlouXw5I7D5ZqsHO 71ZtLrABiS69EuHTytAGrKoDLxn6meyuX+ZFl9ZWdzIOaSZgVkFQDMlHCwSPwW1jbnalaJ2yxsEGK wmusaM47w==; Received: from mga12.intel.com ([192.55.52.136]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMbBb-0003vp-2t for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 16:05:09 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 08:03:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,499,1534834800"; d="scan'208";a="280745431" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by fmsmga006.fm.intel.com with ESMTP; 13 Nov 2018 08:03:52 -0800 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, dinguyen@kernel.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com Subject: [RESEND 0/4] Add SOCFPGA System Manager Date: Tue, 13 Nov 2018 10:06:10 -0600 Message-Id: <1542125174-8204-1-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_160507_612578_C70E58EC X-CRM114-Status: GOOD ( 13.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thor Thayer , arnd@arndb.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, olof@lixom.net, mcoquelin.stm32@gmail.com, mchehab+samsung@kernel.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org 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 From: Thor Thayer Add MFD driver for ARM64 SOCFPGA System Manager to steer System Manager calls appropriately. The SOCFPGA System Manager includes registers from several SOC peripherals. On ARM32, syscon handles this aggregated register grouping. Redirect System Manager calls to syscon for ARM32 SOCFPGA systems. The ARM64 System Manager can only be accessed from priority level EL3 so this new MFD driver handles the calls to EL3. Thor Thayer (4): mfd: altera-sysmgr: Add SOCFPGA System Manager abstraction ARM: socfpga_defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR arm64: defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR net: stmmac: socfpga: Convert to shared System Manager driver MAINTAINERS | 6 + arch/arm/configs/socfpga_defconfig | 1 + arch/arm64/configs/defconfig | 1 + drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/altera-sysmgr.c | 311 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 4 +- include/linux/mfd/altera-sysmgr.h | 113 ++++++++ 8 files changed, 445 insertions(+), 1 deletion(-) create mode 100644 drivers/mfd/altera-sysmgr.c create mode 100644 include/linux/mfd/altera-sysmgr.h