Patchwork [U-Boot,v2] h2200: Add board reset support

login
register
mail settings
Submitter Łukasz Dałek
Date Jan. 13, 2013, 1:32 a.m.
Message ID <1358040752-28322-1-git-send-email-luk0104@gmail.com>
Download mbox | patch
Permalink /patch/211581/
State Accepted
Delegated to: Marek Vasut
Headers show

Comments

Łukasz Dałek - Jan. 13, 2013, 1:32 a.m.
Use Samsung S3CA410X01 companion chip to reset PDA.

Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
---
Changes for v2:
	- Reimplement reset_cpu() instead of board_reset()
---
 board/h2200/h2200.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Patch

diff --git a/board/h2200/h2200.c b/board/h2200/h2200.c
index 720b06e..738e480 100644
--- a/board/h2200/h2200.c
+++ b/board/h2200/h2200.c
@@ -32,6 +32,15 @@  int board_eth_init(bd_t *bis)
 	return 0;
 }
 
+void reset_cpu(ulong ignore)
+{
+	/* Enable VLIO interface on Hamcop */
+	writeb(0x1, 0x4000);
+
+	/* Reset board (cold reset) */
+	writeb(0xff, 0x4002);
+}
+
 int board_init(void)
 {
 	/* We have RAM, disable cache */