summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-04-18 17:40:54 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2019-04-23 09:55:04 +0200
commitb81e554f3ab2080753db047116b223173260afb0 (patch)
tree8a7dbec33d36f724e8b11f2f3d1ca1cc595c36e8 /conf
parentbccfd2b19366eae1b1dad059b9e97078f1316b25 (diff)
apalis-imx8: add machine config files
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/machine/apalis-imx8.conf56
-rw-r--r--conf/machine/apalis-imx8a0.conf4
2 files changed, 60 insertions, 0 deletions
diff --git a/conf/machine/apalis-imx8.conf b/conf/machine/apalis-imx8.conf
new file mode 100644
index 0000000..54ea0b8
--- /dev/null
+++ b/conf/machine/apalis-imx8.conf
@@ -0,0 +1,56 @@
+#@TYPE: Machine
+#@NAME: Apalis iMX8
+#@DESCRIPTION: Apalis iMX8 powered by a i.MX 8QuadMax SoC
+#@MAINTAINER: Stefan Agner <stefan.agner@toradex.com>
+
+SOC_SILICON_REV ?= ""
+
+MACHINEOVERRIDES =. "mx8:mx8qm:${@bb.utils.contains('SOC_SILICON_REV', 'a0', 'mx8qma0:', '', d)}"
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+# Don't include kernels in standard images
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""
+
+LOADADDR = ""
+
+# We have to disable SERIAL_CONSOLE due to auto-serial-console
+SERIAL_CONSOLE = "115200 ttyAMA1"
+
+# we do not want to have getty running on tty1 as we run
+# auto-serial-console there
+USE_VT = "0"
+
+KERNEL_DEVICETREE = "freescale/fsl-imx8qm-apalis.dtb"
+
+UBOOT_MAKE_TARGET = "u-boot.bin"
+UBOOT_SUFFIX = "bin"
+UBOOT_CONFIG ??= "sd"
+UBOOT_CONFIG[sd] = "apalis-imx8_config,sdcard"
+
+BOOT_SPACE = "65536"
+IMAGE_BOOTLOADER = "imx-boot"
+IMX_BOOT_SEEK = "32"
+IMX_BOOT_SEEK_mx8qma0 = "33"
+
+IMAGE_BOOTFILES_DEPENDS += "firmware-imx:do_deploy"
+IMAGE_BOOTFILES += "hdmitxfw.bin dpfw.bin"
+
+SDCARD_GENERATION_COMMAND_mx8 = "generate_imx_sdcard"
+
+PREFERRED_PROVIDER_virtual/kernel_mx8 = "linux-toradex"
+PREFERRED_PROVIDER_virtual/bootloader_mx8 = "u-boot-toradex"
+SOC_UAPI_HEADERS_mx8 = "linux-toradex-soc-headers"
+
+MACHINE_FIRMWARE_append = " linux-firmware-pcie8997"
+
+IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_b0_flexspi', \
+ 'flash_b0', d)}"
+
+IMXBOOT_TARGETS_mx8qma0 = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_flexspi', \
+ bb.utils.contains('UBOOT_CONFIG', 'nand', 'flash_nand', \
+ 'flash_dcd', d), d)}"
+
+BOARD_TYPE = "apalis"
+BOARD_TYPE_mx8qma0 = "a0-apalis"
diff --git a/conf/machine/apalis-imx8a0.conf b/conf/machine/apalis-imx8a0.conf
new file mode 100644
index 0000000..e50d2da
--- /dev/null
+++ b/conf/machine/apalis-imx8a0.conf
@@ -0,0 +1,4 @@
+SOC_SILICON_REV = "a0"
+
+MACHINEOVERRIDES .= ":apalis-imx8"
+require conf/machine/apalis-imx8.conf