From patchwork Fri Feb 14 11:23:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24626 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2216202B2 for ; Fri, 14 Feb 2014 11:24:28 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q200sf41662161ykb.3 for ; Fri, 14 Feb 2014 03:24:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=d3oGbfZp416M1KUvEzVgQgAjlM80Vx3K7J03MwYF9zY=; b=mQ3ukbHefrv/8clRj1C3JTbu7Y2Gyho8UrpHWHN/WM4YJf21Ytvpov2fO6dWg0ZWbd PeKxymYqRcoQhn6d/RXO0zp1U1F4I02WBEZEPMN2rNixTA+ZUAobCtCN9nBjkFPkReKS 5TwCnMY9tcei/h5Nw4s8KAy/oeNUDCkJ8hA7MzXCw3FMrvTYs1wBzKczJSEO0zIfS8Qr Og2hZ3oRZCWH45Z2JLh6lKYpxAAY/XTg7Pijs0cGNb8DNPdRD0alOwH7rjeCf0HxBAID HNllqAyb7c3yu867JfQpY/5+Cfkyfyl7aFl2z8THhluqRey1UMLHcgkupsf4qIZ3f/oW Bq9Q== X-Gm-Message-State: ALoCoQkqKtIw3KfiBHeo9NUd67y/OS6ONBQifTV9p5No9IDybvR+U17NM03vmGRLBjIinncFll1q X-Received: by 10.236.83.112 with SMTP id p76mr2319281yhe.51.1392377067904; Fri, 14 Feb 2014 03:24:27 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.138 with SMTP id c10ls41907qga.63.gmail; Fri, 14 Feb 2014 03:24:27 -0800 (PST) X-Received: by 10.52.236.132 with SMTP id uu4mr420845vdc.47.1392377067824; Fri, 14 Feb 2014 03:24:27 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id io9si1798370vcb.137.2014.02.14.03.24.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:27 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so9103217vcb.36 for ; Fri, 14 Feb 2014 03:24:27 -0800 (PST) X-Received: by 10.52.248.138 with SMTP id ym10mr4282883vdc.18.1392377067598; Fri, 14 Feb 2014 03:24:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp101093vcz; Fri, 14 Feb 2014 03:24:12 -0800 (PST) X-Received: by 10.194.104.39 with SMTP id gb7mr1027857wjb.69.1392377052140; Fri, 14 Feb 2014 03:24:12 -0800 (PST) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id vg1si3478138wjc.43.2014.02.14.03.24.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Received: by mail-wi0-f178.google.com with SMTP id cc10so352121wib.11 for ; Fri, 14 Feb 2014 03:24:11 -0800 (PST) X-Received: by 10.180.102.97 with SMTP id fn1mr1762436wib.15.1392377051577; Fri, 14 Feb 2014 03:24:11 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id gt6sm3601775wib.8.2014.02.14.03.24.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:10 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: alexandre.torgue@st.com, Lee Jones , devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 2/4] phy: miphy365x: Add MiPHY365x header file for DT x Driver defines Date: Fri, 14 Feb 2014 11:23:54 +0000 Message-Id: <1392377036-12816-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392377036-12816-1-git-send-email-lee.jones@linaro.org> References: <1392377036-12816-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This provides the shared header file which will be reference from both the MiPHY365x driver and its associated Device Tree node(s). Cc: devicetree@vger.kernel.org Cc: Srinivas Kandagatla Signed-off-by: Lee Jones --- include/dt-bindings/phy/phy-miphy365x.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/dt-bindings/phy/phy-miphy365x.h diff --git a/include/dt-bindings/phy/phy-miphy365x.h b/include/dt-bindings/phy/phy-miphy365x.h new file mode 100644 index 0000000..8757c02 --- /dev/null +++ b/include/dt-bindings/phy/phy-miphy365x.h @@ -0,0 +1,25 @@ +/* + * This header provides constants for the phy framework + * based on the STMicroelectronics miphy365x. + */ +#ifndef _DT_BINDINGS_PHY_MIPHY +#define _DT_BINDINGS_PHY_MIPHY + +/* Supports 16 ports without a datatype change (u8 & 0xF0). */ +#define MIPHY_PORT_0 0 +#define MIPHY_PORT_1 1 +#define MIPHY_PORT_2 2 +#define MIPHY_PORT_3 3 + +/* Supports 16 types without a datatype change (u8 & 0x0F). */ +#define MIPHY_TYPE_SHIFT 4 +#define MIPHY_TYPE_SATA (0 << MIPHY_TYPE_SHIFT) +#define MIPHY_TYPE_PCIE (1 << MIPHY_TYPE_SHIFT) +#define MIPHY_TYPE_USB (2 << MIPHY_TYPE_SHIFT) + +#define MIPHY_SATA_PORT0 (MIPHY_TYPE_SATA) | (MIPHY_PORT_0) +#define MIPHY_SATA_PORT1 (MIPHY_TYPE_SATA) | (MIPHY_PORT_1) +#define MIPHY_PCIE_PORT0 (MIPHY_TYPE_PCIE) | (MIPHY_PORT_0) +#define MIPHY_PCIE_PORT1 (MIPHY_TYPE_PCIE) | (MIPHY_PORT_1) + +#endif /* _DT_BINDINGS_PHY_MIPHY */