Skip to contentSkip to conversation

s3c64xx: support the soft reset at s3c6410

PATCH New Minkyu Kang 2 participants 3 messages Apr 2, 2009 – Jun 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s3c64xx: support the soft reset at s3c6410

This patch support the soft reset at s3c6410

---
 cpu/arm1176/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
cpu/arm1176/cpu.c +4 -0
index 1e94f7d..cb13d9c 100644
@@ -112,7 +112,11 @@ int cleanup_before_linux (void)
 void reset_cpu (ulong ignored)
 {
 	printf("reset... \n\n\n");
+#if defined(CONFIG_S3C6410)
+	SW_RST_REG = 0x6410;
+#else
 	SW_RST_REG = 0x6400;
+#endif
 	/* loop forever and wait for reset to happen */
 	while (1) {
 		if (serial_tstc()) {
#1 lore raw

PATCH 1/1 s3c64xx: support the soft reset at s3c6410

Quoted 12 lines · Minkyu Kang

This patch support the soft reset at s3c6410

---
 cpu/arm1176/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
cpu/arm1176/cpu.c +0 -0
index 1e94f7d..cb13d9c 100644

cpu/arm1176/cpu.c int cleanup_before_linux (void) · line 119

Quoted 8 lines
cpu/arm1176/cpu.c +4 -0
@@ -112,7 +112,11 @@ int cleanup_before_linux (void)
 void reset_cpu (ulong ignored)
 {
 	printf("reset... \n\n\n");
+#if defined(CONFIG_S3C6410)
+	SW_RST_REG = 0x6410;
+#else
 	SW_RST_REG = 0x6400;
+#endif

this is soc specific please move to the soc
and please use proper accessor

Best Regards,
J.

#2 lore raw

PATCH 1/1 s3c64xx: support the soft reset at s3c6410

Quoted 8 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 7 lines · Minkyu Kang

This patch support the soft reset at s3c6410

---
 cpu/arm1176/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Quoted 15 lines

cpu/arm1176/cpu.c int cleanup_before_linux (void) · line 119

Quoted 13 lines
cpu/arm1176/cpu.c +4 -0
index 1e94f7d..cb13d9c 100644
@@ -112,7 +112,11 @@ int cleanup_before_linux (void)
 void reset_cpu (ulong ignored)
 {
 	printf("reset... \n\n\n");
+#if defined(CONFIG_S3C6410)
+	SW_RST_REG = 0x6410;
+#else
 	SW_RST_REG = 0x6400;
+#endif

this is soc specific please move to the soc
and please use proper accessor

ping

will you send a new version soon

Best Regards,
J.