From: Łukasz Dałek Date: Sat, 12 Jan 2013 15:32:31 +0000 (+0000) Subject: h2200: Add board reset support X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=66a62ce0dc48d2319938c72f34a562f519c5d5c2;p=u-boot.git h2200: Add board reset support Use Samsung S3CA410X01 companion chip to reset PDA. Signed-off-by: Lukasz Dalek --- diff --git a/board/h2200/h2200.c b/board/h2200/h2200.c index 720b06e4ce..738e480a45 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 */