From: Shaohui Xie Date: Wed, 29 Apr 2015 06:56:53 +0000 (+0800) Subject: powerpc/t4rdb: fix cpld reset altbank X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f57709ab180bc307d0e235ef5b127a4f20e28663;p=u-boot.git powerpc/t4rdb: fix cpld reset altbank cpld reset altbank should always reset to bank4 no matter what current bank is. Signed-off-by: Shaohui Xie Reviewed-by: York Sun --- diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c index d5f3812872..d563d0d35c 100644 --- a/board/freescale/t4rdb/cpld.c +++ b/board/freescale/t4rdb/cpld.c @@ -47,14 +47,8 @@ void cpld_set_altbank(void) switch (curbank) { case CPLD_SELECT_BANK0: - altbank = CPLD_SELECT_BANK4; - CPLD_WRITE(vbank, altbank); - override = CPLD_READ(software_on); - CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN); - CPLD_WRITE(sys_reset, CPLD_SYSTEM_RESET); - break; case CPLD_SELECT_BANK4: - altbank = CPLD_SELECT_BANK0; + altbank = CPLD_SELECT_BANK4; CPLD_WRITE(vbank, altbank); override = CPLD_READ(software_on); CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN);