Skip to contentSkip to conversation

Add support for ReachTech G2C1 board

RFC PATCH New Graeme Russ 1 participant 1 message Jan 26, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 1/1 Add support for ReachTech G2C1 board

This patch adds U-Boot support for the Reachtech G2C1 board. G2C1 U-Boot images created with this patch will perform the following:
- Initialise the MX28 for 'No Battery' mode
- Configure all IOMUXs
- Configure GPIO directions for all IOMUXs designed for GPIO use
- Inilialise the MMC sub-system
- Initialise the Ethernet sub-system

NOTE: The 'arm: mxs: Enable booting of mx28 without battery' patch MUST be applied prior to building G2C1 images using this patch

Refer to the README file for detailed documentation

Cc Albert Aribaud <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Marek Vasut <[email protected]>
Cc u-boot at lists.denx.de
Cc Brent Larson <[email protected]>
Cc Jonathan More <[email protected]>
Cc Jeff Horn <[email protected]>
Cc Wolfgang Denk <[email protected]>

---
Changes in v2
- Moved IOMUX documenations into README file
- Expanded README file to cover considerably more information
- Setup all GPIO pins in g2c1.c
- Created two configurations - g2c1_mmc_defconfig for building for MMC image and g2c1_nand_defconfig for building NAND image
- Fixed up Ethernet initialisation

 arch/arm/Kconfig                 |  13 ++
 board/reachtech/g2c1/Kconfig     |  15 ++
 board/reachtech/g2c1/MAINTAINERS |   7 +
 board/reachtech/g2c1/Makefile    |  12 ++
 board/reachtech/g2c1/README      | 438 +++++++++++++++++++++++++++++++++++++++
 board/reachtech/g2c1/g2c1.c      | 142 +++++++++++++
 board/reachtech/g2c1/spl_boot.c  | 236 +++++++++++++++++++++
 configs/g2c1_mmc_defconfig       |   4 +
 configs/g2c1_nand_defconfig      |   4 +
 include/configs/g2c1.h           | 307 +++++++++++++++++++++++++++
 10 files changed, 1178 insertions(+)
 create mode 100644 board/reachtech/g2c1/Kconfig
 create mode 100644 board/reachtech/g2c1/MAINTAINERS
 create mode 100644 board/reachtech/g2c1/Makefile
 create mode 100644 board/reachtech/g2c1/README
 create mode 100644 board/reachtech/g2c1/g2c1.c
 create mode 100644 board/reachtech/g2c1/spl_boot.c
 create mode 100644 configs/g2c1_mmc_defconfig
 create mode 100644 configs/g2c1_nand_defconfig
 create mode 100644 include/configs/g2c1.h
arch/arm/Kconfig +13 -0
index 5eb1d03..320041e 100644
@@ -278,6 +278,18 @@ config TARGET_XFI3
 	select CPU_ARM926EJS
 	select SUPPORT_SPL
 
+config TARGET_G2C1
+	bool "Support ReachTech G2C1"
+	select CPU_ARM926EJS
+	select SUPPORT_SPL
+	help
+	  This is the Reachtech G2C1 development board. It contains a
+	  Freescale MX28 SoC, 128MB DDR2 SDRAM, 128MB SLC NAND, 1x Ethernet
+	  port, 2x USB Host ports, 1x USB OTG port, 1x RS-232 Debug port,
+	  1x RS-232 User port, 2x RS485 ports, Onboard audio, LCD Touch
+	  screen interface, SD Card slot, I2C and SPI (with 2x slave select
+	  lines) interfaces, CAN interface, and 8 GPIO (I2C slave interface)
+
 config TARGET_M28EVK
 	bool "Support m28evk"
 	select CPU_ARM926EJS
@@ -940,6 +952,7 @@ source "board/phytec/pcm051/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
 source "board/pxa255_idp/Kconfig"
 source "board/raspberrypi/rpi/Kconfig"
+source "board/reachtech/g2c1/Kconfig"
 source "board/ronetix/pm9261/Kconfig"
 source "board/ronetix/pm9263/Kconfig"
 source "board/ronetix/pm9g45/Kconfig"
board/reachtech/g2c1/Kconfig new file +15 -0
new file mode 100644
index 0000000..5ef821f
@@ -0,0 +1,15 @@
+if TARGET_G2C1
+
+config SYS_BOARD
+	default "g2c1"
+
+config SYS_VENDOR
+	default "reachtech"
+
+config SYS_SOC
+	default "mxs"
+
+config SYS_CONFIG_NAME
+	default "g2c1"
+
+endif
board/reachtech/g2c1/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000..257888b
@@ -0,0 +1,7 @@
+G2C1 BOARD
+M:	Graeme Russ <[email protected]>
+S:	Maintained
+F:	board/reachtech/g2c1/
+F:	include/configs/mx28evk.h
+F:	configs/g2c1_mmcconfig
+F:	configs/g2c1_nandconfig
board/reachtech/g2c1/Makefile new file +12 -0
new file mode 100644
index 0000000..9bb55e8
@@ -0,0 +1,12 @@
+#
+# (C) Copyright 2000-2006
+# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifndef	CONFIG_SPL_BUILD
+obj-y	:= g2c1.o
+else
+obj-y	:= spl_boot.o
+endif
board/reachtech/g2c1/README new file +438 -0

438 lines not on this page · raw message

board/reachtech/g2c1/g2c1.c new file +142 -0

142 lines not on this page · raw message

board/reachtech/g2c1/spl_boot.c new file +236 -0

236 lines not on this page · raw message

configs/g2c1_mmc_defconfig new file +4 -0
new file mode 100644
index 0000000..9ec2379
@@ -0,0 +1,4 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="ENV_IS_IN_MMC"
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_G2C1=y
configs/g2c1_nand_defconfig new file +4 -0
new file mode 100644
index 0000000..443eeeb
@@ -0,0 +1,4 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="ENV_IS_IN_NAND"
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_G2C1=y
include/configs/g2c1.h new file +307 -0

307 lines not on this page · raw message

Signature · 1 line
1.9.3