From patchwork Thu Nov 6 12:01:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo i Serra X-Patchwork-Id: 5241381 Return-Path: X-Original-To: patchwork-linux-omap@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 DF9E99FD47 for ; Thu, 6 Nov 2014 12:02:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA4C7200DC for ; Thu, 6 Nov 2014 12:02:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F10772010F for ; Thu, 6 Nov 2014 12:02:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbaKFMCl (ORCPT ); Thu, 6 Nov 2014 07:02:41 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:34469 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268AbaKFMCg (ORCPT ); Thu, 6 Nov 2014 07:02:36 -0500 Received: by mail-wi0-f177.google.com with SMTP id ex7so1247755wid.10 for ; Thu, 06 Nov 2014 04:02:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JWf+i/q1PvkPqstI50DkG4k9NBTHVmUYNDXkwSwYKow=; b=dqYNaSXK1dy6FCqBwF9vQlmZFQs4QNksuoV0JvIOv/R/QBkGlC5V25p8IWscrBNF7I 97cMZG7CqfKI5qXwxMVmkR7uhR1FbBTeY5r0pJOFUbeZcZXV7ZciJIQ//xWlQmB+7HKg hC1pRXLar+AQRT9RMs7DfhQ+17AlkB3atjLy9OxuVz8x9taSmrlLZRou06PxrWjtAfrd aQDUWsqTn+YgWxJ4CU/4cCuEU7UVzRociZmhZhg/W70mTub2le6/NkyRRx8089SSCcu5 Ke83OPIppms9fi2J12VxAUENLRwXgPLK02BdtTc8gHyA4E+SsSEVi64HUbj37d2WGzf6 qPsQ== X-Received: by 10.194.57.81 with SMTP id g17mr5188701wjq.12.1415275354602; Thu, 06 Nov 2014 04:02:34 -0800 (PST) Received: from localhost.localdomain (43.Red-2-139-180.staticIP.rima-tde.net. [2.139.180.43]) by mx.google.com with ESMTPSA id bc1sm18533956wib.16.2014.11.06.04.02.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Nov 2014 04:02:34 -0800 (PST) From: Enric Balletbo i Serra To: linux-omap@vger.kernel.org, tony@atomide.com Cc: javier@dowhile0.org, devicetree@vger.kernel.org, Enric Balletbo i Serra Subject: [PATCH 11/11] ARM: OMAP2+: igep00x0: Add pdata-quirks for the btwilink device. Date: Thu, 6 Nov 2014 13:01:51 +0100 Message-Id: <1415275311-6857-12-git-send-email-eballetbo@iseebcn.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415275311-6857-1-git-send-email-eballetbo@iseebcn.com> References: <1415275311-6857-1-git-send-email-eballetbo@iseebcn.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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=ham 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 btwilink device for IGEPv2 Rev. F and IGEP COM MODULE Rev. G. Signed-off-by: Enric Balletbo i Serra Acked-by: Javier Martinez Canillas --- arch/arm/mach-omap2/pdata-quirks.c | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index c95346c..e72f0fc 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -139,8 +140,38 @@ static void __init omap3_sbc_t3530_legacy_init(void) omap_ads7846_init(1, 57, 0, NULL); } -static void __init omap3_igep0020_legacy_init(void) +struct ti_st_plat_data wilink_pdata = { + .nshutdown_gpio = 137, + .dev_name = "/dev/ttyO1", + .flow_cntrl = 1, + .baud_rate = 300000, +}; + +static struct platform_device wl18xx_device = { + .name = "kim", + .id = -1, + .dev = { + .platform_data = &wilink_pdata, + } +}; + +static struct platform_device btwilink_device = { + .name = "btwilink", + .id = -1, +}; + +static void __init omap3_igep0020_rev_f_legacy_init(void) +{ + legacy_init_wl12xx(0, 0, 177); + platform_device_register(&wl18xx_device); + platform_device_register(&btwilink_device); +} + +static void __init omap3_igep0030_rev_g_legacy_init(void) { + legacy_init_wl12xx(0, 0, 136); + platform_device_register(&wl18xx_device); + platform_device_register(&btwilink_device); } static void __init omap3_evm_legacy_init(void) @@ -393,7 +424,8 @@ static struct pdata_init pdata_quirks[] __initdata = { { "nokia,omap3-n900", nokia_n900_legacy_init, }, { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, - { "isee,omap3-igep0020", omap3_igep0020_legacy_init, }, + { "isee,omap3-igep0020-rev-f", omap3_igep0020_rev_f_legacy_init, }, + { "isee,omap3-igep0030-rev-g", omap3_igep0030_rev_g_legacy_init, }, { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, { "ti,omap3-zoom3", omap3_zoom_legacy_init, }, { "ti,am3517-evm", am3517_evm_legacy_init, },