The parent at this index is the secondary mux, which can connect
not only to primary PLL/2 but also to XO. Rename the index to SMUX_INDEX
to better reflect the parent.
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220621160621.24415-2-y.oudjana@protonmail.com
 #include "clk-regmap.h"
 
 enum _pmux_input {
-       DIV_2_INDEX = 0,
+       SMUX_INDEX = 0,
        PLL_INDEX,
        ACD_INDEX,
        ALT_INDEX,
        case POST_RATE_CHANGE:
                if (cnd->new_rate < DIV_2_THRESHOLD)
                        ret = clk_cpu_8996_mux_set_parent(&cpuclk->clkr.hw,
-                                                         DIV_2_INDEX);
+                                                         SMUX_INDEX);
                else
                        ret = clk_cpu_8996_mux_set_parent(&cpuclk->clkr.hw,
                                                          ACD_INDEX);