From afa0439a7538fe7b017b7a05512ee5d58a176af4 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 14 Nov 2016 14:10:42 -0800 Subject: examples/imx7_colibri_m4: select correct clock for GPTA GPTA is supposed to run directly of the 24MHz OSC. Fix a type which update GPTB's root clock instead of GPTA. Note: GPTB seems to rely on the System PLL PFD0, which seems to be influenced by Linux' SDHC driver. Freezes of both systems have been observed. Disabling the SDHC driver on the Linux side or using the 24MHz clock source for GPTB seem to avoid freezes. Signed-off-by: Stefan Agner --- examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c b/examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c index b43ffbb..b198654 100644 --- a/examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c +++ b/examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c @@ -51,7 +51,7 @@ void hardware_init(void) CCM_ControlGate(CCM, ccmPllGatePfd0, ccmClockNeededRunWait); /* Select GPTA clock derived from OSC 24M */ - CCM_UpdateRoot(CCM, BOARD_GPTB_CCM_ROOT, ccmRootmuxGptOsc24m, 0, 0); + CCM_UpdateRoot(CCM, BOARD_GPTA_CCM_ROOT, ccmRootmuxGptOsc24m, 0, 0); /* Select GPTB clock derived from PLL PFD0 clock divide 4 (pre=2 post=2) */ CCM_UpdateRoot(CCM, BOARD_GPTB_CCM_ROOT, ccmRootmuxGptSysPllPfd0, 1, 1); -- cgit v1.2.3