From patchwork Tue Apr 29 07:21:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 29299 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3ADF6202FE for ; Tue, 29 Apr 2014 07:22:34 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf46110074oag.6 for ; Tue, 29 Apr 2014 00:22:33 -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=X2nAepMkgqa9M5XrPBg2I9zrNhlfhFmjKNtxtSUc9UB85O8eZT4mRGbxs/AQI/FaIG LjihfsMIMZ7Scc7ON3U3ZvTDqaWIkHG3j+p4y2e6GbsBleq9GkB/efnzyIlt/c1+9nip ZuGkZ2GRxKsnJX8z7mfFcRU16ZRStugtT9oBticWVGwNCFo9QYgUTjq9OZR+KEBWkPt9 kC/x2DqYWSTIsJFoz00uGKhi+DbhhOboTPb342HLfZE9gi5dbDyGg+2t9x3hli3oTxar IP6z+CjtBW2MIKKvcnn6ZBLjs6ZFZ6MpD2eSevEgvFeiue/+AgFzp2jp47dt/q1x352N kCqg== X-Gm-Message-State: ALoCoQlU2tOX425ZmMoLY0MZ93hGKnHdMFhnnyAxHNt5vkwXx9zS9F0muMdWHNwSe252IelNs2Yo X-Received: by 10.43.141.196 with SMTP id jf4mr12255348icc.9.1398756153525; Tue, 29 Apr 2014 00:22:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.146 with SMTP id 18ls3143718qgr.58.gmail; Tue, 29 Apr 2014 00:22:33 -0700 (PDT) X-Received: by 10.52.104.7 with SMTP id ga7mr6735131vdb.29.1398756153385; Tue, 29 Apr 2014 00:22:33 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id uc1si4316678vcb.53.2014.04.29.00.22.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 00:22:33 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so9729853vcb.30 for ; Tue, 29 Apr 2014 00:22:33 -0700 (PDT) X-Received: by 10.221.27.8 with SMTP id ro8mr309854vcb.30.1398756153308; Tue, 29 Apr 2014 00:22:33 -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.221.72 with SMTP id ib8csp174956vcb; Tue, 29 Apr 2014 00:22:32 -0700 (PDT) X-Received: by 10.68.134.198 with SMTP id pm6mr34650745pbb.9.1398756152573; Tue, 29 Apr 2014 00:22:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rw8si6279909pbc.448.2014.04.29.00.22.31 for ; Tue, 29 Apr 2014 00:22:32 -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 S1756003AbaD2HWA (ORCPT + 28 others); Tue, 29 Apr 2014 03:22:00 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:39151 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755931AbaD2HVx (ORCPT ); Tue, 29 Apr 2014 03:21:53 -0400 Received: by mail-wg0-f47.google.com with SMTP id n12so4118644wgh.6 for ; Tue, 29 Apr 2014 00:21:52 -0700 (PDT) X-Received: by 10.180.13.8 with SMTP id d8mr19031776wic.13.1398756112207; Tue, 29 Apr 2014 00:21:52 -0700 (PDT) Received: from lee--X1.home (host109-148-238-223.range109-148.btcentralplus.com. [109.148.238.223]) by mx.google.com with ESMTPSA id f7sm29736303wjy.24.2014.04.29.00.21.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 00:21:51 -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, Kishon Vijay Abraham I Subject: [PATCH 2/4] phy: miphy365x: Add MiPHY365x header file for DT x Driver defines Date: Tue, 29 Apr 2014 08:21:32 +0100 Message-Id: <1398756095-32542-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398756095-32542-1-git-send-email-lee.jones@linaro.org> References: <1398756095-32542-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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 */