From patchwork Mon Feb 27 14:11:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sangwook X-Patchwork-Id: 6955 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 389CF23EA9 for ; Mon, 27 Feb 2012 14:13:14 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id F13DEA186A6 for ; Mon, 27 Feb 2012 14:13:13 +0000 (UTC) Received: by gglu1 with SMTP id u1so486473ggl.11 for ; Mon, 27 Feb 2012 06:13:13 -0800 (PST) Received: from mr.google.com ([10.50.168.74]) by 10.50.168.74 with SMTP id zu10mr14170848igb.26.1330351993382 (num_hops = 1); Mon, 27 Feb 2012 06:13:13 -0800 (PST) Received: by 10.50.168.74 with SMTP id zu10mr11526735igb.26.1330351993344; Mon, 27 Feb 2012 06:13:13 -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.11.10 with SMTP id r10csp1568ibr; Mon, 27 Feb 2012 06:13:12 -0800 (PST) Received: by 10.180.102.132 with SMTP id fo4mr15055568wib.6.1330351992100; Mon, 27 Feb 2012 06:13:12 -0800 (PST) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id t43si3164219wec.34.2012.02.27.06.13.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Feb 2012 06:13:12 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.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 wgbds12 with SMTP id ds12so945161wgb.31 for ; Mon, 27 Feb 2012 06:13:11 -0800 (PST) Received-SPF: pass (google.com: domain of sangwook.lee@linaro.org designates 10.180.83.97 as permitted sender) client-ip=10.180.83.97; Received: from mr.google.com ([10.180.83.97]) by 10.180.83.97 with SMTP id p1mr28229216wiy.19.1330351991676 (num_hops = 1); Mon, 27 Feb 2012 06:13:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.83.97 with SMTP id p1mr22381534wiy.19.1330351991569; Mon, 27 Feb 2012 06:13:11 -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 m8sm55579532wia.11.2012.02.27.06.13.10 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 06:13:10 -0800 (PST) From: Sangwook Lee To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, patches@linaro.org, Sangwook Lee Subject: [PATCH v2] ARM: EXYNOS: Add WLAN init on ORIGEN Date: Mon, 27 Feb 2012 14:11:06 +0000 Message-Id: <1330351866-6446-1-git-send-email-sangwook.lee@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmxGXbKPVUEbAnt47hNo+42vCStcDuwkeiy2C5h2nexjSFjPfUamuOiAX0/8jxEtTVc1+MO 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 | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 02c242e..821b57a 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 @@ -668,6 +669,22 @@ 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; + + /* EXYNOS4_GPX2(4) is reset pin to the external chip */ + 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_setpull(EXYNOS4_GPX2(4), S3C_GPIO_PULL_NONE); + gpio_set_value(EXYNOS4_GPX2(4), 0); + udelay(30); /*AR6003 specific value Tb */ + gpio_set_value(EXYNOS4_GPX2(4), 1); +} + static void s5p_tv_setup(void) { /* Direct HPD to HDMI chip */ @@ -723,6 +740,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")