summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-11-14 14:10:42 -0800
committerStefan Agner <stefan.agner@toradex.com>2016-11-14 14:18:36 -0800
commitafa0439a7538fe7b017b7a05512ee5d58a176af4 (patch)
treeef9d25fbedaaf67afffeab9e7543aea75ec2ea4f
parent4a5389d6a62ecfd44c65bbdf7c8f7cd07b3cf1cf (diff)
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 <stefan.agner@toradex.com>
-rw-r--r--examples/imx7_colibri_m4/driver_examples/gpt/hardware_init.c2
1 files changed, 1 insertions, 1 deletions
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);