ap_cpu_clk
struct ap_cpu_clk *clk = to_ap_cpu_clk(hw);
struct ap_cpu_clk *clk = to_ap_cpu_clk(hw);
struct ap_cpu_clk *ap_cpu_clk;
ap_cpu_clk = devm_kcalloc(dev, nclusters, sizeof(*ap_cpu_clk),
if (!ap_cpu_clk)
ap_cpu_clk[cluster_index].clk_name =
ap_cpu_clk[cluster_index].cluster = cluster_index;
ap_cpu_clk[cluster_index].pll_cr_base = regmap;
ap_cpu_clk[cluster_index].hw.init = &init;
ap_cpu_clk[cluster_index].dev = dev;
ap_cpu_clk[cluster_index].pll_regs = of_device_get_match_data(&pdev->dev);
init.name = ap_cpu_clk[cluster_index].clk_name;
ret = devm_clk_hw_register(dev, &ap_cpu_clk[cluster_index].hw);
ap_cpu_data->hws[cluster_index] = &ap_cpu_clk[cluster_index].hw;
#define to_ap_cpu_clk(_hw) container_of(_hw, struct ap_cpu_clk, hw)