From: Steve Rae <srae@broadcom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4] arm: bcmnsp: Add bcmnsp u-architecture
Date: Tue, 22 Jul 2014 15:41:51 -0700 [thread overview]
Message-ID: <1406068912-5941-4-git-send-email-srae@broadcom.com> (raw)
In-Reply-To: <1406068912-5941-1-git-send-email-srae@broadcom.com>
From: Scott Branden <sbranden@broadcom.com>
Base support for the Broadcom NSP SoC.
Based on iproc-common and the SoC specific reset function.
Signed-off-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Steve Rae <srae@broadcom.com>
---
Changes in v2: None
arch/arm/cpu/armv7/bcmnsp/Makefile | 7 +++++++
arch/arm/cpu/armv7/bcmnsp/reset.c | 19 +++++++++++++++++++
2 files changed, 26 insertions(+)
create mode 100644 arch/arm/cpu/armv7/bcmnsp/Makefile
create mode 100644 arch/arm/cpu/armv7/bcmnsp/reset.c
diff --git a/arch/arm/cpu/armv7/bcmnsp/Makefile b/arch/arm/cpu/armv7/bcmnsp/Makefile
new file mode 100644
index 0000000..04afcf9
--- /dev/null
+++ b/arch/arm/cpu/armv7/bcmnsp/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright 2014 Broadcom Corporation.
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y += reset.o
diff --git a/arch/arm/cpu/armv7/bcmnsp/reset.c b/arch/arm/cpu/armv7/bcmnsp/reset.c
new file mode 100644
index 0000000..d79d9aa
--- /dev/null
+++ b/arch/arm/cpu/armv7/bcmnsp/reset.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2014 Broadcom Corporation.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+#define CRU_RESET_OFFSET 0x1803F184
+
+void reset_cpu(ulong ignored)
+{
+ /* Reset the cpu by setting software reset request bit */
+ writel(0x1, CRU_RESET_OFFSET);
+
+ while (1)
+ ; /* loop forever till reset */
+}
--
1.8.5
next prev parent reply other threads:[~2014-07-22 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 22:41 [U-Boot] [PATCH v2 0/4] Introducing the Broadcom Cygnus and NSP boards Steve Rae
2014-07-22 22:41 ` [U-Boot] [PATCH v2 1/4] arm: iproc: Initial commit of iproc architecture code Steve Rae
2014-07-22 22:41 ` [U-Boot] [PATCH v2 2/4] arm: bcmcygnus: Add bcmcygnus u-architecture Steve Rae
2014-07-22 22:41 ` Steve Rae [this message]
2014-07-22 22:41 ` [U-Boot] [PATCH v2 4/4] arm: add Cygnus and NSP boards Steve Rae
2014-07-31 0:58 ` [U-Boot] [PATCH v2 0/4] Introducing the Broadcom " Steve Rae
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=1406068912-5941-4-git-send-email-srae@broadcom.com \
--to=srae@broadcom.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox