Skip to contentSkip to conversation

board/t1040qds: Add memory reset control

PATCH Superseded Prabhakar Kushwaha 2 participants 2 messages Dec 26, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/t1040qds: Add memory reset control

JEDEC spec requires the clocks to be stable before deasserting reset signal for RDIMMs. Clocks start when any chip select is enabled and clock control register is set. This patch also adds the interface to toggle memory reset signal if needed by the boards.

---
 board/freescale/t1040qds/t1040qds.c |    5 +++++
 include/configs/T1040QDS.h          |    1 +
 2 files changed, 6 insertions(+)
board/freescale/t1040qds/t1040qds.c +5 -0
index 2aa176c..de3ea5c 100644
@@ -239,3 +239,8 @@ void qixis_dump_switch(void)
 		printf("SW%d = (0x%02x)\n", i, QIXIS_READ(cms[1]));
 	}
 }
+
+int board_need_mem_reset(void)
+{
+	return 1;
+}
include/configs/T1040QDS.h +1 -0
index 1cfbf06..7bae2c8 100644
@@ -232,6 +232,7 @@ unsigned long get_board_ddr_clk(void);
 #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20
 #define QIXIS_RCFG_CTL_RECONFIG_START	0x21
 #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE	0x08
+#define	QIXIS_RST_FORCE_MEM		0x01
 
 #define CONFIG_SYS_CSPR3_EXT	(0xf)
 #define CONFIG_SYS_CSPR3	(CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) \
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 board/t1040qds: Add memory reset control

Quoted 38 lines · Prabhakar Kushwaha

JEDEC spec requires the clocks to be stable before deasserting reset signal for RDIMMs. Clocks start when any chip select is enabled and clock control register is set. This patch also adds the interface to toggle memory reset signal if needed by the boards.

---

board/freescale/t1040qds/t1040qds.c |    5 +++++
include/configs/T1040QDS.h          |    1 +
2 files changed, 6 insertions(+)
board/freescale/t1040qds/t1040qds.c +5 -0
index 2aa176c..de3ea5c 100644
@@ -239,3 +239,8 @@ void qixis_dump_switch(void)
 		printf("SW%d = (0x%02x)\n", i, QIXIS_READ(cms[1]));
 	}
 }
+
+int board_need_mem_reset(void)
+{
+	return 1;
+}
include/configs/T1040QDS.h +1 -0
index 1cfbf06..7bae2c8 100644
@@ -232,6 +232,7 @@ unsigned long get_board_ddr_clk(void);
 #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20
 #define QIXIS_RCFG_CTL_RECONFIG_START	0x21
 #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE	0x08
+#define	QIXIS_RST_FORCE_MEM		0x01
 
 #define CONFIG_SYS_CSPR3_EXT	(0xf)
 #define CONFIG_SYS_CSPR3	(CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) \
Signature · 1 line
1.7.9.5

Prabhakar,

Your patch doesn't do what the commit message says. It only enables this feature for T1040QDS board.

York