From patchwork Tue Jul 31 10:42:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10381 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 1E60C23E02 for ; Tue, 31 Jul 2012 10:36:35 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id E252EA18CC0 for ; Tue, 31 Jul 2012 10:36:34 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so5757704ggn.11 for ; Tue, 31 Jul 2012 03:36:34 -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=7MmUT5Fn2Sdnivsss9CgblrahV2vy8E4xhKMqc1CMno=; b=bkdJUWYyl4xcdlhnfpwMqsCieMbmTbAoar2LEW1+IeLJkZUl6KGjHctnu9woy1JraT RGH+jWR8URekibZJhoACo5R9oeGPy6YoNX/z++DP3OQiexIVW4YMrTDShEpT4cOJ0Wji xkVh+Vh3qaT+vsJt4NNt/7OTHZ58ljGH/pzks1Br3taDDc707ZSdNc5U4RXW0ngpzMv1 rcUuW89D8HM9yAAcrFbBH+0FhNASZkxn6K5r/Ib1Qpmmd5M6zFZwZdV+Fb4h4bwWfqus 7EZ/84qWsL2MgVCkJvUahglGEiVEGKEq3s4ZoShguQCls5dqtr5RES1sA0tLYZhB7DYh 2IQw== Received: by 10.50.213.39 with SMTP id np7mr1507541igc.51.1343730994409; Tue, 31 Jul 2012 03:36:34 -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 u8csp135213igz; Tue, 31 Jul 2012 03:36:34 -0700 (PDT) Received: by 10.66.83.39 with SMTP id n7mr31156311pay.82.1343730993679; Tue, 31 Jul 2012 03:36:33 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id gk6si41132pbc.215.2012.07.31.03.36.33; Tue, 31 Jul 2012 03:36:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M8000FS5TGWMA10@mailout1.samsung.com>; Tue, 31 Jul 2012 19:36:32 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-7a-5017b5304562 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 13.33.23690.035B7105; Tue, 31 Jul 2012 19:36:32 +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 <0M800037ATGJHE20@mmp1.samsung.com>; Tue, 31 Jul 2012 19:36:31 +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:12:37 +0530 Message-id: <1343731360-31691-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1343731360-31691-1-git-send-email-rajeshwari.s@samsung.com> References: <1343731360-31691-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jAV2DreIBBnufsFs8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKeLiuj61gA1vF/P1P2RsY+1m7GDk5JARMJLbt6mWE sMUkLtxbz9bFyMUhJLCIUeLM55NQzkQmidU/L7KDVLEJGElsPTkNrENEQELiV/9VIJuDg1mg VGLKxDyQsLCAocSelY1gYRYBVYnWf+EgYV4BD4kbPx4wQexSkDg29SvYDZwCnhJNUz6xgNhC QDXt/V1MExh5FzAyrGIUTS1ILihOSs810itOzC0uzUvXS87P3cQI9v0z6R2MqxosDjEKcDAq 8fB6nBQLEGJNLCuuzD3EKMHBrCTCy7pCPECINyWxsiq1KD++qDQntfgQozQHi5I4r4n3V38h gfTEktTs1NSC1CKYLBMHp1QD4+QEcybRp0xXWO1rnZjZvjm8231Nv5LLI+bBcds/LVUWG+6w 8/oqz0o7n9z4pdJK5PxqG8ZJsz17E96f2vX5bnHbnhcW7C2WkXvTalK23uw7V9nft8rW7oV7 vn/5hmmBn6PXBHRfTv+9ymQpDxv/BK/Aqu8P4zi7/aecm2xwUeDRpY83WiYrKLEUZyQaajEX FScCAMSlYk75AQAA X-TM-AS-MML: No X-Gm-Message-State: ALoCoQkZU0tbxqVGvcbnE85DnJoL3o/61cQO1jdCadotqtPr+HYGqHSZA1hxhGrGw0a/JHEiFiMj 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 --- 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 */