From patchwork Tue Nov 26 07:35:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Poddar, Sourav" X-Patchwork-Id: 3237171 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5B098C045B for ; Tue, 26 Nov 2013 07:36:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7017320383 for ; Tue, 26 Nov 2013 07:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77C5120382 for ; Tue, 26 Nov 2013 07:36:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695Ab3KZHgX (ORCPT ); Tue, 26 Nov 2013 02:36:23 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:52183 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754618Ab3KZHgU (ORCPT ); Tue, 26 Nov 2013 02:36:20 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id rAQ7ZwvL005829; Tue, 26 Nov 2013 01:35:58 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id rAQ7ZwI6016585; Tue, 26 Nov 2013 01:35:58 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Tue, 26 Nov 2013 01:35:58 -0600 Received: from a0131647.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id rAQ7ZLXw030173; Tue, 26 Nov 2013 01:35:56 -0600 From: Sourav Poddar To: , , , CC: , , , , Sourav Poddar Subject: [PATCH 09/17] spi/spi.h: Add "mem" variable in spi master. Date: Tue, 26 Nov 2013 13:05:05 +0530 Message-ID: <1385451313-1875-10-git-send-email-sourav.poddar@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1385451313-1875-1-git-send-email-sourav.poddar@ti.com> References: <1385451313-1875-1-git-send-email-sourav.poddar@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add "mem" variable in spi_master, which can be used to hold on the memory mapped address. Signed-off-by: Sourav Poddar --- include/linux/spi/spi.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 4be969a..72565ff 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -298,6 +298,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) * @configure_from_slave: Used when SPI controller has registers which need * to be configured from slave specifics information(typical use case for * SPI flash device). + * @mem: memory mapped address to be filled by master controller driver. * Each SPI master controller can communicate with one or more @spi_device * children. These make a small bus, sharing MOSI, MISO and SCK signals * but not chip select signals. Each device may be configured to use a @@ -432,6 +433,8 @@ struct spi_master { void (*put_buf)(struct spi_master *master); void (*configure_from_slave)(struct spi_device *spi, u8 *val); + void __iomem *mem; + /* gpio chip select */ int *cs_gpios; };