debugcc: move post_div_val into struct debug_mux

It looks like post_div_val is a property of debug_mux rather than the
clock itself. It is equal for all the clocks being set. So, set it on a
mux-by-mux bases.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2021-11-17 17:40:51 +03:00
committed by Bjorn Andersson
parent 1487463c28
commit de23d9a42e
5 changed files with 627 additions and 620 deletions

View File

@@ -48,6 +48,7 @@ struct debug_mux {
unsigned int div_reg;
unsigned int div_shift;
unsigned int div_mask;
unsigned int div_val;
unsigned int xo_div4_reg;
unsigned int debug_ctl_reg;
@@ -61,11 +62,9 @@ struct measure_clk {
char *name;
struct debug_mux *primary;
int mux;
int post_div;
struct debug_mux *leaf;
int leaf_mux;
int leaf_div;
unsigned int fixed_div;
};