]> git.dujemihanovic.xyz Git - u-boot.git/commit
fsl_esdhc: Touch only relevant sys ctrl bits
authorDirk Behme <dirk.behme@de.bosch.com>
Mon, 15 Jul 2013 13:44:29 +0000 (15:44 +0200)
committerAndy Fleming <afleming@freescale.com>
Tue, 16 Jul 2013 23:44:23 +0000 (18:44 -0500)
commita61da72bda80e09f36afbc9037a8c8b63b482de4
treed9eb4e8aa5bcbf9bbf6455bca097ca4296b0c599
parentca6d4d0f8f0fb8ae09a7ba271177367bdfdf3136
fsl_esdhc: Touch only relevant sys ctrl bits

Dealing with the sys ctrl register should touch only the
relevant bits and not accidently the whole register. On i.MX6,
the sys control register contains bits which shouldn't be reset to
0, e.g. SYS_CTRL[3-0] and IPP_RST_N (SYS_CTRL[23]).

Do this by read/modify/write instead of just a 32bit write.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/fsl_esdhc.c