#@TYPE: Machine #@NAME: Toradex Verdin iMX8M Mini #@SOC: i.MX8MM #@DESCRIPTION: Machine configuration for Toradex Verdin iMX8M Mini SoM #@MAINTAINER: Max Krummenacher MACHINE_NAME = "Verdin-iMX8MM" MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" IMX_DEFAULT_BSP = "nxp" require conf/machine/include/imx-base.inc # override imx-base.inc which sets this to cortexa53-crypto DEFAULTTUNE_mx8mm = "aarch64" require conf/machine/include/tune-cortexa53.inc # Don't include kernels in standard images RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" KERNEL_DEVICETREE = " \ freescale/imx8mm-verdin-nonwifi-dahlia.dtb \ freescale/imx8mm-verdin-nonwifi-dev.dtb \ freescale/imx8mm-verdin-nonwifi-yavia.dtb \ freescale/imx8mm-verdin-wifi-dahlia.dtb \ freescale/imx8mm-verdin-wifi-dev.dtb \ freescale/imx8mm-verdin-wifi-yavia.dtb \ " KERNEL_IMAGETYPE_aarch64 = "Image.gz" UBOOT_CONFIG ??= "sd" UBOOT_CONFIG[sd] = "verdin-imx8mm_defconfig,sdcard" SPL_BINARY = "spl/u-boot-spl.bin" UBOOT_ENTRYPOINT_mx8mm = "0x40000000" UBOOT_DTB_LOADADDRESS_mx8mm = "0x44000000" UBOOT_DTBO_LOADADDRESS_mx8mm = "0x46000000" UBOOT_RD_LOADADDRESS = "0x60000000" # 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" # Set u-boot DTB UBOOT_DTB_NAME = "imx8mm-verdin.dtb" BOOT_SPACE = "65536" # Set imx-mkimage boot target IMXBOOT_TARGETS = "flash_evk_emmc_fastboot" IMAGE_BOOT_FILES_append = " boot.scr-${MACHINE};boot.scr" WKS_FILE_DEPENDS_append = " u-boot-default-script" PREFERRED_PROVIDER_u-boot-default-script = "u-boot-distro-boot" LOADADDR = "" UBOOT_SUFFIX = "bin" UBOOT_MAKE_TARGET = "" IMX_BOOT_SEEK = "33" SERIAL_CONSOLES = "115200;ttymxc0" MACHINE_FEATURES += "3g bluetooth alsa ext2 pci screen touchscreen usbgadget usbhost vfat wifi" # Add additional firmware MACHINE_FIRMWARE_append = " linux-firmware-ath10k linux-firmware-imx-sdma-imx7d" PREFERRED_PROVIDER_virtual/kernel = "linux-toradex" PREFERRED_PROVIDER_virtual/kernel_preempt-rt = "linux-toradex" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex" PREFERRED_PROVIDER_u-boot = "u-boot-toradex" # Currently we use the nxp 2020.04 downstream for mx8 as some features are # not yet available in 2020.07. PREFERRED_VERSION_u-boot-toradex = "2020.04%" MACHINE_FIRMWARE_append = " linux-firmware-sd8997" MACHINE_FIRMWARE_append = " firmware-imx-vpu-imx8" BOARD_TYPE = "verdin" IMAGE_CLASSES_append = " image_type_tezi" IMAGE_FSTYPES += "teziimg" UBOOT_BINARY_TEZI_EMMC = "imx-boot" OFFSET_BOOTROM_PAYLOAD = "2" TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT = "verdin-imx8mm_lt8912_overlay.dtbo" TORADEX_PRODUCT_IDS = "0055 0057 0059 0060 0068 0086 0087 0090" TORADEX_PRODUCT_IDS[0055] = "imx8mm-verdin-wifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0057] = "imx8mm-verdin-nonwifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0059] = "imx8mm-verdin-nonwifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0060] = "imx8mm-verdin-wifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0068] = "imx8mm-verdin-wifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0086] = "imx8mm-verdin-nonwifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0087] = "imx8mm-verdin-nonwifi-v1.1-dev.dtb" TORADEX_PRODUCT_IDS[0090] = "imx8mm-verdin-wifi-v1.1-dev.dtb"