Skip to contentSkip to conversation

mx6: Add initial support for Carrier1 mx6solo board

PATCH New Fabio Estevam 2 participants 4 messages Nov 2, 2013 – Nov 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx6: Add initial support for Carrier1 mx6solo board

From: Fabio Estevam <[email protected]>

Solid Run designed the Carrier1 board based on mx6q/dl/solo.

Add the initial support for the mx6 solo variant.

More information about this hardware can be found at:
http://cubox-i.com/

---
 board/solidrun/carrier1/800mhz_2x256mx16.cfg       |  74 +++++++
 board/solidrun/carrier1/Makefile                   |  26 +++
 board/solidrun/carrier1/README                     |  35 ++++
 board/solidrun/carrier1/carrier1.c                 | 197 ++++++++++++++++++
 board/solidrun/carrier1/clocks.cfg                 |  33 +++
 board/solidrun/carrier1/ddr-800mhz-32bit-setup.cfg |  67 ++++++
 board/solidrun/carrier1/mx6_c1solo.cfg             |  25 +++
 boards.cfg                                         |   3 +
 include/configs/carrier1.h                         | 227 +++++++++++++++++++++
 9 files changed, 687 insertions(+)
 create mode 100644 board/solidrun/carrier1/800mhz_2x256mx16.cfg
 create mode 100644 board/solidrun/carrier1/Makefile
 create mode 100644 board/solidrun/carrier1/README
 create mode 100644 board/solidrun/carrier1/carrier1.c
 create mode 100644 board/solidrun/carrier1/clocks.cfg
 create mode 100644 board/solidrun/carrier1/ddr-800mhz-32bit-setup.cfg
 create mode 100644 board/solidrun/carrier1/mx6_c1solo.cfg
 create mode 100644 include/configs/carrier1.h
board/solidrun/carrier1/800mhz_2x256mx16.cfg new file +74 -0
new file mode 100644
index 0000000..c0398f0
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2013 Boundary Devices
+ * Copyright (C) 2013 SolidRun ltd.
+ * Copyright (C) 2013 Jon Nettleton <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/* ZQ Calibrations */
+DATA 4, MX6_MMDC_P0_MPZQHWCTRL, 0xa1390003
+DATA 4, MX6_MMDC_P1_MPZQHWCTRL, 0xa1390003
+/* write leveling */
+DATA 4, MX6_MMDC_P0_MPWLDECTRL0, 0x000F0011
+DATA 4, MX6_MMDC_P0_MPWLDECTRL1, 0x000E000F
+/*
+ * DQS gating, read delay, write delay calibration values
+ * based on calibration compare of 0x00ffff00
+ */
+DATA 4, MX6_MMDC_P0_MPDGCTRL0, 0x42240229
+DATA 4, MX6_MMDC_P0_MPDGCTRL1, 0x021a0219
+DATA 4, MX6_MMDC_P0_MPRDDLCTL, 0x4e4f5150
+DATA 4, MX6_MMDC_P0_MPWRDLCTL, 0x35363136
+/* read data bit delay */
+DATA 4, MX6_MMDC_P0_MPRDDQBY0DL, 0x33333333
+DATA 4, MX6_MMDC_P0_MPRDDQBY1DL, 0x33333333
+DATA 4, MX6_MMDC_P0_MPRDDQBY2DL, 0x33333333
+DATA 4, MX6_MMDC_P0_MPRDDQBY3DL, 0x33333333
+/* Complete calibration by forced measurement */
+DATA 4, MX6_MMDC_P0_MPMUR0, 0x00000800
+DATA 4, MX6_MMDC_P1_MPMUR0, 0x00000800
+
+/*
+ * MMDC init:
+ * in DDR3, 32-bit mode, only MMDC0 is initiated:
+ */
+DATA 4, MX6_MMDC_P0_MDPDC, 0x0002002d
+DATA 4, MX6_MMDC_P0_MDOTC, 0x00333030
+
+DATA 4, MX6_MMDC_P0_MDCFG0, 0x40445323
+DATA 4, MX6_MMDC_P0_MDCFG1, 0xb68e8c63
+
+DATA 4, MX6_MMDC_P0_MDCFG2, 0x01ff00db
+DATA 4, MX6_MMDC_P0_MDMISC, 0x00001740
+DATA 4, MX6_MMDC_P0_MDSCR, 0x00008000
+DATA 4, MX6_MMDC_P0_MDRWD, 0x000026d2
+DATA 4, MX6_MMDC_P0_MDOR, 0x00440e21
+/* CS0_END - 0x2fffffff, 512M  */
+DATA 4, MX6_MMDC_P0_MDASP, 0x00000017
+
+/* MMDC0_MAARCR ADOPT optimized priorities. Dyn jump disabled */
+DATA 4, 0x021b0400, 0x11420000
+
+/* MMDC0_MDCTL- row-14bits; col-10bits; burst length 8;32-bit data bus */
+DATA 4, MX6_MMDC_P0_MDCTL, 0x83190000
+
+/*
+ * Initialize 2GB DDR3 - Micron MT41J128M
+ * MR2
+ */
+DATA 4, MX6_MMDC_P0_MDSCR, 0x04008032
+/* MR3 */
+DATA 4, MX6_MMDC_P0_MDSCR, 0x00008033
+/* MR1 */
+DATA 4, MX6_MMDC_P0_MDSCR, 0x00428031
+/* MR0 */
+DATA 4, MX6_MMDC_P0_MDSCR, 0x07208030
+/* ZQ calibration */
+DATA 4, MX6_MMDC_P0_MDSCR, 0x04008040
+/* final DDR setup */
+DATA 4, MX6_MMDC_P0_MDREF, 0x00005800
+DATA 4, MX6_MMDC_P0_MPODTCTRL, 0x00000007
+DATA 4, MX6_MMDC_P0_MDPDC, 0x0002556d
+DATA 4, MX6_MMDC_P0_MAPSR, 0x00011006
+DATA 4, MX6_MMDC_P0_MDSCR, 0x00000000
board/solidrun/carrier1/Makefile new file +26 -0
new file mode 100644
index 0000000..a18451e
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2013, Jon Nettleton <[email protected]>
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+include $(TOPDIR)/config.mk
+
+LIB    = $(obj)lib$(BOARD).o
+
+COBJS  := carrier1.o
+
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+$(LIB):        $(obj).depend $(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/solidrun/carrier1/README new file +35 -0
new file mode 100644
index 0000000..89d0aa0
@@ -0,0 +1,35 @@
+U-Boot for Solid Run Carrier1
+-----------------------------
+
+This file contains information for the port of U-Boot to the Carrier1 board.
+
+For more details about Carrier1, please refer to:
+http://cubox-i.com
+
+Building U-boot for Carrier1
+----------------------------
+
+To build U-Boot for the Carrier1 Solo version:
+
+$ make carrier1_solo_config
+$ make
+
+Flashing U-boot into the SD card
+--------------------------------
+
+- After the 'make' command completes, the generated 'u-boot.imx' binary must be
+flashed into the SD card:
+
+$ sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync
+
+(Note - the SD card node may vary, so adjust this as needed).
+
+- Insert the micro SD card into the slot located in the bottom of the board
+
+- Connect a 3.3V USB to serial converter cable to the host PC. The MX6 UART
+signals are available in the 26 pin connector as shown at:
+http://imx.solid-run.com/wiki/index.php?title=Carrier-One_Hardware
+(Check for "26 pin header layout").
+
+- Power up the board via USB cable (CON201) and U-boot messages will appear in
+the serial console.
board/solidrun/carrier1/carrier1.c new file +197 -0

197 lines not on this page · raw message

board/solidrun/carrier1/clocks.cfg new file +33 -0
new file mode 100644
index 0000000..1288811
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2013 Boundary Devices
+ * Copyright (C) 2013 SolidRun ltd.
+ * Copyright (C) 2013 Jon Nettleton <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/* set the default clock gate to save power */
+DATA 4, CCM_CCGR0, 0x00C03F3F
+DATA 4, CCM_CCGR1, 0x0030FC03
+DATA 4, CCM_CCGR2, 0x0FFFC000
+DATA 4, CCM_CCGR3, 0x3FF00000
+DATA 4, CCM_CCGR4, 0x00FFF300
+DATA 4, CCM_CCGR5, 0x0F0000C3
+DATA 4, CCM_CCGR6, 0x000003FF
+
+/* enable AXI cache for VDOA/VPU/IPU */
+DATA 4, MX6_IOMUXC_GPR4, 0xF00000CF
+/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
+DATA 4, MX6_IOMUXC_GPR6, 0x007F007F
+DATA 4, MX6_IOMUXC_GPR7, 0x007F007F
+
+/*
+ * Setup CCM_CCOSR register as follows:
+ *
+ * cko1_en  = 1    --> CKO1 enabled
+ * cko1_div = 111  --> divide by 8
+ * cko1_sel = 1011 --> ahb_clk_root
+ *
+ * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz
+ */
+DATA 4, CCM_CCOSR, 0x000000fb
board/solidrun/carrier1/ddr-800mhz-32bit-setup.cfg new file +67 -0

67 lines not on this page · raw message

board/solidrun/carrier1/mx6_c1solo.cfg new file +25 -0
new file mode 100644
index 0000000..1acad07
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2013 Boundary Devices
+ * Copyright (C) 2013 Jon Nettleton <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/* image version */
+IMAGE_VERSION 2
+
+/*
+ * Boot Device : one of
+ * spi, sd (the board has no nand neither onenand)
+ */
+BOOT_FROM      sd
+
+#define __ASSEMBLY__
+#include <config.h>
+#include "asm/arch/mx6-ddr.h"
+#include "asm/arch/iomux.h"
+#include "asm/arch/crm_regs.h"
+
+#include "ddr-800mhz-32bit-setup.cfg"
+#include "800mhz_2x256mx16.cfg"
+#include "clocks.cfg"
boards.cfg +3 -0
index cec154b..892973a 100644
@@ -306,6 +306,9 @@ Active  arm         armv7          mx6         freescale       mx6sabresd
 Active  arm         armv7          mx6         freescale       mx6sabresd          mx6qsabresd                          mx6sabresd:IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg,MX6Q                                                           Fabio Estevam <[email protected]>
 Active  arm         armv7          mx6         freescale       mx6slevk            mx6slevk                             mx6slevk:IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL                                                                   Fabio Estevam <[email protected]>
 Active  arm         armv7          mx6         freescale       titanium            titanium                             titanium:IMX_CONFIG=board/freescale/titanium/imximage.cfg                                                                         Stefan Roese <[email protected]>
+
+Active  arm         armv7          mx6         solidrun        carrier1            carrier1_solo                        carrier1:IMX_CONFIG=board/solidrun/carrier1/mx6_c1solo.cfg,MX6S,DDR_MB=512	                                                  Fabio Estevam <[email protected]>
+
 Active  arm         armv7          omap3       -               overo               omap3_overo                          -                                                                                                                                 Steve Sakoman <[email protected]>
 Active  arm         armv7          omap3       -               pandora             omap3_pandora                        -                                                                                                                                 Grazvydas Ignotas <[email protected]>
 Active  arm         armv7          omap3       8dtech          eco5pk              eco5pk                               -                                                                                                                                 Raphael Assenat <[email protected]>
include/configs/carrier1.h new file +227 -0

227 lines not on this page · raw message

Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 mx6: Add initial support for Carrier1 mx6solo board

Hi Stefano,

Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Solid Run designed the Carrier1 board based on mx6q/dl/solo.

Add the initial support for the mx6 solo variant.

More information about this hardware can be found at:
http://cubox-i.com/

I would like to send another patch that depends on this one.

Could you please let me know if you think this one looks good?

Thanks,

Fabio Estevam

#2 lore raw

PATCH 1/1 mx6: Add initial support for Carrier1 mx6solo board

Hi Stefano,

Quoted 9 lines · Fabio Estevam

Hi Stefano,

Quoted 6 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Solid Run designed the Carrier1 board based on mx6q/dl/solo.

Add the initial support for the mx6 solo variant.

Quoted 8 lines
Quoted 4 lines

More information about this hardware can be found at:
http://cubox-i.com/

I would like to send another patch that depends on this one.

Could you please let me know if you think this one looks good?

Actually please discard this one. Will need to send a v2 soon.

Thanks,

Fabio Estevam

#3 lore raw

PATCH 1/1 mx6: Add initial support for Carrier1 mx6solo board

Quoted 6 lines · Fabio Estevam
Quoted 4 lines

I would like to send another patch that depends on this one.

Could you please let me know if you think this one looks good?

Actually please discard this one. Will need to send a v2 soon.

Ok, understood.

Stefano

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
=====================================================================