h2200: Add board reset support
authorŁukasz Dałek <luk0104@gmail.com>
Sat, 12 Jan 2013 15:32:31 +0000 (15:32 +0000)
committerMarek Vasut <marex@denx.de>
Sun, 5 May 2013 21:47:05 +0000 (23:47 +0200)
Use Samsung S3CA410X01 companion chip to reset PDA.

Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
board/h2200/h2200.c

index 720b06e4ce8f91c4e820af304cdd1f04faecb384..738e480a45448ab877d05952f3a76f9b60c83423 100644 (file)
@@ -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 */