debugcc: support 32 bit systems

Unsigned long have a different size in 32 bit system and this cause the
malfunction of debugcc returning wrong frequency. Use 64bit unsigned int
to correctly support 32 bit system and provide correct frequency.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi
2023-06-13 16:54:54 +02:00
parent aff941f908
commit 5dd120810b

View File

@@ -116,8 +116,8 @@ void mux_disable(struct debug_mux *mux)
unsigned long measure_gcc(const struct measure_clk *clk,
const struct debug_mux *mux)
{
unsigned long raw_count_short;
unsigned long raw_count_full;
uint64_t raw_count_short;
uint64_t raw_count_full;
struct gcc_mux *gcc = container_of(mux, struct gcc_mux, mux);
unsigned long xo_div4;