static const struct ccu_desc a10_ccu_desc = {
.gates = a10_gates,
.resets = a10_resets,
+ .num_gates = ARRAY_SIZE(a10_gates),
+ .num_resets = ARRAY_SIZE(a10_resets),
};
static int a10_clk_bind(struct udevice *dev)
static const struct ccu_desc a10s_ccu_desc = {
.gates = a10s_gates,
.resets = a10s_resets,
+ .num_gates = ARRAY_SIZE(a10s_gates),
+ .num_resets = ARRAY_SIZE(a10s_resets),
};
static int a10s_clk_bind(struct udevice *dev)
static const struct ccu_desc a23_ccu_desc = {
.gates = a23_gates,
.resets = a23_resets,
+ .num_gates = ARRAY_SIZE(a23_gates),
+ .num_resets = ARRAY_SIZE(a23_resets),
};
static int a23_clk_bind(struct udevice *dev)
static const struct ccu_desc a31_ccu_desc = {
.gates = a31_gates,
.resets = a31_resets,
+ .num_gates = ARRAY_SIZE(a31_gates),
+ .num_resets = ARRAY_SIZE(a31_resets),
};
static int a31_clk_bind(struct udevice *dev)
static const struct ccu_desc a31_r_ccu_desc = {
.gates = a31_r_gates,
.resets = a31_r_resets,
+ .num_gates = ARRAY_SIZE(a31_r_gates),
+ .num_resets = ARRAY_SIZE(a31_r_resets),
};
static int a31_r_clk_bind(struct udevice *dev)
static const struct ccu_desc a64_ccu_desc = {
.gates = a64_gates,
.resets = a64_resets,
+ .num_gates = ARRAY_SIZE(a64_gates),
+ .num_resets = ARRAY_SIZE(a64_resets),
};
static int a64_clk_bind(struct udevice *dev)
static const struct ccu_desc a80_ccu_desc = {
.gates = a80_gates,
.resets = a80_resets,
+ .num_gates = ARRAY_SIZE(a80_gates),
+ .num_resets = ARRAY_SIZE(a80_resets),
};
static const struct ccu_desc a80_mmc_clk_desc = {
.gates = a80_mmc_gates,
.resets = a80_mmc_resets,
+ .num_gates = ARRAY_SIZE(a80_mmc_gates),
+ .num_resets = ARRAY_SIZE(a80_mmc_resets),
};
static int a80_clk_bind(struct udevice *dev)
static const struct ccu_desc a83t_ccu_desc = {
.gates = a83t_gates,
.resets = a83t_resets,
+ .num_gates = ARRAY_SIZE(a83t_gates),
+ .num_resets = ARRAY_SIZE(a83t_resets),
};
static int a83t_clk_bind(struct udevice *dev)
static const struct ccu_desc f1c100s_ccu_desc = {
.gates = f1c100s_gates,
.resets = f1c100s_resets,
+ .num_gates = ARRAY_SIZE(f1c100s_gates),
+ .num_resets = ARRAY_SIZE(f1c100s_resets),
};
static int f1c100s_clk_bind(struct udevice *dev)
static const struct ccu_desc h3_ccu_desc = {
.gates = h3_gates,
.resets = h3_resets,
+ .num_gates = ARRAY_SIZE(h3_gates),
+ .num_resets = ARRAY_SIZE(h3_resets),
};
static int h3_clk_bind(struct udevice *dev)
static const struct ccu_desc h6_ccu_desc = {
.gates = h6_gates,
.resets = h6_resets,
+ .num_gates = ARRAY_SIZE(h6_gates),
+ .num_resets = ARRAY_SIZE(h6_resets),
};
static int h6_clk_bind(struct udevice *dev)
static const struct ccu_desc h616_ccu_desc = {
.gates = h616_gates,
.resets = h616_resets,
+ .num_gates = ARRAY_SIZE(h616_gates),
+ .num_resets = ARRAY_SIZE(h616_resets),
};
static int h616_clk_bind(struct udevice *dev)
static const struct ccu_desc h6_r_ccu_desc = {
.gates = h6_r_gates,
.resets = h6_r_resets,
+ .num_gates = ARRAY_SIZE(h6_r_gates),
+ .num_resets = ARRAY_SIZE(h6_r_resets),
};
static int h6_r_clk_bind(struct udevice *dev)
static const struct ccu_desc r40_ccu_desc = {
.gates = r40_gates,
.resets = r40_resets,
+ .num_gates = ARRAY_SIZE(r40_gates),
+ .num_resets = ARRAY_SIZE(r40_resets),
};
static int r40_clk_bind(struct udevice *dev)
static const struct ccu_desc v3s_ccu_desc = {
.gates = v3s_gates,
.resets = v3s_resets,
+ .num_gates = ARRAY_SIZE(v3s_gates),
+ .num_resets = ARRAY_SIZE(v3s_resets),
};
static int v3s_clk_bind(struct udevice *dev)
struct ccu_desc {
const struct ccu_clk_gate *gates;
const struct ccu_reset *resets;
+ u8 num_gates;
+ u8 num_resets;
};
/**