From: Lukasz Dalek <luk0104@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] h2200: Add board reset support
Date: Sat, 12 Jan 2013 22:39:26 +0100 [thread overview]
Message-ID: <1358026767-28130-2-git-send-email-luk0104@gmail.com> (raw)
In-Reply-To: <1358026767-28130-1-git-send-email-luk0104@gmail.com>
Use Samsung S3CA410X01 companion chip to reset PDA.
Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
---
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
next prev parent reply other threads:[~2013-01-12 21:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-12 21:39 [U-Boot] [PATCH 1/3] pxa: Add support for board specific reset function Lukasz Dalek
2013-01-12 21:39 ` Lukasz Dalek [this message]
2013-01-12 23:54 ` [U-Boot] [PATCH 2/3] h2200: Add board reset support Marek Vasut
2013-01-13 1:00 ` Łukasz Dałek
2013-01-13 1:05 ` Marek Vasut
2013-01-13 1:32 ` [U-Boot] [PATCH v2] " Lukasz Dalek
2013-01-13 1:32 ` [U-Boot] [PATCH] pxa: Add weak attribute to reset_cpu() function Lukasz Dalek
2013-01-12 21:39 ` [U-Boot] [PATCH 3/3] pxa: Save lr register in relocate_code function Lukasz Dalek
2013-01-12 23:53 ` Marek Vasut
2013-01-14 23:23 ` [U-Boot] [U-Boot, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358026767-28130-2-git-send-email-luk0104@gmail.com \
--to=luk0104@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.