From patchwork Fri Nov 7 12:45:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Palcu X-Patchwork-Id: 5252131 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2C8319F387 for ; Fri, 7 Nov 2014 12:46:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68E6A20131 for ; Fri, 7 Nov 2014 12:46:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D40620145 for ; Fri, 7 Nov 2014 12:46:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752355AbaKGMp1 (ORCPT ); Fri, 7 Nov 2014 07:45:27 -0500 Received: from mga01.intel.com ([192.55.52.88]:8196 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbaKGMpY (ORCPT ); Fri, 7 Nov 2014 07:45:24 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 07 Nov 2014 04:45:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,332,1413270000"; d="scan'208";a="618821210" Received: from lpalcu-linux.rb.intel.com ([10.237.104.113]) by fmsmga001.fm.intel.com with ESMTP; 07 Nov 2014 04:45:20 -0800 From: Laurentiu Palcu To: Mark Brown , Samuel Ortiz , Lee Jones , Johan Havold Cc: Octavian Purdila , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Laurentiu Palcu Subject: [PATCH 2/2] mfd: dln2: add support for USB-SPI module Date: Fri, 7 Nov 2014 14:45:14 +0200 Message-Id: <1415364314-30320-3-git-send-email-laurentiu.palcu@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415364314-30320-1-git-send-email-laurentiu.palcu@intel.com> References: <1415364314-30320-1-git-send-email-laurentiu.palcu@intel.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 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 Signed-off-by: Laurentiu Palcu Acked-by: Mark Brown --- drivers/mfd/dln2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c index 9765a17..0cdad2d 100644 --- a/drivers/mfd/dln2.c +++ b/drivers/mfd/dln2.c @@ -52,6 +52,7 @@ enum dln2_handle { DLN2_HANDLE_CTRL, DLN2_HANDLE_GPIO, DLN2_HANDLE_I2C, + DLN2_HANDLE_SPI, DLN2_HANDLES }; @@ -634,6 +635,12 @@ static struct dln2_platform_data dln2_pdata_i2c = { .port = 0, }; +/* Only one SPI port supported */ +static struct dln2_platform_data dln2_pdata_spi = { + .handle = DLN2_HANDLE_SPI, + .port = 0, +}; + static const struct mfd_cell dln2_devs[] = { { .name = "dln2-gpio", @@ -645,6 +652,11 @@ static const struct mfd_cell dln2_devs[] = { .platform_data = &dln2_pdata_i2c, .pdata_size = sizeof(struct dln2_platform_data), }, + { + .name = "dln2-spi", + .platform_data = &dln2_pdata_spi, + .pdata_size = sizeof(struct dln2_platform_data), + }, }; static void dln2_disconnect(struct usb_interface *interface)