コード例 #1
0
static void msm_otg_host_notify(struct msm_otg *motg, int on)
{
	if (on)
		msm_otg_host_phy_tune(motg, 0x33, 0x14, 0x13);
	else
		ulpi_init(motg);
}
コード例 #2
0
static void msm_otg_host_notify(struct msm_otg *motg, int on)
{
	pr_info("host_notify: %d, dock %d\n", on, motg->smartdock);

	if (on)
		msm_otg_host_phy_tune(motg, 0x33, 0x14);
}
コード例 #3
0
ファイル: msm_otg_sec.c プロジェクト: sombree/Hulk-Kernel-V2
static void msm_otg_host_notify(struct msm_otg *motg, int on)
{
	pr_info("host_notify: %d, dock %d\n", on, motg->smartdock);

	if (on)
		msm_otg_host_phy_tune(motg, 0x33, 0x14);

	if (motg->smartdock) {
		motg->ndev.state = NOTIFY_HOST_REMOVE;
		return;
	}

	if (on) {
		motg->ndev.mode = NOTIFY_HOST_MODE;
		host_state_notify(&motg->ndev, NOTIFY_HOST_ADD);
	} else {
		motg->ndev.mode = NOTIFY_NONE_MODE;
		host_state_notify(&motg->ndev, NOTIFY_HOST_REMOVE);
	}
}