summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf/machine
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2022-12-24 22:00:01 -0700
committerMark Hatle <mark.hatle@amd.com>2023-01-06 10:58:21 -0800
commit557131346a4129a9d41affffea396cf5c34e24c3 (patch)
treeb09794ea6d65556c3363957682f5ef867dd35902 /meta-xilinx-core/conf/machine
parentdfafee05cf7f936a0941240ca43dedc06e6e12cc (diff)
downloadmeta-xilinx-557131346a4129a9d41affffea396cf5c34e24c3.tar.gz
versal-generic: Update machine conf file using gen-machineconf tool
1. Update machine conf file using gen-machineconf tool by parsing vck190 xsa. 2. Use TFA_BL33_LOAD for TF-A preloadded bl33 base address. 3. Move variables which changes based on xsa before required inclusion file to handle pre-expansion values. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf/machine')
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf52
1 files changed, 41 insertions, 11 deletions
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index a1f0fda6..7811073b 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -1,6 +1,6 @@
1#@TYPE: Machine 1#@TYPE: Machine
2#@NAME: Generic versal 2#@NAME: versal-generic
3#@DESCRIPTION: versal devices 3#@DESCRIPTION: Machine configuration for the versal-generic devices
4 4
5# Deprecated board config 5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" 6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
@@ -11,29 +11,59 @@ unset USE_BOARD
11MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}" 11MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}"
12#### Regular settings follow 12#### Regular settings follow
13 13
14require conf/machine/include/soc-versal.inc 14# Variables that changes based on hw design or board specific requirement must be
15require conf/machine/include/machine-xilinx-default.inc 15# defined before calling the required inclusion file else pre-expansion value
16require conf/machine/include/machine-xilinx-qemu.inc 16# defined in local.conf without machine override will not be reflected.
17
18MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost"
19 17
20EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 18# Yocto Versal device-tree variables
19YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "CIPS_0_pspmc_0_psv_sbsauart_0"
20DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
21DTC_FLAGS:pn-device-tree = "-@"
22YAML_DT_BOARD_FLAGS ?= "{BOARD versal-vck190-reva-x-ebm-01-reva}"
21 23
24# Yocto Versal u-boot-xlnx variables
22UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" 25UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig"
23BOOTMODE ?= "generic.root" 26BOOTMODE ?= "generic.root"
24 27
28# Yocto Versal arm-trusted-firmware(TF-A) variables
29TFA_BL33_LOAD ?= "0x8000000"
30
31# Yocto Versal PLM variables
32YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0"
33YAML_SERIAL_CONSOLE_STDOUT:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0"
34
35# Yocto Versal KERNEL Variables
36UBOOT_ENTRYPOINT ?= "0x200000"
37UBOOT_LOADADDRESS ?= "0x200000"
38KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
39
40# Versal Serial Console
25SERIAL_CONSOLES ?= "115200;ttyAMA0" 41SERIAL_CONSOLES ?= "115200;ttyAMA0"
42SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
43YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
26 44
27MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 45require conf/machine/include/soc-versal.inc
46require conf/machine/include/machine-xilinx-default.inc
47require conf/machine/include/machine-xilinx-qemu.inc
28 48
49# versal-generic.conf uses vck190-versal xsa as reference input.
50# User can override with custom xsa using HDF_BASE and HDF_PATH variables from
51# local.conf.
29HDF_MACHINE = "vck190-versal" 52HDF_MACHINE = "vck190-versal"
30 53
54MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost"
55
56MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree"
57
31# Default SD image build onfiguration, use qemu-sd to pad 58# Default SD image build onfiguration, use qemu-sd to pad
32IMAGE_CLASSES += "image-types-xilinx-qemu" 59IMAGE_CLASSES += "image-types-xilinx-qemu"
33# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 60# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
34IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" 61IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}"
35 62
36EXTRA_IMAGEDEPENDS += " \ 63EXTRA_IMAGEDEPENDS += " \
64 libyaml-native \
65 python3-cython-native \
66 python3-pyyaml-native \
37 arm-trusted-firmware \ 67 arm-trusted-firmware \
38 virtual/boot-bin \ 68 virtual/boot-bin \
39 virtual/bootloader \ 69 virtual/bootloader \
@@ -49,9 +79,9 @@ IMAGE_BOOT_FILES += " \
49 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ 79 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \
50 Image \ 80 Image \
51 boot.scr \ 81 boot.scr \
52" 82 "
53
54 83
84# Versal QEMU Configurations
55# This machine has a QEMU model, runqemu setup: 85# This machine has a QEMU model, runqemu setup:
56QB_MEM = "-m 8G" 86QB_MEM = "-m 8G"
57QB_DEFAULT_KERNEL = "none" 87QB_DEFAULT_KERNEL = "none"