From patchwork Tue Oct 21 09:07:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Hesselbarth X-Patchwork-Id: 5111671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 99307C11AD for ; Tue, 21 Oct 2014 09:11:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9295020136 for ; Tue, 21 Oct 2014 09:11:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BA31200E8 for ; Tue, 21 Oct 2014 09:11:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgVQi-0000Zs-SA; Tue, 21 Oct 2014 09:08:36 +0000 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgVQa-0000Rx-9z for linux-arm-kernel@lists.infradead.org; Tue, 21 Oct 2014 09:08:28 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so819194wgh.10 for ; Tue, 21 Oct 2014 02:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :content-type:content-transfer-encoding; bh=RvYuUDxHxwyz9zygUTE5yz9I5uRLcWDRhsP7SDi2tZc=; b=AmtHpkMI9b+UmNSohLGoIwNKIVMULgkaGE24zG50lxIzq9I/7v3UsPRg+0CJn0/mPg AuUsmsjySeyphFwJWhzUboBPYX3GW87j90yoN4xOLbteCk1+llKlFhRMq0hhHit+nCQl KTX1kHp6yBnvCxNkxAsqVwi5OOhxNai6yMM4WDSeviUwGUVnWU4XInvdZlIsfaR6fsuj xxM1cgB9GG0HkacdMbY0v/78hY3QFP03q28DIoaP4Ny+GKahFQmD2mE4W6votkispMS6 jxqp08sWk46asgPkYuAJWzPt38FviNQRdJkwAIvoWeAZJx9iFHJJl54uwl6wt6m940Bl 5bOg== X-Received: by 10.180.39.65 with SMTP id n1mr27181725wik.13.1413882486564; Tue, 21 Oct 2014 02:08:06 -0700 (PDT) Received: from topkick.lan (f052063137.adsl.alicedsl.de. [78.52.63.137]) by mx.google.com with ESMTPSA id dq4sm11434194wid.4.2014.10.21.02.08.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 02:08:05 -0700 (PDT) From: Sebastian Hesselbarth To: Sebastian Hesselbarth Subject: [PATCH v2 2/5] phy: berlin-sata: Add support for BG2 SATA PHY Date: Tue, 21 Oct 2014 11:07:54 +0200 Message-Id: <1413882477-27922-3-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1413882477-27922-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1413882477-27922-1-git-send-email-sebastian.hesselbarth@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141021_020828_488534_46AD33A6 X-CRM114-Status: GOOD ( 13.05 ) X-Spam-Score: -0.8 (/) Cc: devicetree@vger.kernel.org, =?UTF-8?q?Antoine=20T=C3=A9nart?= , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kishon Vijay Abraham I X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Berlin BG2 also has a SATA PHY compatible with the current driver except different PHY_BASE. Add a new compatible to the driver reflecting the different PHY_BASE. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: Kishon Vijay Abraham I Cc: "Antoine Ténart" Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/phy/phy-berlin-sata.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/phy/phy-berlin-sata.c b/drivers/phy/phy-berlin-sata.c index 9682b0f66177..71568f5444ac 100644 --- a/drivers/phy/phy-berlin-sata.c +++ b/drivers/phy/phy-berlin-sata.c @@ -30,6 +30,7 @@ #define MBUS_WRITE_REQUEST_SIZE_128 (BIT(2) << 16) #define MBUS_READ_REQUEST_SIZE_128 (BIT(2) << 19) +#define BG2_PHY_BASE 0x080 #define BG2Q_PHY_BASE 0x200 /* register 0x01 */ @@ -186,10 +187,15 @@ static u32 phy_berlin_power_down_bits[] = { POWER_DOWN_PHY1, }; +static u32 bg2_sata_phy_base = BG2_PHY_BASE; static u32 bg2q_sata_phy_base = BG2Q_PHY_BASE; static const struct of_device_id phy_berlin_sata_of_match[] = { { + .compatible = "marvell,berlin2-sata-phy", + .data = &bg2_sata_phy_base, + }, + { .compatible = "marvell,berlin2q-sata-phy", .data = &bg2q_sata_phy_base, },