armv8/fsl-lsch2: make the workaround for PIN MUX erratum A010539 robust
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Wed, 25 Apr 2018 06:25:42 +0000 (14:25 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 9 May 2018 14:17:51 +0000 (09:17 -0500)
commit8b40f22900f3618ab1b83d15d078ab6f75c7c800
tree2a1365c9ff63d5cdcaae795132ab96116fe3911b
parent945fad57be827482091c6d39443d51052c7a8d7d
armv8/fsl-lsch2: make the workaround for PIN MUX erratum A010539 robust

Mask HRESET_B after cleared the the RCW_SRC, because in the workaround
we override the RCW_SRC and if HRESET_B is issued after the override
then SoC cannot find valid RCW as the RCW_SRC was overwritten and
result in hang. So we need to mask HRESET_B in case user asserts it,
and the PORESET_B should be asserted which leads to resampling of
cfg_rcw_src pins and loading of correct RCW_SRC.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c