示例#1
0
void abe_decide_main_port(void)
{
	u32 id, id_not_found;
	id_not_found = 1;
	for (id = 0; id < LAST_PORT_ID - 1; id++) {
		if (abe_valid_port_for_synchro(abe_port_priority[id])) {
			id_not_found = 0;
			break;
		}
	}
	/* if no port is currently activated, the default one is PDM_DL */
	if (id_not_found)
		abe_select_main_port(PDM_DL_PORT);
	else
		abe_select_main_port(abe_port_priority[id]);
}
示例#2
0
void abe_load_fw(void)
{
	_lock_enter
	_log(id_load_fw,0,0,0)

	abe_load_fw_param(ABE_FW_PM, sizeof (ABE_FW_PM),
			ABE_FW_CM, sizeof(ABE_FW_CM),
			ABE_FW_SM, sizeof(ABE_FW_SM),
			ABE_FW_DM, sizeof(ABE_FW_DM));

	abe_reset_all_ports();
	abe_build_scheduler_table();
	abe_reset_all_sequence();
	abe_select_main_port(PDM_DL_PORT);
	_lock_exit

}