diff options
Diffstat (limited to 'board/aspeed/ast2050/ast2050.c')
-rw-r--r-- | board/aspeed/ast2050/ast2050.c | 5 |
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 |