summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-vendor/conf
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-01-12 15:33:04 -0700
committerMark Hatle <mark.hatle@amd.com>2023-01-13 23:31:51 -0600
commit0fd65a21496b02d836be8ef528ba3f65d7281914 (patch)
tree13678abc8e93e394a190d6278753aece4ada248c /meta-xilinx-vendor/conf
parentd00df7deb81039f2742789a498492d2c214505f5 (diff)
downloadmeta-xilinx-0fd65a21496b02d836be8ef528ba3f65d7281914.tar.gz
ultra96-zynqmp: Update machine conf file using gen-machineconf tool
1. Update machine conf file using gen-machineconf tool by parsing ultra96 reva xsa. 2. Use use soc variant based generic machine inclusion. 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-vendor/conf')
-rw-r--r--meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf64
1 files changed, 52 insertions, 12 deletions
diff --git a/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf b/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
index ff74ac3d..49fd8ba9 100644
--- a/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
+++ b/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
@@ -1,23 +1,63 @@
1#@TYPE: Machine 1#@TYPE: Machine
2#@NAME: ultra96-zynqmp 2#@NAME: ultra96-zynqmp
3#@DESCRIPTION: Machine support for Ultra96 Evaluation Board. 3#@DESCRIPTION: Machine support for Ultra96 Evaluation Board.
4#
5 4
6SOC_VARIANT = 'eg' 5# Compatibility with old BOARD value.
6# TODO - Remove these once removed from petalinux bsp
7MACHINEOVERRIDES =. "ultra96:"
7 8
8require conf/machine/zynqmp-generic.conf 9#### Preamble
10MACHINEOVERRIDES =. "${@['', 'ultra96-zynqmp:']['ultra96-zynqmp' !='${MACHINE}']}"
11#### Regular settings follow
9 12
10# Add board compatibility override 13# Variables that changes based on hw design or board specific requirement must be
11MACHINEOVERRIDES .= ":ultra96" 14# defined before calling the required inclusion file else pre-expansion value
15# defined in zynqmp-generic.conf will be set.
12 16
13KERNEL_DEVICETREE = "xilinx/zynqmp-zcu100-revC.dtb" 17# Yocto device-tree variables
18YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "psu_uart_1"
19YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "PSU_DDR_0"
20YAML_DT_BOARD_FLAGS ?= "{BOARD avnet-ultra96-rev1}"
14 21
15# Affects meta-xilinx-tools xsctyaml.bbclass related items 22# Yocto arm-trusted-firmware(TF-A) variables
16YAML_SERIAL_CONSOLE_STDIN ?= "psu_uart_1" 23ATF_CONSOLE_DEFAULT ?= "cadence1"
17YAML_SERIAL_CONSOLE_STDOUT ?= "psu_uart_1" 24TFA_BL33_LOAD ?= "0x8000000"
18 25
19YAML_COMPILER_FLAGS:append = " -DBOARD_SHUTDOWN_PIN=2 -DBOARD_SHUTDOWN_PIN_STATE=0 " 26# Yocto PMUFW variables
27YAML_SERIAL_CONSOLE_STDIN:pn-pmu-firmware ?= "psu_uart_1"
28YAML_SERIAL_CONSOLE_STDOUT:pn-pmu-firmware ?= "psu_uart_1"
20 29
21# Enable bluetooth and wifi module 30# Yocto FSBL variables
22MACHINE_ESSENTIAL_EXTRA_RDEPENDS:append = " linux-firmware-wl18xx linux-firmware-ti-bt-wl180x" 31YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware ?= "psu_uart_1"
32YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware ?= "psu_uart_1"
33
34# Yocto KERNEL Variables
35UBOOT_ENTRYPOINT ?= "0x200000"
36UBOOT_LOADADDRESS ?= "0x200000"
37
38# ultra96-zynqmp Serial Console
39SERIAL_CONSOLES ?= "115200;ttyPS0"
40YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
41
42# Required generic machine inclusion
43# Ultra96 board uses ZynqMP EG device hence use soc variant based generic machine
44# inclusion
45require conf/machine/zynqmp-eg-generic.conf
23 46
47# This eval board machine conf file uses ultra96-zynqmp xsa as reference input.
48# User can override with ultra96 custom xsa using HDF_BASE and HDF_PATH variables
49# from local.conf.
50HDF_MACHINE = "ultra96-zynqmp"
51
52# Ultra96 has 2GB memory only but default zynqmp-generic has QB_MEM set to 4G, Hence set to 2G
53QB_MEM = "-m 2G"
54
55# KERNEL_DEVICETREE is disabled as we use board device tree from DTG to match
56# the xsa. User can enable explicitly if required from local.conf.
57# KERNEL_DEVICETREE = "xilinx/zynqmp-zcu100-revC.dtb"
58
59# Enable bluetooth and wifi module
60MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
61 linux-firmware-wl18xx \
62 linux-firmware-ti-bt-wl180x \
63 "