summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeresa Remmet <t.remmet@phytec.de>2020-04-24 17:14:37 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2020-04-28 09:34:16 +0200
commitc65fb1ac695f95c8324e2a645412e0dd429204d4 (patch)
treed29c9c35c50ede1b526c61bf7c132d5ef233d7e6
parent15e73af83b0fabbcedff6df09025924d0c1d0aee (diff)
downloadmeta-phytec-c65fb1ac695f95c8324e2a645412e0dd429204d4.tar.bz2
meta-phytec-c65fb1ac695f95c8324e2a645412e0dd429204d4.zip
conf: machine: Add support for phyboard-polis-imx8mm-3
phyboard-polis-imx8mm-3 adds support for the new module revision 1518.2. We will keep support for phyboard-polis-imx8mm-2 (1518.1a) in upcoming release but the machine will be set to depreciated. 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-2.conf4
-rw-r--r--conf/machine/phyboard-polis-imx8mm-3.conf46
-rw-r--r--recipes-bsp/u-boot/u-boot-imx_2019.04_1.1.0-phy2.bb1
-rw-r--r--recipes-kernel/linux/linux-imx_4.19.35_1.1.0-phy2.bb1
4 files changed, 50 insertions, 2 deletions
diff --git a/conf/machine/phyboard-polis-imx8mm-2.conf b/conf/machine/phyboard-polis-imx8mm-2.conf
index e80e7d6..5561a91 100644
--- a/conf/machine/phyboard-polis-imx8mm-2.conf
+++ b/conf/machine/phyboard-polis-imx8mm-2.conf
@@ -1,6 +1,6 @@
#@TYPE: Machine
#@NAME: phyboard-polis-imx8mm-2
-#@DESCRIPTION: PHYTEC phyBOARD-POLIS i.MX8M Mini 2GB RAM, 16GB eMMC
+#@DESCRIPTION: PHYTEC phyBOARD-POLIS i.MX8M Mini 2GB RAM, 16GB eMMC (depreciated)
#@ARTICLENUMBERS: PB-02820.A1
MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:"
@@ -11,7 +11,7 @@ require conf/machine/include/arm/arch-arm64.inc
MACHINE_FEATURES += " emmc pci wifi bluetooth can"
-KERNEL_DEVICETREE = "freescale/imx8mm-phyboard-polis-rdk.dtb"
+KERNEL_DEVICETREE = "freescale/imx8mm-phyboard-polis-rdk-rev1a.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"
diff --git a/conf/machine/phyboard-polis-imx8mm-3.conf b/conf/machine/phyboard-polis-imx8mm-3.conf
new file mode 100644
index 0000000..5ec81a7
--- /dev/null
+++ b/conf/machine/phyboard-polis-imx8mm-3.conf
@@ -0,0 +1,46 @@
+#@TYPE: Machine
+#@NAME: phyboard-polis-imx8mm-3
+#@DESCRIPTION: PHYTEC phyBOARD-POLIS i.MX8M Mini 2GB RAM, 16GB eMMC
+#@ARTICLENUMBERS: PB-02820.A2
+
+MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:"
+
+require conf/machine/include/imx-base.inc
+include conf/machine/include/phyimx8.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+MACHINE_FEATURES += " emmc pci wifi bluetooth can"
+
+KERNEL_DEVICETREE = "freescale/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 ??= "fspi sd"
+UBOOT_CONFIG[sd] = "phycore-imx8mm_defconfig,sdcard"
+UBOOT_CONFIG[fspi] = "phycore-imx8mm_fspi_defconfig"
+UBOOT_CONFIG[mfgtool] = "phycore-imx8mm_defconfig"
+SPL_BINARY = "spl/u-boot-spl.bin"
+
+# Set u-boot DTB
+UBOOT_DTB_NAME = "phycore-imx8mm.dtb"
+
+# Set imx-mkimage boot target
+IMXBOOT_TARGETS = "flash_evk flash_evk_flexspi"
+
+# 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 = ""
diff --git a/recipes-bsp/u-boot/u-boot-imx_2019.04_1.1.0-phy2.bb b/recipes-bsp/u-boot/u-boot-imx_2019.04_1.1.0-phy2.bb
index 227a3af..9ca5679 100644
--- a/recipes-bsp/u-boot/u-boot-imx_2019.04_1.1.0-phy2.bb
+++ b/recipes-bsp/u-boot/u-boot-imx_2019.04_1.1.0-phy2.bb
@@ -46,6 +46,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "^("
COMPATIBLE_MACHINE .= "phyboard-polis-imx8mm-2"
+COMPATIBLE_MACHINE .= "|phyboard-polis-imx8mm-3"
COMPATIBLE_MACHINE .= ")$"
UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
diff --git a/recipes-kernel/linux/linux-imx_4.19.35_1.1.0-phy2.bb b/recipes-kernel/linux/linux-imx_4.19.35_1.1.0-phy2.bb
index 594d850..b9b6685 100644
--- a/recipes-kernel/linux/linux-imx_4.19.35_1.1.0-phy2.bb
+++ b/recipes-kernel/linux/linux-imx_4.19.35_1.1.0-phy2.bb
@@ -20,4 +20,5 @@ INTREE_DEFCONFIG = "defconfig imx8_phytec_distro.config imx8_phytec_platform.con
COMPATIBLE_MACHINE = "^("
COMPATIBLE_MACHINE .= "phyboard-polis-imx8mm-2"
+COMPATIBLE_MACHINE .= "|phyboard-polis-imx8mm-3"
COMPATIBLE_MACHINE .= ")$"