From: Sergey Temerkhanov <s.temerkhanov@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESUBMIT PATCH v3 1/8] armv8: Add read_mpidr() function
Date: Thu, 13 Aug 2015 19:51:21 +0300 [thread overview]
Message-ID: <1439484688-866-2-git-send-email-s.temerkhanov@gmail.com> (raw)
In-Reply-To: <1439484688-866-1-git-send-email-s.temerkhanov@gmail.com>
This patch adds the read_mpidr() function which returns the
MPIDR_EL1 register value
Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
---
Changes in v3: None
Changes in v2: None
arch/arm/include/asm/system.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
index 868ea54..323c43e 100644
--- a/arch/arm/include/asm/system.h
+++ b/arch/arm/include/asm/system.h
@@ -71,6 +71,17 @@ static inline void set_sctlr(unsigned int val)
asm volatile("isb");
}
+static inline unsigned long read_mpidr(void)
+{
+ unsigned long val;
+
+ asm volatile("mrs %0, mpidr_el1" : "=r" (val));
+
+ return val;
+}
+
+#define BSP_COREID 0
+
void __asm_flush_dcache_all(void);
void __asm_invalidate_dcache_all(void);
void __asm_flush_dcache_range(u64 start, u64 end);
--
2.2.0
next prev parent reply other threads:[~2015-08-13 16:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 16:51 [U-Boot] [RESUBMIT PATCH v3 0/8] This patch series adds support for Cavium ThunderX 88xx SoC family Sergey Temerkhanov
2015-08-13 16:51 ` Sergey Temerkhanov [this message]
2015-08-14 18:55 ` [U-Boot] [RESUBMIT PATCH v3 1/8] armv8: Add read_mpidr() function Simon Glass
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 2/8] armv8: New MMU setup code allowing to use 48+ bits PA/VA Sergey Temerkhanov
2015-08-13 17:31 ` Marek Vasut
2015-08-14 7:39 ` Sergei Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 3/8] armv8: Add SMC calls infrastructure Sergey Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 4/8] armv8: Add psci.h from the Linux kernel Sergey Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 5/8] arm: serial: Add ability to use pre-initialized UARTs Sergey Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 6/8] armv8: cavium: Add ThunderX 88xx board definition Sergey Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 7/8] armv8: cavium: Add an implementation of ATF calling functions Sergey Temerkhanov
2015-08-13 16:51 ` [U-Boot] [RESUBMIT PATCH v3 8/8] armv8: cavium: Get DRAM size from ATF Sergey Temerkhanov
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=1439484688-866-2-git-send-email-s.temerkhanov@gmail.com \
--to=s.temerkhanov@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox