Skip to contentSkip to conversation

Add support for Congatec Conga-QEVAl board

PATCH Superseded SARTRE Leo 3 participants 3 messages May 16, 2013 – Jun 3, 2013

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

SARTRE Leo

author
#0 lore raw

PATCH v6 1/1 Add support for Congatec Conga-QEVAl board

Add minimal support (only boot from mmc device) for the Congatec Conga-QEVAl Evaluation Carrier Board with conga-Qmx6q (i.MX6 Quad processor) module.

---

Changes in v6:
cgtqmx6eval.c: remove unnecessary PAD_CTL_PKE | PAD_CTL_PUE mask and unnecessary #ifdef

 MAINTAINERS                              |    4 +
 board/congatec/cgtqmx6eval/Makefile      |   42 +++++++
 board/congatec/cgtqmx6eval/README        |   29 +++++
 board/congatec/cgtqmx6eval/cgtqmx6eval.c |  175 +++++++++++++++++++++++++++
 boards.cfg                               |    1 +
 include/configs/cgtqmx6eval.h            |  192 ++++++++++++++++++++++++++++++
 6 files changed, 443 insertions(+)
 create mode 100644 board/congatec/cgtqmx6eval/Makefile
 create mode 100644 board/congatec/cgtqmx6eval/README
 create mode 100644 board/congatec/cgtqmx6eval/cgtqmx6eval.c
 create mode 100644 include/configs/cgtqmx6eval.h
MAINTAINERS +4 -0
index 643a5ac..715f83d 100644
@@ -889,6 +889,10 @@ Steve Sakoman <[email protected]>
 
 	omap3_overo	ARM ARMV7 (OMAP3xx SoC)
 
+Leo Sartre <[email protected]>
+
+	cgtqmx6qeval		i.MX6Q
+
 Jens Scharsig <[email protected]>
 
 	eb_cpux9k2	ARM920T (AT91RM9200 SoC)
board/congatec/cgtqmx6eval/Makefile new file +42 -0

42 lines not on this page · raw message

board/congatec/cgtqmx6eval/README new file +29 -0
new file mode 100644
index 0000000..bbf0f75
@@ -0,0 +1,29 @@
+U-Boot for the Congatec Conga-QEVAl Evaluation Carrier board with
+qmx6 quad module.
+
+This file contains information for the port of U-Boot to the Congatec
+Conga-QEVAl Evaluation Carrier board with qmx6 quad module.
+
+1. Boot source, boot from SD card
+---------------------------------
+
+This version of u-boot works only on the SD card. By default, the
+Congatec board can boot only from the SPI-NOR.
+But, with the u-boot version provided with the board you can write boot
+registers to force the board to reboot and boot from the SD slot. If
+"bmode" command is not available from your pre-installed u-boot, these
+instruction will produce the same effect:
+
+conga-QMX6 U-Boot > mw.l 0x20d8040 0x3850
+conga-QMX6 U-Boot > mw.l 0x020d8044 0x10000000
+conga-QMX6 U-Boot > reset
+resetting ...
+
+The the board will reboot and, if you have written your SD correctly
+the board will use u-boot that live into the SD
+
+To copy the resulting u-boot.imx to the SD card:
+
+ dd if=u-boot.imx of=/dev/xxx bs=512 seek=2
+
+Note: Replace xxx with the device representing the SD card in your system.
board/congatec/cgtqmx6eval/cgtqmx6eval.c new file +175 -0

175 lines not on this page · raw message

boards.cfg +1 -0
index 5d78064..164d7ce 100644
@@ -259,6 +259,7 @@ mx6qarm2                     arm         armv7       mx6qarm2            freesca
 mx6qsabreauto                arm         armv7       mx6qsabreauto       freescale      mx6		mx6qsabreauto:IMX_CONFIG=board/freescale/mx6qsabreauto/imximage.cfg
 mx6qsabrelite                arm         armv7       mx6qsabrelite       freescale      mx6		mx6qsabrelite:IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg
 mx6qsabresd                  arm         armv7       mx6qsabresd         freescale      mx6		mx6qsabresd:IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg
+cgtqmx6qeval				 arm		 armv7		 cgtqmx6eval		 congatec		mx6		cgtqmx6eval:IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg,MX6Q
 eco5pk                       arm         armv7       eco5pk              8dtech         omap3
 nitrogen6dl                  arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6dl.cfg,MX6DL,DDR_MB=1024
 nitrogen6dl2g                arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6dl2g.cfg,MX6DL,DDR_MB=2048
include/configs/cgtqmx6eval.h new file +192 -0

192 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v6 1/1 Add support for Congatec Conga-QEVAl board

Quoted 5 lines · SARTRE Leo

Add minimal support (only boot from mmc device) for the Congatec Conga-QEVAl Evaluation Carrier Board with conga-Qmx6q (i.MX6 Quad processor) module.

--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#2 lore raw

PATCH v6 1/1 Add support for Congatec Conga-QEVAl board

In reply to SARTRE Leo

Hi Leo,

board/congatec/cgtqmx6eval/cgtqmx6eval.c line 145

Quoted 9 lines · SARTRE Leo
board/congatec/cgtqmx6eval/cgtqmx6eval.c new file +9 -0
+int board_init(void)
+{
+	u32 reg;
+	/*Same init as the sabrelite*/
+	writel(0x41736166, SNVS_BASE_ADDR + 0x64);/*set LPPGDR*/
+	udelay(10);
+	reg = readl(SNVS_BASE_ADDR + 0x4c);
+	reg |= (1 << 3);
+	writel(reg, SNVS_BASE_ADDR + 0x4c);/*clear LPSR*/

Sorry that it was not checked before. Can you substitute fix constants with useful defines ? Comment seems also deviant : it seems we can find the same initialization in mx6qsabrelite.c, it is not. Please also remove fix offsets when you access to the internal registres, and use C structures instead. This is a must in u-boot, access with BASE + OFFSET are not allowed.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
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
=====================================================================