Skip to contentSkip to conversation

sh: Add support Renesas Solutions AP-325RXA board

PATCH In review Yusuke.Goda 2 participants 2 messages Jun 5, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sh: Add support Renesas Solutions AP-325RXA board

I added math-type to v1.
This board is SH7723 base board.
This has SCIF, LCDC, USB Host controler, NOR/NAND Flash, Sound, Ether and other. This patch supports SCIF, NOR Flash.

---
 arch/sh/Kconfig                          |    7 +
 arch/sh/Makefile                         |    1 +
 arch/sh/boards/renesas/ap325rxa/Makefile |    1 +
 arch/sh/boards/renesas/ap325rxa/setup.c  |  111 ++++
 arch/sh/configs/ap325rxa_defconfig       |  947 ++++++++++++++++++++++++++++++
 arch/sh/tools/mach-types                 |    1 +
 6 files changed, 1068 insertions(+), 0 deletions(-)
 create mode 100644 arch/sh/boards/renesas/ap325rxa/Makefile
 create mode 100644 arch/sh/boards/renesas/ap325rxa/setup.c
 create mode 100644 arch/sh/configs/ap325rxa_defconfig
arch/sh/Kconfig +7 -0
index be620da..abb575c 100644
@@ -501,6 +501,13 @@ config SH_MIGOR
 	  Select Migo-R if configuring for the SH7722 Migo-R platform
           by Renesas System Solutions Asia Pte. Ltd.
 
+config SH_AP325RXA
+	bool "AP-325RXA"
+	select CPU_SUBTYPE_SH7723
+	help
+	  Renesas "AP-325RXA" support.
+	  Compatible with ALGO SYSTEM CO.,LTD. "AP-320A"
+
 config SH_EDOSK7705
 	bool "EDOSK7705"
 	depends on CPU_SUBTYPE_SH7705
arch/sh/Makefile +1 -0
index c97a779..73182d5 100644
@@ -122,6 +122,7 @@ machdir-$(CONFIG_SH_MIGOR)			+= renesas/migor
 machdir-$(CONFIG_SH_SDK7780)			+= renesas/sdk7780
 machdir-$(CONFIG_SH_X3PROTO)			+= renesas/x3proto
 machdir-$(CONFIG_SH_RSK7203)			+= renesas/rsk7203
+machdir-$(CONFIG_SH_AP325RXA)			+= renesas/ap325rxa
 machdir-$(CONFIG_SH_SH4202_MICRODEV)		+= superh/microdev
 machdir-$(CONFIG_SH_LANDISK)			+= landisk
 machdir-$(CONFIG_SH_TITAN)			+= titan
arch/sh/boards/renesas/ap325rxa/Makefile new file +1 -0
new file mode 100644
index 0000000..f663768
@@ -0,0 +1 @@
+obj-y	:= setup.o
arch/sh/boards/renesas/ap325rxa/setup.c new file +111 -0

111 lines not on this page · raw message

arch/sh/configs/ap325rxa_defconfig new file +947 -0

947 lines not on this page · raw message

arch/sh/tools/mach-types +1 -0
index 1ae9fef..3a53f04 100644
@@ -47,3 +47,4 @@ CAYMAN			SH_CAYMAN
 SDK7780			SH_SDK7780
 MIGOR			SH_MIGOR
 RSK7203			SH_RSK7203
+AP325RXA		SH_AP325RXA
Signature · 1 line
1.5.4.5
#1 lore raw
Quoted 6 lines · Yusuke.Goda

I added math-type to v1.
This board is SH7723 base board.
This has SCIF, LCDC, USB Host controler, NOR/NAND Flash, Sound, Ether and other. This patch supports SCIF, NOR Flash.

Looks good.

[snip]

Quoted 9 lines
arch/sh/boards/renesas/ap325rxa/setup.c new file +9 -0
+static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
+	{
+		 .name = "uboot",
+		 .offset = 0,
+		 .size = (1 * 1024 * 1024),
+		 .mask_flags = MTD_WRITEABLE,	/* Read-only */
+	 },
+	{
+		 .name = "kernel",

arch/sh/boards/renesas/ap325rxa/setup.c line 58

Quoted 10 lines
arch/sh/boards/renesas/ap325rxa/setup.c new file +10 -0
+		 .offset = MTDPART_OFS_APPEND,
+		 .size = (2 * 1024 * 1024),
+	 },
+	{
+		 .name = "other",
+		 .offset = MTDPART_OFS_APPEND,
+		 .size = MTDPART_SIZ_FULL,
+	 },
+};
+

There's some whitespace damage here. Make sure your text editor has these as tabs, not spaces.

I'll tidy it up and add it to the 2.6.27 queue, thanks.