Skip to content

Commit

Permalink
Change I2C frequency
Browse files Browse the repository at this point in the history
HW asked to change the SMB1-4 frequency to about 93K

Change-Id: I62c7ecb9c038a1a717d258ba33ae313f13857876
Signed-off-by: Jason Luo <[email protected]>
  • Loading branch information
JasonLuo701 authored and yupalani committed Aug 5, 2017
1 parent e025ee3 commit 9ee1b77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-aspeed/aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ static void __init do_sthelens_setup(void)
writel(0x00008000, AST_IO(AST_BASE_GPIO | 0x3C));
writel(0x000000FF, AST_IO(AST_BASE_GPIO | 0xAC));
writel(0x00000018, AST_IO(AST_BASE_GPIO | 0xFC));

/* fix low time and frequency issues of I2C signals */
writel(0x77777305, AST_IO(AST_BASE_I2C | 0x44));
writel(0x77777305, AST_IO(AST_BASE_I2C | 0x84));
writel(0x77777305, AST_IO(AST_BASE_I2C | 0xc4));
writel(0x77777305, AST_IO(0x1E78A100 | 0x04));
}
static void __init do_palmetto_setup(void)
{
Expand Down

0 comments on commit 9ee1b77

Please sign in to comment.