[U-Boot] [PATCH] powerpc/t4rdb: fix cpld reset altbank

shh.xie at gmail.com shh.xie at gmail.com
Wed Apr 29 08:56:53 CEST 2015


From: Shaohui Xie <Shaohui.Xie at freescale.com>

cpld reset altbank should always reset to bank4 no matter what current
bank is.

Signed-off-by: Shaohui Xie <Shaohui.Xie at freescale.com>
---
 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 d5f3812..d563d0d 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.1.0.27.g96db324



More information about the U-Boot mailing list