summaryrefslogtreecommitdiffstats
path: root/board/aspeed/ast2050
diff options
context:
space:
mode:
Diffstat (limited to 'board/aspeed/ast2050')
-rw-r--r--board/aspeed/ast2050/ast2050.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/aspeed/ast2050/ast2050.c b/board/aspeed/ast2050/ast2050.c
index efad86c..9d571b3 100644
--- a/board/aspeed/ast2050/ast2050.c
+++ b/board/aspeed/ast2050/ast2050.c
@@ -61,8 +61,11 @@ int board_init (void)
reg &= 0xfeffffff;
reg |= 0x02000000;
*((volatile ulong*) (AST_GPIO_BASE+0x20)) = reg;
- *((volatile ulong*) (AST_GPIO_BASE+0x04)) |= 0x00000010;
*((volatile ulong*) (AST_GPIO_BASE+0x24)) |= 0x03000000;
+ if (!((*((volatile ulong*) (AST_GPIO_BASE+0x04))) & 0x00000010)) {
+ *((volatile ulong*) (AST_GPIO_BASE+0x00)) |= 0x00000010;
+ *((volatile ulong*) (AST_GPIO_BASE+0x04)) |= 0x00000010;
+ }
#endif
#ifndef CONFIG_AST2050
OpenPOWER on IntegriCloud