Commit 1cce3e61 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Stephen Boyd
Browse files
parent 3b8d2042
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1437,6 +1437,20 @@ static const struct cv1800_clk_desc cv1810_desc = {
	.pre_init	= cv1810_pre_init,
};

static int sg2000_pre_init(struct device *dev, void __iomem *base,
			   struct cv1800_clk_ctrl *ctrl,
			   const struct cv1800_clk_desc *desc)
{
	cv18xx_clk_disable_auto_pd(base);

	return 0;
}

static const struct cv1800_clk_desc sg2000_desc = {
	.clks_data	= &cv1810_hw_clks,
	.pre_init	= sg2000_pre_init,
};

static int cv1800_clk_init_ctrl(struct device *dev, void __iomem *reg,
				struct cv1800_clk_ctrl *ctrl,
				const struct cv1800_clk_desc *desc)
@@ -1506,6 +1520,7 @@ static int cv1800_clk_probe(struct platform_device *pdev)
static const struct of_device_id cv1800_clk_ids[] = {
	{ .compatible = "sophgo,cv1800-clk", .data = &cv1800_desc },
	{ .compatible = "sophgo,cv1810-clk", .data = &cv1810_desc },
	{ .compatible = "sophgo,sg2000-clk", .data = &sg2000_desc },
	{ }
};
MODULE_DEVICE_TABLE(of, cv1800_clk_ids);