From patchwork Tue Jul 31 11:00:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10390 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 376FB23E23 for ; Tue, 31 Jul 2012 10:54:56 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 00F65A18836 for ; Tue, 31 Jul 2012 10:54:55 +0000 (UTC) Received: by yhpp61 with SMTP id p61so5771309yhp.11 for ; Tue, 31 Jul 2012 03:54:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=ihKHuj/q+MCfQ3TZL7eDeOqDFqiH+u/cjxFAqxbszTM=; b=cxyORd4YbRX1n1RFAYjsRjTJM3yn5DzaeUEB03VKRtV8EGXrqqLuuQoFYLxj0j/wgY ivFmL691LGyI5hkgSb9k40rZ2Fc38sKF/5nlYtrTFendP9RzbqRPWXzRtGotMU2ICpAy bcH7bxubhM2dGeho3zy1wT4LD9lWCadAuRqTgyxtQXviCgFk5pvBLB7l59ctd+IgXRbI n06jAEYGVapKli9KxV8WILS2KIVSE+5Ko32Bp84nD+5MxtrgGyKuVnIhb9BV4uAESBtX vh89HFH6l6SHtnElbIQFFKp2dfNKbASD4PlZ7L/3+MXNOjP+ABOiJQ2Rx5JCb4AMdNbM yE4Q== Received: by 10.50.163.5 with SMTP id ye5mr237980igb.51.1343732095132; Tue, 31 Jul 2012 03:54:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.87.40 with SMTP id u8csp135968igz; Tue, 31 Jul 2012 03:54:54 -0700 (PDT) Received: by 10.68.227.195 with SMTP id sc3mr42503914pbc.104.1343732094545; Tue, 31 Jul 2012 03:54:54 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id os3si116972pbb.173.2012.07.31.03.54.54; Tue, 31 Jul 2012 03:54:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M80003QKUB3X2K0@mailout3.samsung.com>; Tue, 31 Jul 2012 19:54:53 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-c1-5017b97dad14 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A4.FA.19326.D79B7105; Tue, 31 Jul 2012 19:54:53 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M800036CUB41W90@mmp1.samsung.com>; Tue, 31 Jul 2012 19:54:53 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, alim.akhtar@samsung.com, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 5/8] SPI: Add SPI slave mode flag Date: Tue, 31 Jul 2012 16:30:58 +0530 Message-id: <1343732461-3092-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1343732461-3092-1-git-send-email-rajeshwari.s@samsung.com> References: <1343732461-3092-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jAd3aneIBBhfeyVo8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DK2H90AWvBKbaKHbf2szcwLmTtYuTkkBAwkdjx4jKU LSZx4d56ti5GLg4hgUWMEr8vnGSHcCYySSy7f5kJpIpNwEhi68lpjCC2iICExK/+q0A2Bwez QKnElIl5IGFhAUOJPSsbwUpYBFQl9m/fB2bzCrhL7NnyFGqZgsSxqV9ZQVo5BTwk+t5mgISF gEpeX/zKNIGRdwEjwypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2MYN8/k9rBuLLB4hCjAAej Eg+vx0mxACHWxLLiytxDjBIczEoivKwrxAOEeFMSK6tSi/Lji0pzUosPMUpzsCiJ8xp7f/UX EkhPLEnNTk0tSC2CyTJxcEo1MJ74NNHdJfLR4d/PK2cc+vFVJdNgyvz22VoTu3Z+2r7e6mOt 1Po67YK9jCYJs0sjXqoI72899GTJHEO3ed0FzByeqczV03kYYmJZoqs/TjDaolVi925PotOk G9VbDmTOuyLVGVJqJnz7wqPWDXHy3hs67f0OZYYbluj8XH2Fa5pyov/87T9v7FZiKc5INNRi LipOBADdMOOO+QEAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQmQzy67j5HFK+eB9TiH0gw5qj8+ic8evaovMmCSmKjmFkrKWYAqZg8xmNObehqbS0ZkUNQH This patch adds a new SPI mode flags for SPI slave mode. It enables slave mode in a SPI interface, and is set/clear in spi_setup_slave() from the mode parameter. Signed-off-by: Padmavathi Venna Signed-off-by: Rajeshwari Shinde --- Changes in V2: - None. include/spi.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/spi.h b/include/spi.h index 60e85db..733c395 100644 --- a/include/spi.h +++ b/include/spi.h @@ -37,6 +37,7 @@ #define SPI_LSB_FIRST 0x08 /* per-word bits-on-wire */ #define SPI_3WIRE 0x10 /* SI/SO signals shared */ #define SPI_LOOP 0x20 /* loopback mode */ +#define SPI_SLAVE 0x40 /* slave mode */ /* SPI transfer flags */ #define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */