]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mxs: be more careful when enabling gpmi_clk
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 12 Sep 2019 09:17:11 +0000 (09:17 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:57 +0000 (10:26 +0100)
commitabaf5c98047338c8d8774ff0a5cbc9efffda92f0
tree403c65514e691a98c750c0fc85691443f9a70875
parentfb9462522991a50b95ea00fdbc495634bb6a7cca
arm: mxs: be more careful when enabling gpmi_clk

The data sheet says that the DIV field cannot change while the CLKGATE
bit is set or modified. So do it a little more carefully, by first
clearing the bit, waiting for that to appear, then setting the DIV
field.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
arch/arm/cpu/arm926ejs/mxs/mxs.c