Skip to contentSkip to conversation

arm: rmobile: Add support gose board

PATCH New Nobuhiro Iwamatsu 2 participants 3 messages Nov 4, 2014 – Nov 6, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: rmobile: Add support gose board

The gose board has R8A7793, 1GB DDR3-SDRAM, USB, Ethernet, and more. This patch supports the following functions:
- DDR3-SDRAM
- SCIF
- QSPI
- SPI

---
 arch/arm/cpu/armv7/rmobile/Kconfig |    4 +
 board/renesas/gose/Kconfig         |   12 +
 board/renesas/gose/MAINTAINERS     |    6 +
 board/renesas/gose/Makefile        |    9 +
 board/renesas/gose/gose.c          |  116 ++++
 board/renesas/gose/qos.c           | 1155 ++++++++++++++++++++++++++++++++++++
 board/renesas/gose/qos.h           |   12 +
 configs/gose_defconfig             |    3 +
 include/configs/gose.h             |  151 +++++
 9 files changed, 1468 insertions(+)
 create mode 100644 board/renesas/gose/Kconfig
 create mode 100644 board/renesas/gose/MAINTAINERS
 create mode 100644 board/renesas/gose/Makefile
 create mode 100644 board/renesas/gose/gose.c
 create mode 100644 board/renesas/gose/qos.c
 create mode 100644 board/renesas/gose/qos.h
 create mode 100644 configs/gose_defconfig
 create mode 100644 include/configs/gose.h
arch/arm/cpu/armv7/rmobile/Kconfig +4 -0
index 127f254..016dcb8 100644
@@ -6,6 +6,9 @@ choice
 config TARGET_ARMADILLO_800EVA
 	bool "armadillo 800 eva board"
 
+config TARGET_GOSE
+	bool "Gose board"
+
 config TARGET_KOELSCH
 	bool "Koelsch board"
 
@@ -32,6 +35,7 @@ config RMOBILE_EXTRAM_BOOT
 	default n
 
 source "board/atmark-techno/armadillo-800eva/Kconfig"
+source "board/renesas/gose/Kconfig"
 source "board/renesas/koelsch/Kconfig"
 source "board/renesas/lager/Kconfig"
 source "board/kmc/kzm9g/Kconfig"
board/renesas/gose/Kconfig new file +12 -0
new file mode 100644
index 0000000..930a445
@@ -0,0 +1,12 @@
+if TARGET_GOSE
+
+config SYS_BOARD
+	default "gose"
+
+config SYS_VENDOR
+	default "renesas"
+
+config SYS_CONFIG_NAME
+	default "gose"
+
+endif
board/renesas/gose/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..cad5be9
@@ -0,0 +1,6 @@
+ALT BOARD
+M:	Nobuhiro Iwamatsu <[email protected]>
+S:	Maintained
+F:	board/renesas/gose/
+F:	include/configs/gose.h
+F:	configs/gose_defconfig
board/renesas/gose/Makefile new file +9 -0
new file mode 100644
index 0000000..a4fb6cc
@@ -0,0 +1,9 @@
+#
+# board/renesas/alt/Makefile
+#
+# Copyright (C) 2014 Renesas Electronics Corporation
+#
+# SPDX-License-Identifier: GPL-2.0
+#
+
+obj-y	:= gose.o qos.o
board/renesas/gose/gose.c new file +116 -0

116 lines not on this page · raw message

board/renesas/gose/qos.c new file +1155 -0

1,155 lines not on this page · raw message

board/renesas/gose/qos.h new file +12 -0
new file mode 100644
index 0000000..ffd4047
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2014 Renesas Electronics Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __QOS_H__
+#define __QOS_H__
+
+void qos_init(void);
+
+#endif
configs/gose_defconfig new file +3 -0
new file mode 100644
index 0000000..e764583
@@ -0,0 +1,3 @@
+CONFIG_ARM=y
++S:CONFIG_RMOBILE=y
+CONFIG_TARGET_GOSE=y
include/configs/gose.h new file +151 -0

151 lines not on this page · raw message

Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/1 arm: rmobile: Add support gose board

Hi Nobuhiro,

configs/gose_defconfig line 3

Quoted 9 lines · On Tue, 4 Nov 2014 16:33:02 +0900 Nobuhiro Iwamatsu…
configs/gose_defconfig new file +3 -0
new file mode 100644
index 0000000..e764583
@@ -0,0 +1,3 @@
+CONFIG_ARM=y
++S:CONFIG_RMOBILE=y
+CONFIG_TARGET_GOSE=y

"+S" is unnecessary unless this board turns on SPL.

I guess you referenced other Rmobile defconfigs.
Sorry, my conversion mistake.
(I do not remember why this happened.)

"+S:CONFIG_RMOBILE=y" should be "CONFIG_RMOBILE=y"
also for {kzm9g, lager, koelsch, armadillo-800eva, alt}_defconfig.

I have not found time to fix them.

Quoted 9 lines
include/configs/gose.h new file +3 -0
new file mode 100644
index 0000000..0af2778
@@ -0,0 +1,151 @@
+/*
+ * include/configs/gose.h
+ *

include/configs/gose.h line 13

Quoted 10 lines
include/configs/gose.h new file +10 -0
+ * Copyright (C) 2014 Renesas Electronics Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __GOSE_H
+#define __GOSE_H
+
+#undef DEBUG
+#define CONFIG_ARMV7

If you have a chance to send v2,
I recommend to drop the CONFIG_ARMV7 define.

I am removing this macro.
http://patchwork.ozlabs.org/patch/407305/

Best Regards
Masahiro Yamada

#2 lore raw

PATCH 1/1 arm: rmobile: Add support gose board

Hi,

Thanks for youre review.

2014-11-06 15:10 GMT+09:00 Masahiro Yamada <[email protected]>:

Quoted 19 lines

Hi Nobuhiro,

configs/gose_defconfig line 3

Quoted 9 lines · On Tue, 4 Nov 2014 16:33:02 +0900 Nobuhiro Iwamatsu…
configs/gose_defconfig new file +3 -0
new file mode 100644
index 0000000..e764583
@@ -0,0 +1,3 @@
+CONFIG_ARM=y
++S:CONFIG_RMOBILE=y
+CONFIG_TARGET_GOSE=y

"+S" is unnecessary unless this board turns on SPL.

Quoted 10 lines

I guess you referenced other Rmobile defconfigs.
Sorry, my conversion mistake.
(I do not remember why this happened.)

"+S:CONFIG_RMOBILE=y" should be "CONFIG_RMOBILE=y"
also for {kzm9g, lager, koelsch, armadillo-800eva, alt}_defconfig.

I have not found time to fix them.

I see. I will fix.

Quoted 26 lines
Quoted 11 lines
include/configs/gose.h new file +3 -0
new file mode 100644
index 0000000..0af2778
@@ -0,0 +1,151 @@
+/*
+ * include/configs/gose.h
+ *

include/configs/gose.h line 13

Quoted 10 lines
include/configs/gose.h new file +10 -0
+ * Copyright (C) 2014 Renesas Electronics Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __GOSE_H
+#define __GOSE_H
+
+#undef DEBUG
+#define CONFIG_ARMV7

If you have a chance to send v2,
I recommend to drop the CONFIG_ARMV7 define.

Quoted 2 lines

I am removing this macro.
http://patchwork.ozlabs.org/patch/407305/

Yes, I know. I already fix this in my local repo.

Quoted 5 lines

Best Regards
Masahiro Yamada

Best regards,
Nobuhiro

Signature · 1 line
Nobuhiro Iwamatsu