コード例 #1
0
static int stxh205_hom_begin(void)
{
	pr_info("stm: pm: Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&stxh205_wkd);
	return 0;
}
コード例 #2
0
static int stxh205_suspend_begin(suspend_state_t state)
{
	pr_info("[STM][PM] Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&stxh205_wkd);

	return 0;
}
コード例 #3
0
static int stig125_suspend_begin(suspend_state_t state)
{
	int ret = 0;

	pr_info("[STM][PM] Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&stig125_wkd);

	return ret;
}
コード例 #4
0
static int fli7610_suspend_begin(suspend_state_t state)
{
	int ret;
	pr_info("stm pm: Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&fli7610_wkd);
	target_state = state;

	ret = stm_suspend_mcm_begin(main_mcm, state, &fli7610_wkd);
	if (ret)
		return ret;

	ret = stm_suspend_mcm_begin(peripheral_mcm, state, &fli7610_wkd);
	if (ret)
		stm_suspend_mcm_end(main_mcm, state);
	return ret;
}
コード例 #5
0
static int stx7111_suspend_begin(suspend_state_t state)
{
	pr_info("[STM][PM] Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&wkd);

	if (wkd.hdmi_can_wakeup)
		/* Must keep ic_if_100 @ 100 MHz */
		return 0;

	ca_ic_if_100_clk_rate = clk_get_rate(ca_ic_if_100_clk);
	clk_set_parent(ca_ic_if_100_clk, ca_ref_clk);
	/* 15 MHz is safe to go... */
	clk_set_rate(ca_ic_if_100_clk, clk_get_rate(ca_ref_clk)/2);

	return 0;
}
コード例 #6
0
static int fli7510_suspend_begin(suspend_state_t state)
{
	pr_info("[STM][PM] Analyzing the wakeup devices\n");

	stm_check_wakeup_devices(&wkd);

	/*
	 * In case of 'standby' No change is done in the clock SubSystem
	 */
	if (state == PM_SUSPEND_STANDBY)
		return 0;

	ca_ic_100_clk_rate = clk_get_rate(ca_ic_100_clk);
	clk_set_parent(ca_ic_100_clk, ca_ref_clk);
	/* 15 MHz is safe to go... */
	clk_set_rate(ca_ic_100_clk, clk_get_rate(ca_ref_clk)/2);

	return 0;
}