summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2013-11-21 17:06:45 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2013-12-03 09:45:20 +0900
commit1d0e92782fd78b668977e45974c11d3eb517027c (patch)
tree0a5fc93b2634481c7370717f1d6430ffa8ac8abf /arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
parent941b5a40a5012b1e3541f60ef94cc5a5b7f60721 (diff)
downloadu-boot-imx-1d0e92782fd78b668977e45974c11d3eb517027c.zip
u-boot-imx-1d0e92782fd78b668977e45974c11d3eb517027c.tar.gz
u-boot-imx-1d0e92782fd78b668977e45974c11d3eb517027c.tar.bz2
arm: rmobile: Add support R8A7790
Renesas R8A7790 is CPU with Cortex-A7 and A15. This supports the basic register definition and GPIO and framework of PFC. Signed-off-by: Kouei Abe <kouei.abe.cp@renesas.com> Signed-off-by: Ryo Kataoka <ryo.kataoka.wt@renesas.com> Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> CC: Albert Aribaud <albert.u.boot@aribaud.net>
Diffstat (limited to 'arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c')
-rw-r--r--arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c b/arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
new file mode 100644
index 0000000..7232e23
--- /dev/null
+++ b/arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
@@ -0,0 +1,22 @@
+/*
+ * arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
+ * This file is r8a7790 processor support.
+ *
+ * Copyright (C) 2013 Renesas Electronics Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+#include <common.h>
+#include <asm/io.h>
+
+#define PRR 0xFF000044
+
+u32 rmobile_get_cpu_type(void)
+{
+ return (readl(PRR) & 0x00007F00) >> 8;
+}
+
+u32 rmobile_get_cpu_rev_integer(void)
+{
+ return (readl(PRR) & 0x000000F0) >> 4;
+}