projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01a6113
)
powerpc/t4rdb: fix cpld reset altbank
author
Shaohui Xie
<Shaohui.Xie@freescale.com>
Wed, 29 Apr 2015 06:56:53 +0000
(14:56 +0800)
committer
York 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
patch
|
blob
|
history
diff --git
a/board/freescale/t4rdb/cpld.c
b/board/freescale/t4rdb/cpld.c
index d5f3812872fb72986d63367ed662920d1e6266ff..d563d0d35ce1def903013922dec2800f3fdee994 100644
(file)
--- 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_BANK
0
;
+ altbank = CPLD_SELECT_BANK
4
;
CPLD_WRITE(vbank, altbank);
override = CPLD_READ(software_on);
CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN);