i.MX6: Fix a bit setting in the timer configuration

This commit is contained in:
Gregory Nutt
2016-05-17 07:21:18 -06:00
parent 80a9357b6f
commit 4c08492c0f
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ void up_timer_initialize(void)
/* Disable GPT by setting EN=0 in GPT_CR register */
cr = getreg32(IMX_GPT_CR);
cr = getreg32(IMX_GPT_CR);
cr &= ~GPT_CR_EN;
putreg32(cr, IMX_GPT_CR);
@@ -221,7 +221,7 @@ void up_timer_initialize(void)
*/
cr &= ~GPT_CR_FFR;
putreg32(cr | GPT_CR_SWR, IMX_GPT_CR);
putreg32(cr, IMX_GPT_CR);
/* Set ENMOD=1 in GPT_CR register, to bring GPT counter to 0x00000000. If
* the ENMOD bit is 1, then the Main Counter and Prescaler Counter values