diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2023-01-12 15:33:04 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-13 23:31:51 -0600 |
commit | 0fd65a21496b02d836be8ef528ba3f65d7281914 (patch) | |
tree | 13678abc8e93e394a190d6278753aece4ada248c /meta-xilinx-vendor/conf | |
parent | d00df7deb81039f2742789a498492d2c214505f5 (diff) | |
download | meta-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.conf | 64 |
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 | ||
6 | SOC_VARIANT = 'eg' | 5 | # Compatibility with old BOARD value. |
6 | # TODO - Remove these once removed from petalinux bsp | ||
7 | MACHINEOVERRIDES =. "ultra96:" | ||
7 | 8 | ||
8 | require conf/machine/zynqmp-generic.conf | 9 | #### Preamble |
10 | MACHINEOVERRIDES =. "${@['', '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 |
11 | MACHINEOVERRIDES .= ":ultra96" | 14 | # defined before calling the required inclusion file else pre-expansion value |
15 | # defined in zynqmp-generic.conf will be set. | ||
12 | 16 | ||
13 | KERNEL_DEVICETREE = "xilinx/zynqmp-zcu100-revC.dtb" | 17 | # Yocto device-tree variables |
18 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "psu_uart_1" | ||
19 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "PSU_DDR_0" | ||
20 | YAML_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 |
16 | YAML_SERIAL_CONSOLE_STDIN ?= "psu_uart_1" | 23 | ATF_CONSOLE_DEFAULT ?= "cadence1" |
17 | YAML_SERIAL_CONSOLE_STDOUT ?= "psu_uart_1" | 24 | TFA_BL33_LOAD ?= "0x8000000" |
18 | 25 | ||
19 | YAML_COMPILER_FLAGS:append = " -DBOARD_SHUTDOWN_PIN=2 -DBOARD_SHUTDOWN_PIN_STATE=0 " | 26 | # Yocto PMUFW variables |
27 | YAML_SERIAL_CONSOLE_STDIN:pn-pmu-firmware ?= "psu_uart_1" | ||
28 | YAML_SERIAL_CONSOLE_STDOUT:pn-pmu-firmware ?= "psu_uart_1" | ||
20 | 29 | ||
21 | # Enable bluetooth and wifi module | 30 | # Yocto FSBL variables |
22 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS:append = " linux-firmware-wl18xx linux-firmware-ti-bt-wl180x" | 31 | YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware ?= "psu_uart_1" |
32 | YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware ?= "psu_uart_1" | ||
33 | |||
34 | # Yocto KERNEL Variables | ||
35 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
36 | UBOOT_LOADADDRESS ?= "0x200000" | ||
37 | |||
38 | # ultra96-zynqmp Serial Console | ||
39 | SERIAL_CONSOLES ?= "115200;ttyPS0" | ||
40 | YAML_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 | ||
45 | require 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. | ||
50 | HDF_MACHINE = "ultra96-zynqmp" | ||
51 | |||
52 | # Ultra96 has 2GB memory only but default zynqmp-generic has QB_MEM set to 4G, Hence set to 2G | ||
53 | QB_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 | ||
60 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ | ||
61 | linux-firmware-wl18xx \ | ||
62 | linux-firmware-ti-bt-wl180x \ | ||
63 | " | ||