]> git.sur5r.net Git - u-boot/commitdiff
powerpc/t4rdb: fix cpld reset altbank
authorShaohui Xie <Shaohui.Xie@freescale.com>
Wed, 29 Apr 2015 06:56:53 +0000 (14:56 +0800)
committerYork Sun <yorksun@freescale.com>
Tue, 28 Jul 2015 21:41:15 +0000 (14:41 -0700)
cpld reset altbank should always reset to bank4 no matter what
current bank is.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t4rdb/cpld.c

index d5f3812872fb72986d63367ed662920d1e6266ff..d563d0d35ce1def903013922dec2800f3fdee994 100644 (file)
@@ -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);