aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorw12.lee <w12.lee@samsung.com>2010-09-28 18:04:46 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:46:46 -0800
commit659efdb53906e254e1dae88d85d29f7912458178 (patch)
treef97c2f597537b5e8763d77addb76534a684503fa
parent6b3bf6f48a9bcd3769c2f388cba1a455a9efe61e (diff)
downloadkernel_samsung_crespo-659efdb53906e254e1dae88d85d29f7912458178.zip
kernel_samsung_crespo-659efdb53906e254e1dae88d85d29f7912458178.tar.gz
kernel_samsung_crespo-659efdb53906e254e1dae88d85d29f7912458178.tar.bz2
S5PC11X: WLAN: waiting bcm4329 firmware for AP mode to be ready.
Now, after enabling bcm4329 pin to high at machine side, probing mmc2 starts too early by dhd driver side even if the firmware for AP mode(soft AP) is not ready. So, we can hardly enable bcm4329 for soft AP. It must be guaranteed that downloading firmware for soft AP to a module be ready, before bcm4329 driver calls sdioh_start() in wl_iw. So a device waits a several mile seconds (need msleep(25) at least), after setting wlan pins to high in wlan_power_en() to be ready for AP mode firmware. Change-Id: I415f0dd4ec87ca28a9c0143944c014b93e049e87 Signed-off-by: w12.lee <w12.lee@samsung.com>
-rw-r--r--arch/arm/mach-s5pv210/mach-herring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-herring.c b/arch/arm/mach-s5pv210/mach-herring.c
index 80e2869..25ffb3e 100644
--- a/arch/arm/mach-s5pv210/mach-herring.c
+++ b/arch/arm/mach-s5pv210/mach-herring.c
@@ -3124,6 +3124,8 @@ static int wlan_power_en(int onoff)
s3c_gpio_setpull(GPIO_WLAN_nRST, S3C_GPIO_PULL_NONE);
gpio_set_value(GPIO_WLAN_nRST, GPIO_LEVEL_HIGH);
s3c_gpio_slp_cfgpin(GPIO_WLAN_nRST, S3C_GPIO_SLP_OUT1);
+
+ msleep(25);
} else {
gpio_set_value(GPIO_WLAN_nRST, GPIO_LEVEL_LOW);
s3c_gpio_slp_cfgpin(GPIO_WLAN_nRST, S3C_GPIO_SLP_OUT0);