/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
}
if (NULL == clks) {
/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
}
for (clkid = CLKID_AO_BASE; clkid < NR_CLKS; clkid++) {
#include "clkc.h"
static struct dentry *debugfs_root;
-#define NR_CLKS 221
+//#define NR_CLKS 221
+
void usage(void)
{
pr_info("\nclk_test:\n");
int idx;
struct clk *cur_clk;
- for (idx = 0; idx < NR_CLKS; idx++) {
+ for (idx = 0; idx < clk_numbers; idx++) {
if (!clks[idx]) {
pr_debug("no such clk clks[%d]\n", idx);
continue;
void meson_g12a_gpu_init(void);
void meson_g12a_misc_init(void);
+extern int clk_numbers;
#endif /* __CLKC_H */
/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
}
clk_data.clks = clks;
/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
}
for (clkid = CLKID_AO_BASE; clkid < NR_CLKS; clkid++) {
pr_err("%s: alloc clks fail!", __func__);
return;
}
+ clk_numbers = NR_CLKS;
}
/*
DEFINE_SPINLOCK(clk_lock);
struct clk **clks;
+int clk_numbers;
static struct clk_onecell_data clk_data;
void __iomem *clk_base;
/* #undef pr_debug */
/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
/* pr_debug("%s: kzalloc clks ok!", __func__); */
clk_data.clks = clks;
clk_data.clk_num = NR_CLKS;
struct clk **clks;
void __iomem *clk_base;
static struct clk_onecell_data clk_data;
+int clk_numbers;
static const struct pll_rate_table sys_pll_rate_table[] = {
PLL_RATE(312000000, 52, 1, 2),
/* return -ENOMEM; */
return;
}
+ clk_numbers = NR_CLKS;
clk_data.clks = clks;
clk_data.clk_num = NR_CLKS;
/*
pr_err("%s: error: not kzalloc clks in eeclk!", __func__);
return;
}
-
+ clk_numbers = NR_CLKS;
clk_data.clks = clks;
clk_data.clk_num = NR_CLKS;