Skip to content

Commit

Permalink
arm/aspeed: Set GPIOC pins to GPIO mode
Browse files Browse the repository at this point in the history
GPIOC4, GPIOC5 and GPIOC6 are FUNC_MODE{0,1,2}. These nets are connected
to the Ethernet phy, and to ensure correct operation they all need to be
in GPIO mode (SCU90[0] = 1) and then pulled down.

Signed-off-by: Joel Stanley <joel@jms.id.au>
  • Loading branch information
Joel Stanley committed Mar 29, 2016
1 parent aeb4718 commit d72df69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-aspeed/aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void __init do_common_setup(void)
writel(0x01C000FF, AST_IO(AST_BASE_SCU | 0x88));
writel(0xC1C000FF, AST_IO(AST_BASE_SCU | 0x8c));
writel(0x01C0007F, AST_IO(AST_BASE_SCU | 0x88));
writel(0x003FA009, AST_IO(AST_BASE_SCU | 0x90));
writel(0x003FA008, AST_IO(AST_BASE_SCU | 0x90));

/* Setup scratch registers */
writel(0x00000042, AST_IO(AST_BASE_LPC | 0x170));
Expand Down

0 comments on commit d72df69

Please sign in to comment.