From patchwork Tue Nov 18 12:09:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Palcu X-Patchwork-Id: 5328021 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 EFC5E9F1E1 for ; Tue, 18 Nov 2014 12:10:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22CB32017A for ; Tue, 18 Nov 2014 12:10:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 24EAC20179 for ; Tue, 18 Nov 2014 12:10:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753266AbaKRMKs (ORCPT ); Tue, 18 Nov 2014 07:10:48 -0500 Received: from mga02.intel.com ([134.134.136.20]:58094 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753276AbaKRMKK (ORCPT ); Tue, 18 Nov 2014 07:10:10 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 18 Nov 2014 04:10:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,409,1413270000"; d="scan'208";a="638919933" Received: from lpalcu-linux.rb.intel.com ([10.237.104.113]) by orsmga002.jf.intel.com with ESMTP; 18 Nov 2014 04:10:06 -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 v3 2/2] mfd: dln2: add support for USB-SPI module Date: Tue, 18 Nov 2014 14:09:59 +0200 Message-Id: <1416312599-5176-3-git-send-email-laurentiu.palcu@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416312599-5176-1-git-send-email-laurentiu.palcu@intel.com> References: <1416312599-5176-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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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: Lee Jones --- 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)