#include <linux/etherdevice.h>
#include <linux/netlink.h>
+#include <linux/gpio.h>
+
#define mike
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
//CONTROL_PADCONF_DSS_PCLK &= ~0xFF000000;
//CONTROL_PADCONF_DSS_PCLK = CONTROL_PADCONF_DSS_PCLK | 0x001c0000; //set to gpio mode
+#if 0 /* already configured by bootloader */
#if 1
/* omap3530 */
CONTROL_PADCONF_DSS_DATA12B &= ~0xFF000000;
GPIO3_OE |= OMAP_GPIO_BIT(68); //set gpio_68 input
GPIO3_IRQENABLE1 |= OMAP_GPIO_BIT(68); //enable irq gpio_68
GPIO3_FALLINGDETECT |= OMAP_GPIO_BIT(68);
+#endif
#endif
//printk("set gpio_83 to gpio high end\n");
}
#endif /* #ifdef TIWLAN_OMAP1610 */
+#define PANDORA_WIFI_GPIO 23
+extern void omap_mmc_fake_detect_mmc3(int is_in);
static int __init tiwlan_module_init(void)
{
if (packed_struct_tst())
;/*IT: return -EINVAL; */
+ gpio_set_value(PANDORA_WIFI_GPIO, 1);
+ msleep(100);
+ omap_mmc_fake_detect_mmc3(1);
+ msleep(100);
+
tiwlan_deb_entry=create_proc_entry("mem", 0644, NULL);
if (tiwlan_deb_entry == NULL)
return -EINVAL;
}
remove_proc_entry("mem", NULL);
printk(KERN_INFO "TI WLAN: driver unloaded\n");
+ msleep(100);
+ omap_mmc_fake_detect_mmc3(0);
}
module_init(tiwlan_module_init);