From patchwork Mon Oct 29 17:51:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Hedlund X-Patchwork-Id: 1665021 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D55203FCF7 for ; Mon, 29 Oct 2012 17:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753460Ab2J2Rvc (ORCPT ); Mon, 29 Oct 2012 13:51:32 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:38335 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276Ab2J2Rvc (ORCPT ); Mon, 29 Oct 2012 13:51:32 -0400 Received: by mail-lb0-f174.google.com with SMTP id n3so3255885lbo.19 for ; Mon, 29 Oct 2012 10:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=LSjwMePkqCYJm+/NAC+AKtlPlVDO0T1FujOTLebCtkM=; b=wi2ErLAwSWNggaLLLortbRe79eRGzjovtrqBDxgqXjYdHC4x8o+t71gJf0eVcvR7N/ Hs3glJTPNEknnm99sJMf9gHa0qKSIh/6IJSSGVAx9oar17bs/eQvfidSIYzIr4hNyr6n G+zXfhET8FsKTZQp35cVcDAmqjXg0ikDoCLnvmagQGPjArKV8zUAWSqPhdrOsjgxYjf9 hXpdJJAiyc94oW3AwwtlPMVVRVaJi1czwgn2dl+nukn8QMRzcURhqmJIIphNIT6GSrzK pQtA6gYW81ITQzgmQHV3laGKfQz3ZdAomp8kqIOIhveIwqsI0N7Q7Eu7r+zu/IsL+9dn 7euA== Received: by 10.152.108.197 with SMTP id hm5mr28168383lab.45.1351533090615; Mon, 29 Oct 2012 10:51:30 -0700 (PDT) Received: from alice.hemma.lan (217-210-253-252-no53.tbcn.telia.com. [217.210.253.252]) by mx.google.com with ESMTPS id oj5sm3338219lab.8.2012.10.29.10.51.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 10:51:30 -0700 (PDT) From: Anders Hedlund To: tony@atomide.com, linux-omap@vger.kernel.org Cc: Anders Hedlund , Jonas Zetterberg , Enric Balletbo i Serra Subject: [PATCH] ARM: OMAP3: igep0020: Set WIFI/BT GPIO pins in correct mux mode Date: Mon, 29 Oct 2012 18:51:13 +0100 Message-Id: <1351533073-5974-1-git-send-email-anders.j.hedlund@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Configure the WIFI/BT GPIO pin muxes unless the bootloader hasn't already done so. Signed-off-by: Anders Hedlund Cc: Jonas Zetterberg Cc: Enric Balletbo i Serra --- arch/arm/mach-omap2/board-igep0020.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index dbc705a..17e45bc 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -579,6 +579,13 @@ static void __init igep_wlan_bt_init(void) } else return; +#ifdef CONFIG_OMAP_MUX + /* Make sure that the GPIO pins are muxed correctly */ + omap_mux_init_gpio(igep_wlan_bt_gpios[0].gpio, OMAP_PIN_OUTPUT); + omap_mux_init_gpio(igep_wlan_bt_gpios[1].gpio, OMAP_PIN_OUTPUT); + omap_mux_init_gpio(igep_wlan_bt_gpios[2].gpio, OMAP_PIN_OUTPUT); +#endif + err = gpio_request_array(igep_wlan_bt_gpios, ARRAY_SIZE(igep_wlan_bt_gpios)); if (err) {