if (!board->has_clk_gat_sce)
return -1;
- if (counter_number > 2)
- return -1;
if (gate_src > (board->is_pcie ? 31 : 7))
return -1;
if (!board->has_clk_gat_sce)
return -1;
- if (counter_number > 2)
- return -1;
return subpriv->gate_src[counter_number];
}
if (!board->has_clk_gat_sce)
return -1;
- if (counter_number > 2)
- return -1;
if (clock_src > (board->is_pcie ? 31 : 7))
return -1;
if (!board->has_clk_gat_sce)
return -1;
- if (counter_number > 2)
- return -1;
clock_src = subpriv->clock_src[counter_number];
*period_ns = clock_period[clock_src];