* [PATCH 1/2] clk: imx27: add nand clock @ 2024-04-16 6:31 Sascha Hauer 2024-04-16 6:31 ` [PATCH 2/2] clk: imx27: add watchdog clock Sascha Hauer 2024-04-16 13:41 ` [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer 0 siblings, 2 replies; 3+ messages in thread From: Sascha Hauer @ 2024-04-16 6:31 UTC (permalink / raw) To: Barebox List The NAND clock is currently missing. The NAND driver doesn't use it currently, but will be using it later once we update the driver. Add this missing clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> --- drivers/clk/imx/clk-imx27.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index 083d87fb34..7da4a1f9a6 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -246,6 +246,7 @@ static int imx27_ccm_probe(struct device *dev) clkdev_add_physbase(clks[lcdc_ahb_gate], MX27_LCDC_BASE_ADDR, "ahb"); clkdev_add_physbase(clks[lcdc_ipg_gate], MX27_LCDC_BASE_ADDR, "ipg"); clkdev_add_physbase(clks[ipg], MX27_FEC_BASE_ADDR, NULL); + clkdev_add_physbase(clks[nfc_div], MX27_NFC_BASE_ADDR, NULL); return 0; } -- 2.39.2 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] clk: imx27: add watchdog clock 2024-04-16 6:31 [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer @ 2024-04-16 6:31 ` Sascha Hauer 2024-04-16 13:41 ` [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer 1 sibling, 0 replies; 3+ messages in thread From: Sascha Hauer @ 2024-04-16 6:31 UTC (permalink / raw) To: Barebox List Since 87cad17964 the imxwd watchdog driver needs a clock to probe. Add this clock for i.MX27 to make the watchdog driver work again. Fixes: 87cad17964 ("watchdog: imxwd: get and enable clock") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> --- drivers/clk/imx/clk-imx27.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index 7da4a1f9a6..3f03705634 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -221,6 +221,7 @@ static int imx27_ccm_probe(struct device *dev) clks[per3_gate] = imx_clk_gate("per3_gate", "per3_div", base + CCM_PCCR1, 8); clks[lcdc_ahb_gate] = imx_clk_gate("lcdc_ahb_gate", "ahb", base + CCM_PCCR1, 15); clks[lcdc_ipg_gate] = imx_clk_gate("lcdc_ipg_gate", "ipg", base + CCM_PCCR0, 14); + clks[wdog_ipg_gate] = imx_clk_gate("wdog_ipg_gate", "ipg", base + CCM_PCCR1, 24); clkdev_add_physbase(clks[per1_div], MX27_GPT1_BASE_ADDR, NULL); clkdev_add_physbase(clks[per1_div], MX27_GPT2_BASE_ADDR, NULL); @@ -247,6 +248,7 @@ static int imx27_ccm_probe(struct device *dev) clkdev_add_physbase(clks[lcdc_ipg_gate], MX27_LCDC_BASE_ADDR, "ipg"); clkdev_add_physbase(clks[ipg], MX27_FEC_BASE_ADDR, NULL); clkdev_add_physbase(clks[nfc_div], MX27_NFC_BASE_ADDR, NULL); + clkdev_add_physbase(clks[wdog_ipg_gate], MX27_WDOG_BASE_ADDR, NULL); return 0; } -- 2.39.2 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] clk: imx27: add nand clock 2024-04-16 6:31 [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer 2024-04-16 6:31 ` [PATCH 2/2] clk: imx27: add watchdog clock Sascha Hauer @ 2024-04-16 13:41 ` Sascha Hauer 1 sibling, 0 replies; 3+ messages in thread From: Sascha Hauer @ 2024-04-16 13:41 UTC (permalink / raw) To: Barebox List, Sascha Hauer On Tue, 16 Apr 2024 08:31:25 +0200, Sascha Hauer wrote: > The NAND clock is currently missing. The NAND driver doesn't use it > currently, but will be using it later once we update the driver. Add > this missing clock. > > Applied, thanks! [1/2] clk: imx27: add nand clock https://git.pengutronix.de/cgit/barebox/commit/?id=c817f57bd873 (link may not be stable) [2/2] clk: imx27: add watchdog clock https://git.pengutronix.de/cgit/barebox/commit/?id=f40319c8e157 (link may not be stable) Best regards, -- Sascha Hauer <s.hauer@pengutronix.de> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-16 13:42 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-04-16 6:31 [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer 2024-04-16 6:31 ` [PATCH 2/2] clk: imx27: add watchdog clock Sascha Hauer 2024-04-16 13:41 ` [PATCH 1/2] clk: imx27: add nand clock Sascha Hauer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox