Skip to content

Commit

Permalink
arm: socfpga: socrates: make rtc work
Browse files Browse the repository at this point in the history
This patch makes the on-board RTC work on the socfpga_socrates board.
This rtc is present on the board, but it does not work (fails with a
timeout).

This patch adds a weak pull-up on the I2C0-SCL pin connected to the m41t82
RTC on this board. While the SDA line has a pull-up on the pcb, the pull-up
on the SCL line seems to be missing. To work around this, enable the
weak-pull-up feature on this pin.

After applying this patch, the rtc timeout is gone and the 'date' command
can access the rtc chip.

Signed-off-by: Simon Goldschmidt <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
  • Loading branch information
goldsimon authored and Marek Vasut committed Apr 24, 2019
1 parent 4e829e9 commit d1aa159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/ebv/socrates/qts/iocsr_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const unsigned long iocsr_scan_chain2_table[] = {
0x00018004,
0x06001209,
0x00004000,
0x20002412,
0x20042412,
0x00904800,
0x00000030,
0x80000000,
Expand Down

0 comments on commit d1aa159

Please sign in to comment.