[PATCH 1/3] clk: imx28: Set gpmi clock to gpmi_ref

Sascha Hauer s.hauer at pengutronix.de
Tue May 4 07:10:29 PDT 2021


The GPMI is parented to ref_xtal (=24MHz) by default. Reparent it to
ref_gpmi to get reasonable NAND speed.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/clk/mxs/clk-imx28.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c
index aa4ba99cd7..382021e49c 100644
--- a/drivers/clk/mxs/clk-imx28.c
+++ b/drivers/clk/mxs/clk-imx28.c
@@ -145,6 +145,7 @@ static int __init mx28_clocks_init(struct device_d *dev, void __iomem *regs)
 	clk_set_rate(clks[ssp2], 96000000);
 	clk_set_rate(clks[ssp3], 96000000);
 	clk_set_parent(clks[lcdif_sel], clks[ref_pix]);
+	clk_set_parent(clks[gpmi_sel], clks[ref_gpmi]);
 
 	if (dev->device_node) {
 		clk_data.clks = clks;
-- 
2.29.2




More information about the barebox mailing list