From: Lukasz Dalek Date: Sat, 12 Jan 2013 22:39:26 +0100 Subject: [U-Boot] [PATCH 2/3] h2200: Add board reset support In-Reply-To: <1358026767-28130-1-git-send-email-luk0104@gmail.com> References: <1358026767-28130-1-git-send-email-luk0104@gmail.com> Message-ID: <1358026767-28130-2-git-send-email-luk0104@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Use Samsung S3CA410X01 companion chip to reset PDA. Signed-off-by: Lukasz Dalek --- board/h2200/h2200.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/board/h2200/h2200.c b/board/h2200/h2200.c index 720b06e..a716a3f 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 board_reset(void) +{ + /* Enable VLIO interface on Hamcop */ + writeb(0x1, 0x4000); + + /* Reset board (cold reset) */ + writeb(0xff, 0x4002); +} + int board_init(void) { /* We have RAM, disable cache */ -- 1.7.8.6