From patchwork Mon Jun 30 13:01: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: 32724 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB49E203F4 for ; Mon, 30 Jun 2014 13:04:00 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id y10sf38944199pdj.5 for ; Mon, 30 Jun 2014 06:03:59 -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=XuWdbeztEFoqtjodZYGudNqWENteSFRw+JHwdWKFOWnUuvGFS8wbgZP11dUx1op5PP NtIslrnF/LA/vL90nBSNpkF7UpeTghlkpBwK+i4FmIr/rDa7HU8czgCxoI46vkYiZM7F hn1fYQ3IQLoJi1e+OXS8A3LeOgtOw77gvJO6jp/7YwzCkuJjhtDAilr7HSHsJ7GSCcPc /AJiobQkX0QVgGWeIEVcSaa4EcONgCh4u+yYwq9Eok5Mge52VJJ40wlLkHdwguzTO3F0 o3OqvCmJsp2zjQJXO5y0eeyV+zBsYjiDZ0qnQbuYlKfPNUyQbRMxLOYynuxvsInvYkxS Wqtg== X-Gm-Message-State: ALoCoQmkciy4dOoyXxGoiw7KlaTtdQwOXFmRoHzAcUup2cUS1rZXA/eZu6Lpnq8h1g/S52E5pVWx X-Received: by 10.67.5.163 with SMTP id cn3mr20833103pad.25.1404133439862; Mon, 30 Jun 2014 06:03:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.107 with SMTP id 98ls1415817qga.80.gmail; Mon, 30 Jun 2014 06:03:59 -0700 (PDT) X-Received: by 10.221.56.132 with SMTP id wc4mr919838vcb.38.1404133439732; Mon, 30 Jun 2014 06:03:59 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id tv5si9995503vcb.38.2014.06.30.06.03.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 06:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so7362495vcb.7 for ; Mon, 30 Jun 2014 06:03:59 -0700 (PDT) X-Received: by 10.53.8.162 with SMTP id dl2mr31929857vdd.24.1404133439618; Mon, 30 Jun 2014 06:03:59 -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.221.37.5 with SMTP id tc5csp136972vcb; Mon, 30 Jun 2014 06:03:59 -0700 (PDT) X-Received: by 10.66.161.4 with SMTP id xo4mr52006129pab.36.1404133438858; Mon, 30 Jun 2014 06:03:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zo5si23038580pac.210.2014.06.30.06.03.58; Mon, 30 Jun 2014 06:03:58 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756011AbaF3NDu (ORCPT + 27 others); Mon, 30 Jun 2014 09:03:50 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:39144 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753694AbaF3NCS (ORCPT ); Mon, 30 Jun 2014 09:02:18 -0400 Received: by mail-ie0-f169.google.com with SMTP id at1so6963558iec.28 for ; Mon, 30 Jun 2014 06:02:18 -0700 (PDT) X-Received: by 10.50.136.135 with SMTP id qa7mr3777424igb.21.1404133338246; Mon, 30 Jun 2014 06:02:18 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d10sm14313253igz.11.2014.06.30.06.02.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 06:02:17 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH 2/5] phy: miphy365x: Add MiPHY365x header file for DT x Driver defines Date: Mon, 30 Jun 2014 14:01:54 +0100 Message-Id: <1404133317-25953-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404133317-25953-1-git-send-email-lee.jones@linaro.org> References: <1404133317-25953-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) 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 */