From patchwork Mon Aug 28 09:59:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 111135 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4605920qge; Mon, 28 Aug 2017 02:59:52 -0700 (PDT) X-Received: by 10.84.216.76 with SMTP id f12mr275plj.229.1503914392570; Mon, 28 Aug 2017 02:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503914392; cv=none; d=google.com; s=arc-20160816; b=VZVtFXL7rDKuDLqOnM9PHBle/xbGW/ccZs3EY1mAr703GNsAC1RRMWjAy2PEngYpdp CvabLEwAFD+iJ20ertw4/FOtuZktSv7o0XNjAPu1pK1m7S360m/grHYhrHECyP8uZQ6y Dlbikk6MWPHJw1GjMCEPSAWqwvF1x+uDq1owJCkD5g9aT1LcH0xL7B9utvaSJ+9gl2MY DXjyLudhrNy0D9VWTiAat44gC/0dg45d3+8oXh3+nPEx1tA8m9ACVoh5wCPZkhrkpI2b RNeLZsP35TUGDYMBzXTPiV4bL3iuNmKEQhZ3gGsluGKzPcKuT3ghUoWAsroAhvYnR3hm VOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bSo54bBfWhCE99SzrcKxOUl8e6Yih7Gy15Gt+bszhiY=; b=goNo/oSjU83V7j6020iYQ/Ab5LvmgY/aE+ZO2bEblTiwopr8sj3dUT+GqWZKuxbAyR rdoY5IShrOOkW9ZLdFGMjSGCAbj/cqrZVvMGJsU5ch85HldX1xO/iWcSsuRZMWvoTMvb Xz17nK6NcBXoiBDcRa6UKxmAYUwKhNYwIDuujnh0DY0Dwp9cS6xpe6PBmExiNIKzGX3M NKzk6Ez+b7+cf744b2m8/9YkexWXJxrzT23lc8bBzIEYC9kKzRaV2RjCEoRfJ6TYu6Ox ZYxIi2fDp+VYzwvYe7cvGWZL36JI4oU+FCC8QA0Ncm7Y1bhIHGFxoBzmnnVVLWBI9xQa JuwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i71si25741pfi.92.2017.08.28.02.59.52; Mon, 28 Aug 2017 02:59:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751276AbdH1J7u (ORCPT + 26 others); Mon, 28 Aug 2017 05:59:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:27897 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152AbdH1J7t (ORCPT ); Mon, 28 Aug 2017 05:59:49 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 28 Aug 2017 18:59:48 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 2FD74610C6; Mon, 28 Aug 2017 18:59:48 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 28 Aug 2017 18:59:48 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id BA64E1A0E11; Mon, 28 Aug 2017 18:59:47 +0900 (JST) From: Kunihiko Hayashi To: p.zabel@pengutronix.de Cc: yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, Kunihiko Hayashi Subject: [PATCH] reset: uniphier: add ethernet reset control support Date: Mon, 28 Aug 2017 18:59:38 +0900 Message-Id: <1503914378-24615-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add reset lines for ethernet controller on Pro4, PXs2, LD11 and LD20 SoCs. Signed-off-by: Kunihiko Hayashi --- drivers/reset/reset-uniphier.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 Acked-by: Masahiro Yamada diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index bda2dd1..6e40f7d 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -58,6 +58,7 @@ static const struct uniphier_reset_data uniphier_ld4_sys_reset_data[] = { static const struct uniphier_reset_data uniphier_pro4_sys_reset_data[] = { UNIPHIER_RESETX(2, 0x2000, 2), /* NAND */ + UNIPHIER_RESETX(6, 0x2000, 12), /* Ether */ UNIPHIER_RESETX(8, 0x2000, 10), /* STDMAC (HSC, MIO, RLE) */ UNIPHIER_RESETX(12, 0x2000, 6), /* GIO (Ether, SATA, USB3) */ UNIPHIER_RESETX(14, 0x2000, 17), /* USB30 */ @@ -76,6 +77,7 @@ static const struct uniphier_reset_data uniphier_pro5_sys_reset_data[] = { static const struct uniphier_reset_data uniphier_pxs2_sys_reset_data[] = { UNIPHIER_RESETX(2, 0x2000, 2), /* NAND */ + UNIPHIER_RESETX(6, 0x2000, 12), /* Ether */ UNIPHIER_RESETX(8, 0x2000, 10), /* STDMAC (HSC, RLE) */ UNIPHIER_RESETX(14, 0x2000, 17), /* USB30 */ UNIPHIER_RESETX(15, 0x2004, 17), /* USB31 */ @@ -92,6 +94,7 @@ static const struct uniphier_reset_data uniphier_pxs2_sys_reset_data[] = { static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = { UNIPHIER_RESETX(2, 0x200c, 0), /* NAND */ UNIPHIER_RESETX(4, 0x200c, 2), /* eMMC */ + UNIPHIER_RESETX(6, 0x200c, 6), /* Ether */ UNIPHIER_RESETX(8, 0x200c, 8), /* STDMAC (HSC, MIO) */ UNIPHIER_RESETX(40, 0x2008, 0), /* AIO */ UNIPHIER_RESETX(41, 0x2008, 1), /* EVEA */ @@ -102,6 +105,7 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = { static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = { UNIPHIER_RESETX(2, 0x200c, 0), /* NAND */ UNIPHIER_RESETX(4, 0x200c, 2), /* eMMC */ + UNIPHIER_RESETX(6, 0x200c, 6), /* Ether */ UNIPHIER_RESETX(8, 0x200c, 8), /* STDMAC (HSC) */ UNIPHIER_RESETX(12, 0x200c, 5), /* GIO (PCIe, USB3) */ UNIPHIER_RESETX(16, 0x200c, 12), /* USB30-PHY0 */