From patchwork Wed Mar 12 13:14: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: 26094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 29985203AB for ; Wed, 12 Mar 2014 13:16:06 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id up15sf2390333pbc.2 for ; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=62d/URg6ZeIV4exCTa/IsfYrEX2YnQuNjyLvylqXrtQ=; b=gGrQsZGK4L0mg57vMsK3vI5HDzIYGYuwL0Wa/S676p1olLi7Hoogw/agmZ95QTb0N8 w2Sxtqd3GWFUM8H5J4mECyYjp+rfD/XhZ3vshs/bgr9JirqQU0/EvOWMPujh0//2xMMK hOGgzWCudrcaQNbeHxxB4GZl99HQtD/dQwJG17y0ee/TNY/O8x+O7XKaqyKT6lG3A6dL HpalcU/+QczEtaGwwyZnKS3FES9jn+uTOIcUmdL1LsXz2boOyqkyL0fu6BVHcth1EfA5 XwVnow90OyPq6ZlMttUx9QGi3JNUNYwG59mDcJs0hoESsUaOtdPw6123H8oGqhHgW9sk pJ+Q== X-Gm-Message-State: ALoCoQlXNXdXobXIEzoMs/n13uOky4k4TrECn3m3DZmTdJ5AdhCFKtpApeiDdIbjQOgF0qcV/MDn X-Received: by 10.66.144.170 with SMTP id sn10mr1671664pab.43.1394630165341; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.101 with SMTP id a92ls1068019qga.66.gmail; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) X-Received: by 10.221.61.210 with SMTP id wx18mr947412vcb.27.1394630165195; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id uq15si2797390veb.32.2014.03.12.06.16.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 06:16:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so9776694veb.25 for ; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) X-Received: by 10.58.37.232 with SMTP id b8mr979628vek.27.1394630165120; Wed, 12 Mar 2014 06:16:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp287571vck; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) X-Received: by 10.66.163.2 with SMTP id ye2mr4954218pab.110.1394630163661; Wed, 12 Mar 2014 06:16:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si2351020pba.121.2014.03.12.06.16.02; Wed, 12 Mar 2014 06:16:02 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754246AbaCLNPg (ORCPT + 26 others); Wed, 12 Mar 2014 09:15:36 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:48877 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754211AbaCLNPc (ORCPT ); Wed, 12 Mar 2014 09:15:32 -0400 Received: by mail-wi0-f181.google.com with SMTP id bs8so2346640wib.8 for ; Wed, 12 Mar 2014 06:15:31 -0700 (PDT) X-Received: by 10.194.81.164 with SMTP id b4mr41821438wjy.2.1394630131022; Wed, 12 Mar 2014 06:15:31 -0700 (PDT) Received: from lee--X1.home (host109-148-116-196.range109-148.btcentralplus.com. [109.148.116.196]) by mx.google.com with ESMTPSA id dk9sm69664476wjb.4.2014.03.12.06.15.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 06:15:30 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, alexandre.torgue@st.com, Kishon Vijay Abraham I Subject: [PATCH 2/4] phy: miphy365x: Add MiPHY365x header file for DT x Driver defines Date: Wed, 12 Mar 2014 13:14:54 +0000 Message-Id: <1394630096-28564-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394630096-28564-1-git-send-email-lee.jones@linaro.org> References: <1394630096-28564-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.128.180 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org 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: Kishon Vijay Abraham I Acked-by: Mark Rutland Acked-by: Alexandre Torgue 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 */