Skip to content

Commit

Permalink
Merged PR 714: Change I2C frequency
Browse files Browse the repository at this point in the history
Change I2C frequency

Cherry-picked from commit `e656726a`.

Related work items: torvalds#463
  • Loading branch information
yupalani committed Aug 5, 2017
2 parents e025ee3 + 9ee1b77 commit 377dd57
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 377dd57

Please sign in to comment.