All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Rae <srae@broadcom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/5] arm: bcmnsp: Add bcmnsp u-architecture
Date: Mon, 11 Aug 2014 13:58:24 -0700	[thread overview]
Message-ID: <1407790706-31842-4-git-send-email-srae@broadcom.com> (raw)
In-Reply-To: <1407790706-31842-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 v3: None
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

  parent reply	other threads:[~2014-08-11 20:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11 20:58 [U-Boot] [PATCH v3 0/5] Introducing the Broadcom Cygnus and NSP boards Steve Rae
2014-08-11 20:58 ` [U-Boot] [PATCH v3 1/5] arm: iproc: Initial commit of iproc architecture code Steve Rae
2014-08-30 15:14   ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-08-11 20:58 ` [U-Boot] [PATCH v3 2/5] arm: bcmcygnus: Add bcmcygnus u-architecture Steve Rae
2014-08-30 15:14   ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-08-11 20:58 ` Steve Rae [this message]
2014-08-30 15:15   ` [U-Boot] [U-Boot, v3, 3/5] arm: bcmnsp: Add bcmnsp u-architecture Tom Rini
2014-08-11 20:58 ` [U-Boot] [PATCH v3 4/5] arm: add Cygnus and NSP boards Steve Rae
2014-08-30 15:15   ` [U-Boot] [U-Boot,v3,4/5] " Tom Rini
2014-08-11 20:58 ` [U-Boot] [PATCH v3 5/5] arm: convert Cygnus and NSP boards to Kconfig Steve Rae
2014-08-30 15:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-08-28 18:05 ` [U-Boot] [PATCH v3 0/5] Introducing the Broadcom Cygnus and NSP boards 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=1407790706-31842-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 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.