static int __init ssg_sdi_init(void)
{
//	ssg_sdi2_data.card_sleep_on_suspend = true;
#ifndef CONFIG_STE_WLAN
	int ret;
#endif
	/* v2 has a new version of this block that need to be forced */
	u32 periphid = 0x10480180;

	db8500_add_sdi2(&ssg_sdi2_data, periphid);
	codina_sdi2_init();

	if ((sec_debug_settings & SEC_DBG_STM_VIA_SD_OPTS) == 0) {
		/* not tracing via SDI0 pins, so can enable SDI0 */
		sdi0_configure();
		db8500_add_sdi0(&ssg_sdi0_data, periphid);
	}

	db8500_add_sdi1(&ssg_sdi1_data, periphid);

#ifndef CONFIG_STE_WLAN
	/* BCM */
	codina_wifi_init();
#endif

#ifdef CONFIG_BROADCOM_WIFI_RESERVED_MEM
	brcm_init_wlan_mem();
#endif
#ifndef CONFIG_STE_WLAN
	ret =  platform_device_register(&brcm_device_wlan);
#endif
	return 0;
}
示例#2
0
static int __init ssg_sdi_init(void)
{
	ssg_sdi2_data.card_sleep_on_suspend = true;
	db8500_add_sdi2(&ssg_sdi2_data);
	codina_sdi2_init();

	if ((sec_debug_settings & SEC_DBG_STM_VIA_SD_OPTS) == 0) {
		/* not tracing via SDI0 pins, so can enable SDI0 */
		sdi0_configure();
		db8500_add_sdi0(&ssg_sdi0_data);
	}

	db8500_add_sdi1(&ssg_sdi1_data);

	/* BCM */
	codina_wifi_init();
#ifdef WLAN_STATIC_BUF
	init_wifi_mem();
#endif /* WLAN_STATIC_BUF */

	return 0;
}