From patchwork Mon Sep 24 22:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thor Thayer X-Patchwork-Id: 10612891 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 5D37013A4 for ; Mon, 24 Sep 2018 22:08:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47B492A472 for ; Mon, 24 Sep 2018 22:08:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A0852A4A7; Mon, 24 Sep 2018 22:08:41 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 CE63D2A472 for ; Mon, 24 Sep 2018 22:08:40 +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=nRPSFScGXGttdi1PsKfGyVgCLnUS7dDZ6aVL/nyaByY=; b=jkv IkZLyj5Y+wd4h9wiDMOnVm/hePv7inq3Ose4+1eyQottNtsQVlV1uvvmFPd1iQGvw0E9nF4wouayj eWJT30k2+nuRsJ2qbXMs3IR2y10I7qvWXLi+S/ihP1Wn9h9KSBraIV+WV0sm1VuxOLcIlItR9bLa+ m94mlQlT/EJHan0chinmF7oc//4HUKrLJ6qYg/lKn6uL3h/7Cx56deRHVUKK/xCeNhM/TgAmdSPJT d0WHNtjlU2IXMs4hDp75n9ATrMzQuEWb6Wx8fQ8zjAkKoXnAFISwFW7P5xkyE3aKvF1lqCme3S8e0 IOzcaMh1eMLYpLaAuMwbLKiCRdwYMbQ==; 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 1g4Z1p-0005jk-U2; Mon, 24 Sep 2018 22:08:29 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4Z0n-0005Io-RZ for linux-arm-kernel@lists.infradead.org; Mon, 24 Sep 2018 22:07:33 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2018 15:06:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,299,1534834800"; d="scan'208";a="75595415" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.132]) by orsmga007.jf.intel.com with ESMTP; 24 Sep 2018 15:06:56 -0700 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, peppe.cavallaro@st.com, dinguyen@kernel.org, linux@armlinux.org.uk, alexandre.torgue@st.com, joabreu@synopsys.com Subject: [PATCH 0/4] Add SOCFPGA System Manager Date: Mon, 24 Sep 2018 17:09:02 -0500 Message-Id: <1537826946-18942-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-20180924_150726_024814_2EBA6A3D X-CRM114-Status: GOOD ( 10.25 ) 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: aisheng.dong@nxp.com, thor.thayer@linux.intel.com, arnd@arndb.de, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, mchehab+samsung@kernel.org, akpm@linux-foundation.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 | 310 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 4 +- include/linux/mfd/altera-sysmgr.h | 113 ++++++++ 8 files changed, 444 insertions(+), 1 deletion(-) create mode 100644 drivers/mfd/altera-sysmgr.c create mode 100644 include/linux/mfd/altera-sysmgr.h