diff mbox series

[U-Boot,3/4] arm: socfpga: socrates: make rtc work

Message ID 20190312210110.30910-4-simon.k.r.goldschmidt@gmail.com
State Superseded, archived
Headers show
Series arm: socfpga: enable rtc support for the socrates board | expand

Commit Message

Simon Goldschmidt March 12, 2019, 9:01 p.m. UTC
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>
---

 board/ebv/socrates/qts/iocsr_config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Roese March 13, 2019, 5:47 a.m. UTC | #1
On 12.03.19 22:01, Simon Goldschmidt wrote:
> 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>

Thanks,
Stefan
diff mbox series

Patch

diff --git a/board/ebv/socrates/qts/iocsr_config.h b/board/ebv/socrates/qts/iocsr_config.h
index 011fa2bac3..18b9c6ce4d 100644
--- a/board/ebv/socrates/qts/iocsr_config.h
+++ b/board/ebv/socrates/qts/iocsr_config.h
@@ -108,7 +108,7 @@  const unsigned long iocsr_scan_chain2_table[] = {
 	0x00018004,
 	0x06001209,
 	0x00004000,
-	0x20002412,
+	0x20042412,
 	0x00904800,
 	0x00000030,
 	0x80000000,