From patchwork Wed Feb 12 16:03:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24551 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C4A59203F3 for ; Wed, 12 Feb 2014 16:03:50 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf39358608oag.8 for ; Wed, 12 Feb 2014 08:03:49 -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=Txqpw+1efi4kxlb+QJHzVmH9Gp35W6lBis7774PWMhDkK+sqwDMp5fmAHdGOq/2/NP zFSekNzVHs2/NN9Nc/STiSeXzAgrsS3XkycUvaDqv/FZBjtaAD6ZFiAkhhUQDNLHBf/e FzJI1SZfDik3EPwJ4Fs9i3rXUXZyNGHaBjL8Dwvz9B+WvqiOBs8WvuEFuwxFez8YSo4d QR7yNXWYS/v8rb0dEfqdNamrdiRUAsZYgPlCD3s3z4PhvHI1eH+QRG2cAdu4SkFVvMy6 SvakrKVMlum19faX9KQW+GUKEijqzCHR8oBs5kmmrOXMzTBATM9o+w/CTnGkhXl1ZyCc Uybg== X-Gm-Message-State: ALoCoQlzxBx41wwsTJzzPQCZLiriVaWi86Uz3s0LPopST99qmcQNDMRIIWLEUdHt4a89x/38UCdn X-Received: by 10.50.21.3 with SMTP id r3mr1869549ige.4.1392221029785; Wed, 12 Feb 2014 08:03:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.201 with SMTP id d67ls1352573qgd.62.gmail; Wed, 12 Feb 2014 08:03:49 -0800 (PST) X-Received: by 10.52.89.230 with SMTP id br6mr28519671vdb.20.1392221029623; Wed, 12 Feb 2014 08:03:49 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id tt2si7455254vdc.74.2014.02.12.08.03.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id cz12so7567485veb.12 for ; Wed, 12 Feb 2014 08:03:49 -0800 (PST) X-Received: by 10.58.37.232 with SMTP id b8mr1618912vek.27.1392221029545; Wed, 12 Feb 2014 08:03:49 -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 u4csp10947vcz; Wed, 12 Feb 2014 08:03:48 -0800 (PST) X-Received: by 10.180.75.105 with SMTP id b9mr2618400wiw.6.1392221028235; Wed, 12 Feb 2014 08:03:48 -0800 (PST) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id v4si11743045wjq.174.2014.02.12.08.03.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id e4so7181427wiv.17 for ; Wed, 12 Feb 2014 08:03:47 -0800 (PST) X-Received: by 10.194.84.144 with SMTP id z16mr1909295wjy.23.1392221027686; Wed, 12 Feb 2014 08:03:47 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id gc5sm6798365wib.0.2014.02.12.08.03.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:46 -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: Wed, 12 Feb 2014 16:03:03 +0000 Message-Id: <1392220985-28189-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392220985-28189-1-git-send-email-lee.jones@linaro.org> References: <1392220985-28189-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.128.181 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 */