summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2015-04-29 14:56:53 +0800
committerYork Sun <yorksun@freescale.com>2015-07-28 14:41:15 -0700
commitf57709ab180bc307d0e235ef5b127a4f20e28663 (patch)
treeb44b9f6fb7af46f90d5e4987181089dd64596fa9 /board
parent01a6113d2a4d277c0d2cddb5f955f2245114bbc2 (diff)
downloadu-boot-imx-f57709ab180bc307d0e235ef5b127a4f20e28663.zip
u-boot-imx-f57709ab180bc307d0e235ef5b127a4f20e28663.tar.gz
u-boot-imx-f57709ab180bc307d0e235ef5b127a4f20e28663.tar.bz2
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 <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/t4rdb/cpld.c8
1 files changed, 1 insertions, 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);