diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:15 +0000 |
---|---|---|
committer | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:15 +0000 |
commit | c788a30001fcdd13efab9739b4b304e25ceddfc0 (patch) | |
tree | 07a4cede9d1f8f67a76c7510ab31bc3b74746c22 /arch/arm | |
parent | e5889dbde9d009145dd76ff7abf8f24c81bd5f64 (diff) |
fix-set-wlan-power-mgt-to-default-on.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-s3c24xx/gta02_pm_wlan.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/gta02_pm_wlan.c b/arch/arm/plat-s3c24xx/gta02_pm_wlan.c index 954015e4c71..7c6154d4970 100644 --- a/arch/arm/plat-s3c24xx/gta02_pm_wlan.c +++ b/arch/arm/plat-s3c24xx/gta02_pm_wlan.c @@ -92,16 +92,19 @@ static struct attribute_group gta02_wlan_attr_group = { static int __init gta02_wlan_probe(struct platform_device *pdev) { + /* default-on for now */ + const int default_state = 1; + if (!machine_is_neo1973_gta02()) return -EINVAL; dev_info(&pdev->dev, "starting\n"); /* Power is down */ - s3c2410_gpio_setpin(GTA02_CHIP_PWD, 1); + s3c2410_gpio_setpin(GTA02_CHIP_PWD, !default_state); s3c2410_gpio_cfgpin(GTA02_CHIP_PWD, S3C2410_GPIO_OUTPUT); /* reset is asserted */ - s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, 0); + s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, default_state); s3c2410_gpio_cfgpin(GTA02_GPIO_nWLAN_RESET, S3C2410_GPIO_OUTPUT); return sysfs_create_group(&pdev->dev.kobj, >a02_wlan_attr_group); |