]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: timer: don't clear the GPT control register multiple times
authorAnatolij Gustschin <agust@denx.de>
Mon, 28 Aug 2017 15:46:32 +0000 (17:46 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Aug 2017 07:47:28 +0000 (09:47 +0200)
commitae64226dbec2a50a2d88027018c9bd25b20c4ae0
tree887f0d89f68d5214418fedc29135c5d6a94afdc4
parentcb40adff8fd5335c0f623562c57bf8505c32b16f
imx: timer: don't clear the GPT control register multiple times

There is no need to clear the control register 100 times in a
loop, a single zero write clears the register. I didn't find any
justification why clearing this register in a loop is needed
(no info in i.MX6 errata or GPT timer linux driver, linux driver
uses single write to clear this control register).

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/timer.c