From patchwork Thu Feb 16 14:55:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sangwook X-Patchwork-Id: 6821 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A81B923ECC for ; Thu, 16 Feb 2012 14:57:29 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 69D9DA18C7F for ; Thu, 16 Feb 2012 14:57:29 +0000 (UTC) Received: by ghbz22 with SMTP id z22so1563482ghb.11 for ; Thu, 16 Feb 2012 06:57:29 -0800 (PST) Received: by 10.50.203.6 with SMTP id km6mr3305909igc.25.1329404248531; Thu, 16 Feb 2012 06:57:28 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.80.19 with SMTP id r19csp19706ibk; Thu, 16 Feb 2012 06:57:27 -0800 (PST) Received: by 10.112.44.101 with SMTP id d5mr1044148lbm.40.1329404247103; Thu, 16 Feb 2012 06:57:27 -0800 (PST) Received: from mail-lpp01m010-f50.google.com (mail-lpp01m010-f50.google.com [209.85.215.50]) by mx.google.com with ESMTPS id l6si2640395lba.20.2012.02.16.06.57.25 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Feb 2012 06:57:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) client-ip=209.85.215.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) smtp.mail=sangwook.lee@linaro.org Received: by lahm13 with SMTP id m13so3337368lah.37 for ; Thu, 16 Feb 2012 06:57:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.112.132 with SMTP id iq4mr1981147lab.28.1329404245628; Thu, 16 Feb 2012 06:57:25 -0800 (PST) Received: from localhost.localdomain (host109-145-96-242.range109-145.btcentralplus.com. [109.145.96.242]) by mx.google.com with ESMTPS id os5sm6125520lab.13.2012.02.16.06.57.22 (version=SSLv3 cipher=OTHER); Thu, 16 Feb 2012 06:57:24 -0800 (PST) From: Sangwook Lee To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, patches@linaro.org, Sangwook Lee Subject: [PATCH] ARM: EXYNOS: Add WLAN init on ORIGEN Date: Thu, 16 Feb 2012 14:55:18 +0000 Message-Id: <1329404118-19198-1-git-send-email-sangwook.lee@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmoexZuRB8UyX4TudrdbJ5DjLVz0LvMR0ufVbfqIitU0F9zVSPHj1gRmshFR57kL4v6CpYv Add WLAN init code on Origen for both hw2.1.1 and hw2.0 in AR6003 Signed-off-by: Sangwook Lee --- arch/arm/mach-exynos/mach-origen.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index e1d87b9..d570667 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -676,6 +677,25 @@ static void __init origen_bt_setup(void) s3c_gpio_setpull(EXYNOS4_GPX2(2), S3C_GPIO_PULL_NONE); } +static void __init origen_wlan_setup(void) +{ + int err; + + err = gpio_request_one(EXYNOS4_GPX2(4), + GPIOF_OUT_INIT_LOW, "GPX2_4"); + if (err) { + pr_warning("ORIGEN: Failed to obtain WIFI GPIOs\n"); + return; + } + s3c_gpio_cfgpin(EXYNOS4_GPX2(4), S3C_GPIO_OUTPUT); + s3c_gpio_setpull(EXYNOS4_GPX2(4), + S3C_GPIO_PULL_NONE); + /* VDD33,I/O Supply must be done */ + gpio_set_value(EXYNOS4_GPX2(4), 0); + udelay(30); /*AR6003 speicic value Tb */ + gpio_direction_output(EXYNOS4_GPX2(4), 1); +} + static void s5p_tv_setup(void) { /* Direct HPD to HDMI chip */ @@ -738,6 +758,7 @@ static void __init origen_machine_init(void) samsung_bl_set(&origen_bl_gpio_info, &origen_bl_data); origen_bt_setup(); + origen_wlan_setup(); } MACHINE_START(ORIGEN, "ORIGEN")