Skip to content

Commit

Permalink
arm/aspeed: Reset AHB on boot
Browse files Browse the repository at this point in the history
The Aspeed u-boot port from the Aspeed SDK performed I2C initialisation.
Part of this appears to require a AHB reset in order to successfully
access the I2C registers.

So we can boot the stable kernels on systems with new u-boot we add this
to the stable kernel tree.

Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
Joel Stanley committed Aug 8, 2016
1 parent aa65fa6 commit 719793a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/mach-aspeed/aspeed.c
Original file line number Diff line number Diff line change
@@ -200,9 +200,14 @@ static void __init aspeed_init_early(void)
{
u32 reg;

/* Unlock SCU */
writel(SCU_PASSWORD, AST_IO(AST_BASE_SCU));

/* Reset AHB bridges */
writel(0x02, AST_IO(AST_BASE_SCU | 0x04));

// XXX UART stuff to fix to pinmux & co
writel(0x02010023, AST_IO(AST_BASE_LPC | 0x9c));
writel(SCU_PASSWORD, AST_IO(AST_BASE_SCU)); // UNLOCK SCU
writel(0xcb000000, AST_IO(AST_BASE_SCU | 0x80));
writel(0x00fff0c0, AST_IO(AST_BASE_SCU | 0x84));
writel(0x10CC5E80, AST_IO(AST_BASE_SCU | 0x0c));

0 comments on commit 719793a

Please sign in to comment.