Skip to content

Commit

Permalink
arm/aspeed: Ensure all IP will be reset on reboot
Browse files Browse the repository at this point in the history
When the watchdog counts down the processor may optionally reset all of
it's peripherals. An issue was observed where the Flash controller was
placed in 4b mode and the system would not come back up.

Set it to reset all peripherals (except the SDRAM and AHB bridge), which
is the default, to ensure that everything is reset to ensure the system
can reboot.

Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
Joel Stanley committed Dec 3, 2015
1 parent 6041e18 commit d188d2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-aspeed/aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ static void __init aspeed_init_early(void)
reg = readl(AST_IO(AST_BASE_SCU | 0x90));
reg |= 0x3E0000;
writel(reg, AST_IO(AST_BASE_SCU | 0x90));

/*
* ensure all IPs are reset on watchdog expiry
*/
writel(0x003ffff3, AST_IO(AST_BASE_SCU | 0x9C));
}

static void __init aspeed_map_io(void)
Expand Down

0 comments on commit d188d2b

Please sign in to comment.