int __init brcm_wifi_init_gpio(void)
{
	unsigned gpio_cfg = GPIO_CFG(get_gpio_wl_host_wake(), 0, GPIO_CFG_INPUT,
		GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA);

#if defined(CONFIG_SEC_H_PROJECT) || defined(CONFIG_SEC_MONTBLANC_PROJECT)\
	|| defined(CONFIG_SEC_VIENNA_PROJECT) || defined(CONFIG_MACH_KS01SKT)\
	|| defined(CONFIG_TIZEN_R_PROJECT) || defined(CONFIG_MACH_B3)
	if (gpio_tlmm_config(config_gpio_wl_reg_on[0], GPIO_CFG_ENABLE))
		printk(KERN_ERR "%s: Failed to configure GPIO"
			" - WL_REG_ON\n", __func__);

	if (gpio_request(GPIO_WL_REG_ON, "WL_REG_ON"))
		printk(KERN_ERR "Failed to request gpio %d for WL_REG_ON\n",
			GPIO_WL_REG_ON);

	if (gpio_direction_output(GPIO_WL_REG_ON, 0))
		printk(KERN_ERR "%s: WL_REG_ON  "
			"failed to pull down\n", __func__);
#endif /* defined CONFIG_SEC_H_PROJECT */

	if (gpio_tlmm_config(gpio_cfg, GPIO_CFG_ENABLE))
		printk(KERN_ERR "%s: Failed to configure GPIO"
			" - WL_HOST_WAKE\n", __func__);
	if (gpio_request(get_gpio_wl_host_wake(), "WL_HOST_WAKE"))
		printk(KERN_ERR "Failed to request gpio for WL_HOST_WAKE\n");
	if (gpio_direction_input(get_gpio_wl_host_wake()))
		printk(KERN_ERR "%s: WL_HOST_WAKE  "
			"failed to pull down\n", __func__);

	return 0;
}
int __init brcm_wifi_init_gpio(void)
{
	unsigned gpio_cfg = GPIO_CFG(get_gpio_wl_host_wake(), 0, GPIO_CFG_INPUT,
		GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA);

#ifndef CONFIG_SEC_KS01_PROJECT
#if !defined(CONFIG_SEC_K_PROJECT) && !defined(CONFIG_SEC_KACTIVE_PROJECT)
	if (gpio_tlmm_config(config_gpio_wl_reg_on[0], GPIO_CFG_ENABLE))
		printk(KERN_ERR "%s: Failed to configure GPIO"
			" - WL_REG_ON\n", __func__);
#endif /* not defined CONFIG_SEC_K_PROJECT and CONFIG_SEC_KACTIVE_PROJECT*/

	if (gpio_request(GPIO_WL_REG_ON, "WL_REG_ON"))
		printk(KERN_ERR "Failed to request gpio %d for WL_REG_ON\n",
			GPIO_WL_REG_ON);

	if (gpio_direction_output(GPIO_WL_REG_ON, 0))
		printk(KERN_ERR "%s: WL_REG_ON  "
			"failed to pull down\n", __func__);
#endif /* not defined CONFIG_SEC_KS01_PROJECT */

#if defined(CONFIG_SEC_K_PROJECT)
	if (system_rev == 4) {
		printk("WLAN: Skip wlan irq setting..\n");
	}
	else
	{
		if (gpio_tlmm_config(gpio_cfg, GPIO_CFG_ENABLE))
			printk(KERN_ERR "%s: Failed to configure GPIO"
				" - WL_HOST_WAKE\n", __func__);

		if (gpio_request(get_gpio_wl_host_wake(), "WL_HOST_WAKE"))
			printk(KERN_ERR "Failed to request gpio for WL_HOST_WAKE\n");

		if (gpio_direction_input(get_gpio_wl_host_wake()))
			printk(KERN_ERR "%s: WL_HOST_WAKE  "
				"failed to pull down\n", __func__);
	}
#else
	if (gpio_tlmm_config(gpio_cfg, GPIO_CFG_ENABLE))
		printk(KERN_ERR "%s: Failed to configure GPIO"
			" - WL_HOST_WAKE\n", __func__);

	if (gpio_request(get_gpio_wl_host_wake(), "WL_HOST_WAKE"))
		printk(KERN_ERR "Failed to request gpio for WL_HOST_WAKE\n");

	if (gpio_direction_input(get_gpio_wl_host_wake()))
		printk(KERN_ERR "%s: WL_HOST_WAKE  "
			"failed to pull down\n", __func__);
#endif
	return 0;
}