imx6: Add support for phyCARD-i.MX6
Subsystems (4)
PATCH v3 1/1 imx6: Add support for phyCARD-i.MX6
Add support for Phytec phyCARD-i.MX6.
- 1GB RAM on two banks
- 1GB RAM on one bank
- 2GB RAM on two banks
---
v2: - remove IP addresses from env
- remove boot/net
- add ethernet pinmux to pcaaxl3
- add common function to lowlevel.c
v3: - remove blank line at EOF
- Change ENET_PINGRP to 4
arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-phycard-imx6/Makefile | 2 + arch/arm/boards/phytec-phycard-imx6/board.c | 60 ++++++++ arch/arm/boards/phytec-phycard-imx6/env/boot/nand | 12 ++ .../boards/phytec-phycard-imx6/env/boot/sd-ext3 | 11 ++ .../boards/phytec-phycard-imx6/env/config-board | 7 + .../flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg | 7 + .../flash-header-phytec-pcaaxl3-1gib.imxcfg | 7 + .../flash-header-phytec-pcaaxl3-2gib.imxcfg | 8 + .../flash-header-phytec-pcaaxl3.h | 97 +++++++++++++ arch/arm/boards/phytec-phycard-imx6/lowlevel.c | 87 ++++++++++++ arch/arm/configs/imx_v7_defconfig | 1 + arch/arm/dts/Makefile | 4 +- arch/arm/dts/imx6q-phytec-pbaa03.dts | 34 +++++ arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi | 147 ++++++++++++++++++++ arch/arm/mach-imx/Kconfig | 5 + images/Makefile.imx | 15 ++ 17 files changed, 504 insertions(+), 1 deletions(-) create mode 100644 arch/arm/boards/phytec-phycard-imx6/Makefile create mode 100644 arch/arm/boards/phytec-phycard-imx6/board.c create mode 100644 arch/arm/boards/phytec-phycard-imx6/env/boot/nand create mode 100644 arch/arm/boards/phytec-phycard-imx6/env/boot/sd-ext3 create mode 100644 arch/arm/boards/phytec-phycard-imx6/env/config-board create mode 100644 arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg create mode 100644 arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg create mode 100644 arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg create mode 100644 arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3.h create mode 100644 arch/arm/boards/phytec-phycard-imx6/lowlevel.c create mode 100644 arch/arm/dts/imx6q-phytec-pbaa03.dts create mode 100644 arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi
arch/arm/boards/Makefile +1 -0
@@ -63,6 +63,7 @@ obj-$(CONFIG_MACH_PANDA) += panda/ obj-$(CONFIG_MACH_PCA100) += phytec-phycard-imx27/ obj-$(CONFIG_MACH_PCAAL1) += phytec-phycard-omap3/ obj-$(CONFIG_MACH_PCAAXL2) += phytec-phycard-omap4/ +obj-$(CONFIG_MACH_PCAAXL3) += phytec-phycard-imx6/ obj-$(CONFIG_MACH_PCM037) += phytec-phycore-imx31/ obj-$(CONFIG_MACH_PCM038) += phytec-phycore-imx27/ obj-$(CONFIG_MACH_PCM043) += phytec-phycore-imx35/
arch/arm/boards/phytec-phycard-imx6/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-y += board.o +lwl-y += lowlevel.o
arch/arm/boards/phytec-phycard-imx6/board.c new file +60 -0
60 lines not on this page · raw message
arch/arm/boards/phytec-phycard-imx6/env/boot/nand new file +12 -0
@@ -0,0 +1,12 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + boot-menu-add-entry "$0" "Kernel:nand;rootfs:nand" + exit +fi + +global.bootm.image="/dev/nand0.kernel.bb" +#global.bootm.oftree="/env/oftree" +bootargs-ip +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root rootfstype=ubifs" +
arch/arm/boards/phytec-phycard-imx6/env/boot/sd-ext3 new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + boot-menu-add-entry "$0" "MMC (ext3)" + exit +fi + +global.bootm.image="/mnt/kernel/linuximage" +#global.bootm.oftree="/boot/oftree" +bootargs-ip +global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootfstype=ext3 rootwait"
arch/arm/boards/phytec-phycard-imx6/env/config-board new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/sh + +# board defaults, do not change in running system. Change /env/config +# instead + +global.hostname=phyCARD-i.MX6 +global.linux.bootargs.base="console=ttymxc2,115200"
arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg new file +7 -0
@@ -0,0 +1,7 @@ +#define SETUP_1GIB_2GIB \ + wm 32 0x021b000c 0x54597955; \ + wm 32 0x021b0030 0x00591023; \ + wm 32 0x021b0040 0x00000027; \ + wm 32 0x021b0000 0x831a0000 + +#include "flash-header-phytec-pcaaxl3.h"
arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg new file +7 -0
@@ -0,0 +1,7 @@ +#define SETUP_1GIB_2GIB \ + wm 32 0x021b000c 0x3a3f7975; \ + wm 32 0x021b0030 0x003f1023; \ + wm 32 0x021b0040 0x00000017; \ + wm 32 0x021b0000 0xc21a0000 + +#include "flash-header-phytec-pcaaxl3.h"
arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg new file +8 -0
@@ -0,0 +1,8 @@ + +#define SETUP_1GIB_2GIB \ + wm 32 0x021b000c 0x54597955; \ + wm 32 0x021b0030 0x00591023; \ + wm 32 0x021b0040 0x00000027; \ + wm 32 0x021b0000 0xc31a0000 + +#include "flash-header-phytec-pcaaxl3.h"
arch/arm/boards/phytec-phycard-imx6/flash-header-phytec-pcaaxl3.h new file +97 -0
97 lines not on this page · raw message
arch/arm/boards/phytec-phycard-imx6/lowlevel.c new file +87 -0
87 lines not on this page · raw message
arch/arm/configs/imx_v7_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_MACH_FREESCALE_MX51_PDK=y CONFIG_MACH_FREESCALE_MX53_LOCO=y CONFIG_MACH_TQMA53=y CONFIG_MACH_FREESCALE_MX53_VMX53=y +CONFIG_MACH_PCAAXL3=y CONFIG_MACH_PHYTEC_PFLA02=y CONFIG_MACH_DFI_FS700_M60=y CONFIG_MACH_GUF_SANTARO=y
arch/arm/dts/Makefile +3 -1
@@ -27,7 +27,8 @@ dtb-$(CONFIG_ARCH_IMX6) += imx6q-gk802.dtb \ imx6q-nitrogen6x.dtb \ imx6dl-nitrogen6x.dtb \ imx6q-udoo.dtb \ - imx6q-var-custom.dtb + imx6q-var-custom.dtb \ + imx6q-phytec-pbaa03.dtb dtb-$(CONFIG_ARCH_MVEBU) += dove-cubox-bb.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5_sockit.dtb \ socfpga_cyclone5_socrates.dtb
@@ -65,6 +66,7 @@ pbl-$(CONFIG_MACH_GUF_SANTARO) += imx6q-guf-santaro.dtb.o pbl-$(CONFIG_MACH_NITROGEN6X) += imx6q-nitrogen6x.dtb.o imx6dl-nitrogen6x.dtb.o pbl-$(CONFIG_MACH_UDOO) += imx6q-udoo.dtb.o pbl-$(CONFIG_MACH_VARISCITE_MX6) += imx6q-var-custom.dtb.o +pbl-$(CONFIG_MACH_PCAAXL3) += imx6q-phytec-pbaa03.dtb.o .SECONDARY: $(obj)/$(BUILTIN_DTB).dtb.S .SECONDARY: $(patsubst %,$(obj)/%.S,$(dtb-y))
arch/arm/dts/imx6q-phytec-pbaa03.dts new file +34 -0
@@ -0,0 +1,34 @@ +/* + * Copyright 2014 Christian Hemp, Phytec Messtechnik GmbH + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "imx6q-phytec-pcaaxl3.dtsi" + +/ { + model = "Phytec phyCARD-i.MX6 Quad Carrier-Board"; + compatible = "phytec,imx6q-pbaa03", "phytec,imx6q-pcaaxl3", "fsl,imx6q"; + + chosen { + linux,stdout-path = &uart3; + }; +}; + +&fec { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&usdhc3 { + status = "okay"; +};
arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi new file +147 -0
147 lines not on this page · raw message
arch/arm/mach-imx/Kconfig +5 -0
@@ -40,6 +40,7 @@ config ARCH_TEXT_BASE default 0x4fc00000 if MACH_DFI_FS700_M60 default 0x4fc00000 if MACH_UDOO default 0x4fc00000 if MACH_VARISCITE_MX6 + default 0x4fc00000 if MACH_PCAAXL3 config ARCH_IMX_INTERNAL_BOOT bool "support internal boot mode"
@@ -208,6 +209,10 @@ config MACH_FREESCALE_MX53_VMX53 Say Y here if you are using the Voipac Technologies X53-DMM-668 module equipped with a Freescale i.MX53 Processor +config MACH_PCAAXL3 + bool "Phytec phyCARD-i.MX6 Quad" + select ARCH_IMX6 + config MACH_PHYTEC_PFLA02 bool "Phytec phyFLEX-i.MX6" select ARCH_IMX6
images/Makefile.imx +15 -0
@@ -166,3 +166,18 @@ pblx-$(CONFIG_MACH_VARISCITE_MX6) += start_variscite_custom CFG_start_variscite_custom.pblx.imximg = $(board)/variscite-mx6/flash-header-variscite.imxcfg FILE_barebox-variscite-custom.img = start_variscite_custom.pblx.imximg image-$(CONFIG_MACH_VARISCITE_MX6) += barebox-variscite-custom.img + +pblx-$(CONFIG_MACH_PCAAXL3) += start_phytec_pbaa03_1gib +CFG_start_phytec_pbaa03_1gib.pblx.imximg = $(board)/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib.imxcfg +FILE_barebox-phytec-pbaa03-1gib.img = start_phytec_pbaa03_1gib.pblx.imximg +image-$(CONFIG_MACH_PCAAXL3) += barebox-phytec-pbaa03-1gib.img + +pblx-$(CONFIG_MACH_PCAAXL3) += start_phytec_pbaa03_1gib_1bank +CFG_start_phytec_pbaa03_1gib_1bank.pblx.imximg = $(board)/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-1gib-1bank.imxcfg +FILE_barebox-phytec-pbaa03-1gib-1bank.img = start_phytec_pbaa03_1gib_1bank.pblx.imximg +image-$(CONFIG_MACH_PCAAXL3) += barebox-phytec-pbaa03-1gib-1bank.img + +pblx-$(CONFIG_MACH_PCAAXL3) += start_phytec_pbaa03_2gib +CFG_start_phytec_pbaa03_2gib.pblx.imximg = $(board)/phytec-phycard-imx6/flash-header-phytec-pcaaxl3-2gib.imxcfg +FILE_barebox-phytec-pbaa03-2gib.img = start_phytec_pbaa03_2gib.pblx.imximg +image-$(CONFIG_MACH_PCAAXL3) += barebox-phytec-pbaa03-2gib.img
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 14 lines · Christian Hemp
Add support for Phytec phyCARD-i.MX6.
- 1GB RAM on two banks
- 1GB RAM on one bank
- 2GB RAM on two banksSigned-off-by Christian Hemp <[email protected]>---
v2: - remove IP addresses from env
- remove boot/net
- add ethernet pinmux to pcaaxl3
- add common function tolowlevel.c
v3: - remove blank line at EOF
- ChangeENET_PINGRPto 4
...
arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi line 3
Quoted 10 lines
(quoted diff) +1
-0+};arch/arm/dts/imx6q-phytec-pcaaxl3.dtsi new file +3
-0@@ -0,0 +1,147 @@ +/* + * Copyright 2014444 Christian Hemp, Phytec Messtechnik GmbH + *
turn off your flux capacitor and come back in the 21th century!
What I mean is:
s/2014444/2014
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox