armv8/ls1043ardb: fix the limitation of using 'cpld reset'
authorQianyu Gong <qianyu.gong@nxp.com>
Mon, 25 Apr 2016 08:38:35 +0000 (16:38 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 May 2016 15:51:44 +0000 (08:51 -0700)
commit869bf86811a7c942dc48b294d5c0442b1f57ab53
treebc8b01eeab4b8d0260e9559efb3775c8a4b3e60e
parent12cbf20d78f93c86e287d86ff863926e5cde9355
armv8/ls1043ardb: fix the limitation of using 'cpld reset'

The current 'cpld reset' will just write global_rst register
but couldn't switch to NOR boot if the board's switches are
for NAND/SD boot. So need to write rcw source registers for
NOR boot as well.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1043ardb/cpld.c
board/freescale/ls1043ardb/cpld.h