Add support for APMIXED parent in infra MUX. This is the case for mt7622
that reference APMIXED parents for the MUX1_SEL clock.
We assume the second level parent is always APMIXED.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
switch (flags & CLK_PARENT_MASK) {
case CLK_PARENT_XTAL:
return priv->tree->xtal_rate;
+ /* Assume the second level parent is always APMIXED */
+ case CLK_PARENT_APMIXED:
+ priv = dev_get_priv(priv->parent);
+ fallthrough;
case CLK_PARENT_TOPCKGEN:
return mtk_clk_find_parent_rate(clk, parent, priv->parent);
default: