summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeresa Remmet <t.remmet@phytec.de>2019-10-25 07:01:41 (GMT)
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-10-25 09:30:24 (GMT)
commita831e176ead90aea4968595d5d15d62c4a469baa (patch)
tree284a58fd0c3f2f49678dee481916506b959e0079
parent97d57b9326b31fa65b74d748a7fcdcd921e62e29 (diff)
downloadmeta-phytec-a831e176ead90aea4968595d5d15d62c4a469baa.zip
meta-phytec-a831e176ead90aea4968595d5d15d62c4a469baa.tar.bz2
machine: Add support for phyBOARD-Polis-i.MX8MM
Add machine to support first prototype of phyBOARD-Polis-i.MX8MM. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--conf/machine/phyboard-polis-imx8mm-1.conf56
-rw-r--r--recipes-bsp/u-boot/u-boot-imx_2019.04_1.0.0-phy1.bb1
-rw-r--r--recipes-kernel/linux/linux-imx_4.19.35_1.0.0-phy1.bb1
3 files changed, 58 insertions, 0 deletions
diff --git a/conf/machine/phyboard-polis-imx8mm-1.conf b/conf/machine/phyboard-polis-imx8mm-1.conf
new file mode 100644
index 0000000..6af9eb7
--- /dev/null
+++ b/conf/machine/phyboard-polis-imx8mm-1.conf
@@ -0,0 +1,56 @@
+#@TYPE: Machine
+#@NAME: phyboard-polis-imx8mm-1
+#@DESCRIPTION: PHYTEC phyBOARD-POLIS i.MX8M Mini 2GB RAM, 16GB eMMC
+#@ARTICLENUMBERS: PB-02820.A0
+
+MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:"
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+MACHINE_FEATURES += " emmc pci wifi bluetooth can"
+
+PREFERRED_PROVIDER_virtual/bootloader_mx8m = "u-boot-imx"
+
+KERNEL_DEVICETREE = "freescale/phytec-imx8mm-phyboard-polis-rdk.dtb"
+
+# Set DDR FIRMWARE
+DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
+
+UBOOT_CONFIG ??= "sd"
+UBOOT_CONFIG[sd] = "phycore-imx8mm_defconfig,sdcard"
+UBOOT_CONFIG[mfgtool] = "phycore-imx8mm_defconfig"
+SPL_BINARY = "spl/u-boot-spl.bin"
+
+# Set u-boot DTB
+UBOOT_DTB_NAME = "phytec-phycore-imx8mm.dtb"
+
+# Set imx-mkimage boot target
+IMXBOOT_TARGETS = "flash_evk"
+
+# Set Serial console
+SERIAL_CONSOLES = "115200;ttymxc2"
+
+IMAGE_BOOTLOADER = "imx-boot"
+
+DEFAULTTUNE_mx8 = "aarch64"
+
+IMX_DEFAULT_KERNEL = "linux-imx"
+
+KERNEL_IMAGETYPE = "Image"
+
+BOOT_SPACE = "32768"
+
+LOADADDR = ""
+UBOOT_SUFFIX = "bin"
+UBOOT_MAKE_TARGET = ""
+
+#WIC
+IMAGE_CLASSES += "wic-helper"
+IMAGE_CLASSES += "wic-imx8-helper"
+IMAGE_BOOT_FILES = "Image ${@parse_dtbs(d)}"
+WKS_FILES_mx8 ?= "imx8m-sdimage.wks.in"
+
+# default images to build
+IMAGE_FSTYPES_mx8 = "tar.gz wic"
+
diff --git a/recipes-bsp/u-boot/u-boot-imx_2019.04_1.0.0-phy1.bb b/recipes-bsp/u-boot/u-boot-imx_2019.04_1.0.0-phy1.bb
index 3f214b6..a742c2c 100644
--- a/recipes-bsp/u-boot/u-boot-imx_2019.04_1.0.0-phy1.bb
+++ b/recipes-bsp/u-boot/u-boot-imx_2019.04_1.0.0-phy1.bb
@@ -46,6 +46,7 @@ do_deploy_append_mx8m () {
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "^("
+COMPATIBLE_MACHINE .= "phyboard-polis-imx8mm-1"
COMPATIBLE_MACHINE .= ")$"
UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
diff --git a/recipes-kernel/linux/linux-imx_4.19.35_1.0.0-phy1.bb b/recipes-kernel/linux/linux-imx_4.19.35_1.0.0-phy1.bb
index 8a4c3b6..aa5f47a 100644
--- a/recipes-kernel/linux/linux-imx_4.19.35_1.0.0-phy1.bb
+++ b/recipes-kernel/linux/linux-imx_4.19.35_1.0.0-phy1.bb
@@ -19,4 +19,5 @@ S = "${WORKDIR}/git"
INTREE_DEFCONFIG = "defconfig"
COMPATIBLE_MACHINE = "^("
+COMPATIBLE_MACHINE .= "phyboard-polis-imx8mm-1"
COMPATIBLE_MACHINE .= ")$"