From f57709ab180bc307d0e235ef5b127a4f20e28663 Mon Sep 17 00:00:00 2001 From: Shaohui Xie Date: Wed, 29 Apr 2015 14:56:53 +0800 Subject: [PATCH] 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 --- board/freescale/t4rdb/cpld.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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); -- 2.30.2