Skip to contentSkip to conversation

mx6: Add initial SPL support for HummingBoard-i2eX

PATCH New Fabio Estevam 3 participants 3 messages Apr 20, 2015 – Apr 22, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mx6: Add initial SPL support for HummingBoard-i2eX

From: Fabio Estevam <[email protected]>

Add the initial SPL support for HummingBoard-i2eX, which is based on a MX6 Dual.

For more information about HummingBoard, please check:
http://www.solid-run.com/products/hummingboard/

Based on the work from Jon Nettleton and Rabeeh Khoury.

---
Currently only HummingBoard-i2eX is supported.

After this initial patch is accepted, then we can add the other Hummingboard and Cubox-i variants as well.

Changes since v2:
- Avoid undef CONFIG_CMD_IMLS as suggested by Tom
- Change the name from mx6cuboxi_spl_defconfig to mx6cuboxi_defconfig as spl will be the only supported method for these boards

Changes since v1:
- Addressed several comments made by Tom Rini
- Remove empty lines from README as pointed out by Nikolay Dimitrov
- Fixed sparse warnings
- Fixed DDR settings

 arch/arm/Kconfig                     |   6 +
 board/solidrun/mx6cuboxi/Kconfig     |  15 ++
 board/solidrun/mx6cuboxi/MAINTAINERS |   6 +
 board/solidrun/mx6cuboxi/Makefile    |   9 +
 board/solidrun/mx6cuboxi/README      |  21 +++
 board/solidrun/mx6cuboxi/mx6cuboxi.c | 330 +++++++++++++++++++++++++++++++++++
 configs/mx6cuboxi_defconfig          |   6 +
 include/configs/mx6cuboxi.h          | 205 ++++++++++++++++++++++
 8 files changed, 598 insertions(+)
 create mode 100644 board/solidrun/mx6cuboxi/Kconfig
 create mode 100644 board/solidrun/mx6cuboxi/MAINTAINERS
 create mode 100644 board/solidrun/mx6cuboxi/Makefile
 create mode 100644 board/solidrun/mx6cuboxi/README
 create mode 100644 board/solidrun/mx6cuboxi/mx6cuboxi.c
 create mode 100644 configs/mx6cuboxi_defconfig
 create mode 100644 include/configs/mx6cuboxi.h
arch/arm/Kconfig +6 -0
index 7ed0e20..7c383cb 100644
@@ -523,6 +523,11 @@ config TARGET_MX6SABRESD
 	select CPU_V7
 	select SUPPORT_SPL
 
+config TARGET_MX6CUBOXI
+	bool "Support Solid-run mx6 boards"
+	select CPU_V7
+	select SUPPORT_SPL
+
 config TARGET_MX6SLEVK
 	bool "Support mx6slevk"
 	select CPU_V7
@@ -856,6 +861,7 @@ source "board/siemens/draco/Kconfig"
 source "board/siemens/pxm2/Kconfig"
 source "board/siemens/rut/Kconfig"
 source "board/silica/pengwyn/Kconfig"
+source "board/solidrun/mx6cuboxi/Kconfig"
 source "board/solidrun/hummingboard/Kconfig"
 source "board/spear/spear300/Kconfig"
 source "board/spear/spear310/Kconfig"
board/solidrun/mx6cuboxi/Kconfig new file +15 -0
new file mode 100644
index 0000000..31d88b2
@@ -0,0 +1,15 @@
+if TARGET_MX6CUBOXI
+
+config SYS_BOARD
+	default "mx6cuboxi"
+
+config SYS_VENDOR
+	default "solidrun"
+
+config SYS_SOC
+	default "mx6"
+
+config SYS_CONFIG_NAME
+	default "mx6cuboxi"
+
+endif
board/solidrun/mx6cuboxi/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..3d468ed
@@ -0,0 +1,6 @@
+MX6CUBOXI BOARD
+M:	Fabio Estevam <[email protected]>
+S:	Maintained
+F:	board/solidrun/mx6cuboxi/
+F:	include/configs/mx6cuboxi.h
+F:	configs/mx6cuboxi_spl_defconfig
board/solidrun/mx6cuboxi/Makefile new file +9 -0
new file mode 100644
index 0000000..df425ac
@@ -0,0 +1,9 @@
+#
+# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
+#
+# (C) Copyright 2011 Freescale Semiconductor, Inc.
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y  := mx6cuboxi.o
board/solidrun/mx6cuboxi/README new file +21 -0
new file mode 100644
index 0000000..3050c48
@@ -0,0 +1,21 @@
+How to use U-boot on Solid-run mx6 hummingboard
+-----------------------------------------------
+
+- Build U-boot for hummingboard:
+
+$ make mrproper
+$ make mx6cuboxi_defconfig
+$ make
+
+This will generate the SPL image called SPL and the u-boot.img.
+
+- Flash the SPL image into the SD card:
+
+sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
+
+- Flash the u-boot.img image into the SD card:
+
+sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
+
+- Insert the SD card in the hummingboard, power it up and U-boot messages
+should come up.
board/solidrun/mx6cuboxi/mx6cuboxi.c new file +330 -0

330 lines not on this page · raw message

configs/mx6cuboxi_defconfig new file +6 -0
new file mode 100644
index 0000000..85dc58a
@@ -0,0 +1,6 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6Q"
+CONFIG_ARM=y
+CONFIG_TARGET_MX6CUBOXI=y
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
include/configs/mx6cuboxi.h new file +205 -0

205 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/1 mx6: Add initial SPL support for HummingBoard-i2eX

Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Add the initial SPL support for HummingBoard-i2eX, which is based on a MX6 Dual.

For more information about HummingBoard, please check:
http://www.solid-run.com/products/hummingboard/

Based on the work from Jon Nettleton and Rabeeh Khoury.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150420/d0caed1f/attachment.sig>
#2 lore raw

PATCH v3 1/1 mx6: Add initial SPL support for HummingBoard-i2eX

In reply to Fabio Estevam
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Add the initial SPL support for HummingBoard-i2eX, which is based on a MX6 Dual.

Quoted 7 lines

For more information about HummingBoard, please check:
http://www.solid-run.com/products/hummingboard/

Based on the work from Jon Nettleton and Rabeeh Khoury.

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================