]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: socrates: make rtc work
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 28 Mar 2019 20:11:50 +0000 (21:11 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 24 Apr 2019 22:00:49 +0000 (00:00 +0200)
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 <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
board/ebv/socrates/qts/iocsr_config.h

index 011fa2bac3fba7dc107b364a12a9fa5de584687f..18b9c6ce4dfc003cd5e74f1b8ff91e3756a3684e 100644 (file)
@@ -108,7 +108,7 @@ const unsigned long iocsr_scan_chain2_table[] = {
        0x00018004,
        0x06001209,
        0x00004000,
-       0x20002412,
+       0x20042412,
        0x00904800,
        0x00000030,
        0x80000000,