Skip to contentSkip to conversation

arm: rmobile: Add support r8a7790

PATCH Superseded Nobuhiro Iwamatsu 2 participants 5 messages Oct 29, 2013 – Dec 11, 2013

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 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.

---
v3: no changess.
v2: no changess.

 arch/arm/cpu/armv7/rmobile/Makefile              |    7 +-
 arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c    |   22 +
 arch/arm/cpu/armv7/rmobile/cpu_info.c            |    5 +
 arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S  |   60 +
 arch/arm/cpu/armv7/rmobile/pfc-r8a7790.c         | 3231 ++++++++++++++++++++++
 arch/arm/include/asm/arch-rmobile/gpio.h         |    3 +
 arch/arm/include/asm/arch-rmobile/r8a7790-gpio.h |  387 +++
 arch/arm/include/asm/arch-rmobile/r8a7790.h      |  598 ++++
 arch/arm/include/asm/arch-rmobile/rmobile.h      |    2 +
 9 files changed, 4314 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c
 create mode 100644 arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S
 create mode 100644 arch/arm/cpu/armv7/rmobile/pfc-r8a7790.c
 create mode 100644 arch/arm/include/asm/arch-rmobile/r8a7790-gpio.h
 create mode 100644 arch/arm/include/asm/arch-rmobile/r8a7790.h
arch/arm/cpu/armv7/rmobile/Makefile +6 -1
index 41bceb1..bee723e 100644
@@ -9,12 +9,17 @@ include $(TOPDIR)/config.mk
 
 LIB	= $(obj)lib$(SOC).o
 
-SOBJS = lowlevel_init.o
 COBJS-y += cpu_info.o
 COBJS-y += emac.o
 
+SOBJS-$(CONFIG_R8A7740) += lowlevel_init.o
+SOBJS-$(CONFIG_SH73A0) += lowlevel_init.o
+SOBJS-$(CONFIG_R8A7790) += lowlevel_init_ca15.o
+SOBJS = $(SOBJS-y)
+
 COBJS-$(CONFIG_DISPLAY_BOARDINFO) += board.o
 COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o
+COBJS-$(CONFIG_R8A7790) += cpu_info-r8a7790.o pfc-r8a7790.o
 COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
 COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o
 COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
arch/arm/cpu/armv7/rmobile/cpu_info-r8a7790.c new file +22 -0
new file mode 100644
index 0000000..7232e23
@@ -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;
+}
arch/arm/cpu/armv7/rmobile/cpu_info.c +5 -0
index 07a33fb..6bd3c2e 100644
@@ -58,6 +58,11 @@ int print_cpuinfo(void)
 		       rmobile_get_cpu_rev_fraction());
 		break;
 
+	case 0x45:
+		printf("CPU: Renesas Electronics R8A7790 rev %d\n",
+		       rmobile_get_cpu_rev_integer());
+		break;
+
 	default:
 		printf("CPU: Renesas Electronics CPU rev %d.%d\n",
 		       rmobile_get_cpu_rev_integer(),
arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S new file +60 -0

60 lines not on this page · raw message

arch/arm/cpu/armv7/rmobile/pfc-r8a7790.c new file +3231 -0

2,889 lines not on this page · raw message

arch/arm/include/asm/arch-rmobile/gpio.h +3 -0
index 6b5e4ed..877b394 100644

Lines of this file are not shown. View the raw message.

arch/arm/include/asm/arch-rmobile/r8a7790-gpio.h new file +387 -0

387 lines not on this page · raw message

arch/arm/include/asm/arch-rmobile/r8a7790.h new file +598 -0

598 lines not on this page · raw message

arch/arm/include/asm/arch-rmobile/rmobile.h +2 -0
index ac17561..ab39f67 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.4.rc3

Part of the diff is not shown here. View the raw message.

#1 lore raw

PATCH v3 2/2 arm: rmobile: Add support lager board

The lager board has R8A7790, 4GB DDR3-SDRAM, USB, Ethernet, and more.

This patch supports the following functions:
- DDR3-SDRAM
- SCIF

---
Note: This requires latest commit of u-boot/master.

v3: Remove config of QSPI and Ethernet.
v2: Remove changes for mach-types.h.
Rebase boards.cfg.

 board/renesas/lager/Makefile |   35 ++
 board/renesas/lager/lager.c  |  287 +++++++++++
 board/renesas/lager/qos.c    | 1112 ++++++++++++++++++++++++++++++++++++++++++
 board/renesas/lager/qos.h    |   12 +
 boards.cfg                   |    2 +
 include/configs/lager.h      |  142 ++++++
 6 files changed, 1590 insertions(+)
 create mode 100644 board/renesas/lager/Makefile
 create mode 100644 board/renesas/lager/lager.c
 create mode 100644 board/renesas/lager/qos.c
 create mode 100644 board/renesas/lager/qos.h
 create mode 100644 include/configs/lager.h
board/renesas/lager/Makefile new file +35 -0
new file mode 100644
index 0000000..acf2ebe
@@ -0,0 +1,35 @@
+#
+# board/renesas/lager/Makefile
+#
+# Copyright (C) 2013 Renesas Electronics Corporation
+#
+# SPDX-License-Identifier: GPL-2.0
+#
+
+include	$(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(BOARD).o
+
+COBJS	:= lager.o qos.o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
+
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
+
+clean:
+	rm -f $(SOBJS) $(OBJS)
+
+distclean:	clean
+	rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/renesas/lager/lager.c new file +287 -0

287 lines not on this page · raw message

board/renesas/lager/qos.c new file +1112 -0

1,112 lines not on this page · raw message

board/renesas/lager/qos.h new file +12 -0
new file mode 100644
index 0000000..9a6c046
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2013 Renesas Electronics Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __QOS_H__
+#define __QOS_H__
+
+void qos_init(void);
+
+#endif
boards.cfg +2 -0
index 56af102..f5c1140 100644
@@ -337,6 +337,8 @@ Active  arm         armv7          omap5       ti              dra7xx
 Active  arm         armv7          omap5       ti              omap5_uevm          omap5_uevm                           -                                                                                                                                 -
 Active  arm         armv7          rmobile     atmark-techno   armadillo-800eva    armadillo-800eva                     -                                                                                                                                 Nobuhiro Iwamatsu <[email protected]>
 Active  arm         armv7          rmobile     kmc             kzm9g               kzm9g                                -                                                                                                                                 Nobuhiro Iwamatsu <[email protected]>:Tetsuyuki Kobayashi <[email protected]>
+Active  arm         armv7          rmobile     renesas         lager               lager                                -                                                                                                                                 Nobuhiro Iwamatsu <[email protected]>
+Active  arm         armv7          rmobile     renesas         lager               lager_nor                            lager:NORFLASH                                                                                                                    Nobuhiro Iwamatsu <[email protected]>
 Active  arm         armv7          s5pc1xx     samsung         goni                s5p_goni                             -                                                                                                                                 Minkyu Kang <[email protected]>
 Active  arm         armv7          s5pc1xx     samsung         smdkc100            smdkc100                             -                                                                                                                                 Minkyu Kang <[email protected]>
 Active  arm         armv7          socfpga     altera          socfpga             socfpga_cyclone5                     -                                                                                                                                 -
include/configs/lager.h new file +142 -0

142 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#2 lore raw

PATCH v3 1/2 arm: rmobile: Add support r8a7790

In reply to Nobuhiro Iwamatsu

Hi Nobuhiro,

Quoted 10 lines · Nobuhiro Iwamatsu

Renesas R8A7790 is CPU with Cortex-A7 and A15. This supports the basic register definition and GPIO and framework of PFC.

Quoted 3 lines

---
v3: no changess.
v2: no changess.

Hmm, this and four other submissions from Nobuhiro have been set to "Change Requested" on patchwork even though there is absolutely no comment on them. Furthermore, they are also "archived", and while I could have changed their state by accident, I never ever archive on patchwork. These are

http://patchwork.ozlabs.org/patch/286762/
http://patchwork.ozlabs.org/patch/286760/
http://patchwork.ozlabs.org/patch/286763/
http://patchwork.ozlabs.org/patch/286761/

Therefore these did not show up on my todo list any more... Apologies for this. I've unarchived them and will go through them today.

Amicalement,

Signature · 1 line
Albert.
#3 lore raw

PATCH v3 1/2 arm: rmobile: Add support r8a7790

Quoted 25 lines · Albert ARIBAUD

Hi Nobuhiro,

Quoted 10 lines · Nobuhiro Iwamatsu

Renesas R8A7790 is CPU with Cortex-A7 and A15. This supports the basic register definition and GPIO and framework of PFC.

Quoted 3 lines

---
v3: no changess.
v2: no changess.

Hmm, this and four other submissions from Nobuhiro have been set to "Change Requested" on patchwork even though there is absolutely no comment on them. Furthermore, they are also "archived", and while I could have changed their state by accident, I never ever archive on patchwork. These are

Quoted 7 lines

http://patchwork.ozlabs.org/patch/286762/
http://patchwork.ozlabs.org/patch/286760/
http://patchwork.ozlabs.org/patch/286763/
http://patchwork.ozlabs.org/patch/286761/

Therefore these did not show up on my todo list any more... Apologies for this. I've unarchived them and will go through them today.

Scratch that -- I had my gitk search set on "exact" which is why I could not find the later patches which got accepted on nov 21. Re-set the above to "superseded" (as there was no change requests) and "archived".

Amicalement,

Signature · 1 line
Albert.
#4 lore raw

PATCH v3 1/2 arm: rmobile: Add support r8a7790

Hi, Albert.

Since these patches were taken into your repository from u-boot-sh/rmobile, I have updated the patchwork. This was not a correct change.

Sorry about this, and thanks for your work.

Best regards,
Nobuhiro

2013/12/10 Albert ARIBAUD <[email protected]>:

Quoted 48 lines
Quoted 25 lines · Albert ARIBAUD

Hi Nobuhiro,

Quoted 10 lines · Nobuhiro Iwamatsu

Renesas R8A7790 is CPU with Cortex-A7 and A15. This supports the basic register definition and GPIO and framework of PFC.

Quoted 3 lines

---
v3: no changess.
v2: no changess.

Hmm, this and four other submissions from Nobuhiro have been set to "Change Requested" on patchwork even though there is absolutely no comment on them. Furthermore, they are also "archived", and while I could have changed their state by accident, I never ever archive on patchwork. These are

Quoted 7 lines

http://patchwork.ozlabs.org/patch/286762/
http://patchwork.ozlabs.org/patch/286760/
http://patchwork.ozlabs.org/patch/286763/
http://patchwork.ozlabs.org/patch/286761/

Therefore these did not show up on my todo list any more... Apologies for this. I've unarchived them and will go through them today.

Scratch that -- I had my gitk search set on "exact" which is why I could not find the later patches which got accepted on nov 21. Re-set the above to "superseded" (as there was no change requests) and "archived".

Amicalement,
--
Albert.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 1 line
Nobuhiro Iwamatsu