diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2023-01-12 15:33:00 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
commit | 84e209dfca2fd72d8ebc44a4c4a9faba5671d159 (patch) | |
tree | 60eb865dcb2e69fbf54764d6727a8d2abbb2a5f4 /meta-xilinx-bsp/conf | |
parent | cb247b9fcabbab39fb1a146e905f1cc4ffe010e7 (diff) | |
download | meta-xilinx-84e209dfca2fd72d8ebc44a4c4a9faba5671d159.tar.gz |
versal: Update machine conf file using gen-machineconf tool
1. Update below versal eval board machine conf file using
gen-machineconf tool by parsing respective xsa.
- vck190-versal
- vck5000-versal
- vmk180-versal
2. Move variables which changes based on xsa before required
inclusion file to handle pre-expansion values.
3. Use use soc variant based generic machine inclusion.
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-bsp/conf')
-rw-r--r-- | meta-xilinx-bsp/conf/machine/vck190-versal.conf | 51 | ||||
-rw-r--r-- | meta-xilinx-bsp/conf/machine/vck5000-versal.conf | 49 | ||||
-rw-r--r-- | meta-xilinx-bsp/conf/machine/vmk180-versal.conf | 49 |
3 files changed, 133 insertions, 16 deletions
diff --git a/meta-xilinx-bsp/conf/machine/vck190-versal.conf b/meta-xilinx-bsp/conf/machine/vck190-versal.conf index 1ebaa889..76b3cf1d 100644 --- a/meta-xilinx-bsp/conf/machine/vck190-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vck190-versal.conf | |||
@@ -1,10 +1,49 @@ | |||
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: vck-versal | 2 | #@NAME: vck190-versal |
3 | ##@DESCRIPTION: Machine support for vck-versal . | 3 | #@DESCRIPTION: Machine configuration for the VCK190 evaluation board. |
4 | 4 | ||
5 | SOC_VARIANT = "ai-core" | 5 | # Compatibility with old BOARD value. |
6 | # TODO - Remove these once removed from petalinux bsp | ||
7 | MACHINEOVERRIDES =. "vck190:" | ||
6 | 8 | ||
7 | require conf/machine/versal-generic.conf | 9 | #### Preamble |
10 | MACHINEOVERRIDES =. "${@['', 'vck190-versal:']['vck190-versal' !='${MACHINE}']}" | ||
11 | #### Regular settings follow | ||
8 | 12 | ||
9 | # Add board compatibility override | 13 | # Variables that changes based on hw design or board specific requirement must be |
10 | MACHINEOVERRIDES .= ":vck190" | 14 | # defined before calling the required inclusion file else pre-expansion value |
15 | # defined in versal-generic.conf will be set. | ||
16 | |||
17 | # Yocto device-tree variables | ||
18 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
19 | YAML_DT_BOARD_FLAGS ?= "{BOARD versal-vck190-reva-x-ebm-01-reva}" | ||
20 | |||
21 | # Yocto arm-trusted-firmware(TF-A) variables | ||
22 | ATF_CONSOLE_DEFAULT ?= "pl011" | ||
23 | TFA_BL33_LOAD ?= "0x8000000" | ||
24 | |||
25 | # Yocto PLM variables | ||
26 | YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
27 | YAML_SERIAL_CONSOLE_STDOUT:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
28 | |||
29 | # Yocto KERNEL Variables | ||
30 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
31 | UBOOT_LOADADDRESS ?= "0x200000" | ||
32 | |||
33 | # vck190-versal Serial Console | ||
34 | SERIAL_CONSOLES ?= "115200;ttyAMA0" | ||
35 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
36 | |||
37 | # Required generic machine inclusion | ||
38 | # VCK190 board uses Versal AI Core device hence use soc variant based generic | ||
39 | # machine inclusion | ||
40 | require conf/machine/versal-ai-core-generic.conf | ||
41 | |||
42 | # This machine conf file uses vck190-versal xsa as reference input. | ||
43 | # User can override with vck190 custom xsa using HDF_BASE and HDF_PATH variables | ||
44 | # from local.conf. | ||
45 | HDF_MACHINE = "vck190-versal" | ||
46 | |||
47 | #### No additional settings should be after the Postamble | ||
48 | #### Postamble | ||
49 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'vck190_versal']['vck190-versal' != '${MACHINE}']}" | ||
diff --git a/meta-xilinx-bsp/conf/machine/vck5000-versal.conf b/meta-xilinx-bsp/conf/machine/vck5000-versal.conf index 52d0ffc5..a80788cc 100644 --- a/meta-xilinx-bsp/conf/machine/vck5000-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vck5000-versal.conf | |||
@@ -1,10 +1,49 @@ | |||
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: vck500-versal | 2 | #@NAME: vck500-versal |
3 | ##@DESCRIPTION: Machine support for vck5000 versal. | 3 | #@DESCRIPTION: Machine configuration for the VCK5000 evaluation board. |
4 | 4 | ||
5 | SOC_VARIANT = "ai-core" | 5 | # Compatibility with old BOARD value. |
6 | # TODO - Remove these once removed from petalinux bsp | ||
7 | MACHINEOVERRIDES =. "vck5000:" | ||
6 | 8 | ||
7 | require conf/machine/versal-generic.conf | 9 | #### Preamble |
10 | MACHINEOVERRIDES =. "${@['', 'vck5000-versal:']['vck5000-versal' !='${MACHINE}']}" | ||
11 | #### Regular settings follow | ||
8 | 12 | ||
9 | # Add board compatibility override | 13 | # Variables that changes based on hw design or board specific requirement must be |
10 | MACHINEOVERRIDES .= ":vck5000" | 14 | # defined before calling the required inclusion file else pre-expansion value |
15 | # defined in versal-generic.conf will be set. | ||
16 | |||
17 | # Yocto device-tree variables | ||
18 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
19 | YAML_DT_BOARD_FLAGS ?= "{BOARD template}" | ||
20 | |||
21 | # Yocto arm-trusted-firmware(TF-A) variables | ||
22 | ATF_CONSOLE_DEFAULT ?= "pl011" | ||
23 | TFA_BL33_LOAD ?= "0x8000000" | ||
24 | |||
25 | # Yocto PLM variables | ||
26 | YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
27 | YAML_SERIAL_CONSOLE_STDOUT:pn-plm-firmware ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
28 | |||
29 | # Yocto KERNEL Variables | ||
30 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
31 | UBOOT_LOADADDRESS ?= "0x200000" | ||
32 | |||
33 | # vck5000-versal Serial Console | ||
34 | SERIAL_CONSOLES ?= "115200;ttyAMA0" | ||
35 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
36 | |||
37 | # Required generic machine inclusion | ||
38 | # VCK5000 board uses Versal AI Core device hence use soc variant based generic | ||
39 | # machine inclusion | ||
40 | require conf/machine/versal-ai-core-generic.conf | ||
41 | |||
42 | # This machine conf file uses vck5000-versal xsa as reference input. | ||
43 | # User can override with vck5000 custom xsa using HDF_BASE and HDF_PATH variables | ||
44 | # from local.conf. | ||
45 | HDF_MACHINE = "vck5000-versal" | ||
46 | |||
47 | #### No additional settings should be after the Postamble | ||
48 | #### Postamble | ||
49 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'vck5000_versal']['vck5000-versal' != '${MACHINE}']}" | ||
diff --git a/meta-xilinx-bsp/conf/machine/vmk180-versal.conf b/meta-xilinx-bsp/conf/machine/vmk180-versal.conf index 29cafa01..077bf0a2 100644 --- a/meta-xilinx-bsp/conf/machine/vmk180-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vmk180-versal.conf | |||
@@ -1,10 +1,49 @@ | |||
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: vmk180-versal | 2 | #@NAME: vmk180-versal |
3 | ##@DESCRIPTION: Machine support for vmk180-versal . | 3 | #@DESCRIPTION: Machine configuration for the VMK180 evaluation board. |
4 | 4 | ||
5 | SOC_VARIANT = "prime" | 5 | # Compatibility with old BOARD value. |
6 | # TODO - Remove these once removed from petalinux bsp | ||
7 | MACHINEOVERRIDES =. "vmk180:" | ||
6 | 8 | ||
7 | require conf/machine/versal-generic.conf | 9 | #### Preamble |
10 | MACHINEOVERRIDES =. "${@['', 'vmk180-versal:']['vmk180-versal' !='${MACHINE}']}" | ||
11 | #### Regular settings follow | ||
8 | 12 | ||
9 | # Add board compatibility override | 13 | # Variables that changes based on hw design or board specific requirement must be |
10 | MACHINEOVERRIDES .= ":vmk180" | 14 | # defined before calling the required inclusion file else pre-expansion value |
15 | # defined in versal-generic.conf will be set. | ||
16 | |||
17 | # Yocto device-tree variables | ||
18 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
19 | YAML_DT_BOARD_FLAGS ?= "{BOARD versal-vmk180-reva-x-ebm-01-reva}" | ||
20 | |||
21 | # Yocto arm-trusted-firmware(TF-A) variables | ||
22 | ATF_CONSOLE_DEFAULT ?= "pl011" | ||
23 | TFA_BL33_LOAD ?= "0x8000000" | ||
24 | |||
25 | # Yocto PLM variables | ||
26 | YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
27 | YAML_SERIAL_CONSOLE_STDOUT:pn-plm-firmware ?= "versal_cips_0_pspmc_0_psv_sbsauart_0" | ||
28 | |||
29 | # Yocto KERNEL Variables | ||
30 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
31 | UBOOT_LOADADDRESS ?= "0x200000" | ||
32 | |||
33 | # vmk180-versal Serial Console | ||
34 | SERIAL_CONSOLES ?= "115200;ttyAMA0" | ||
35 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
36 | |||
37 | # Required generic machine inclusion | ||
38 | # VMK180 board uses Versal Prime device hence use soc variant based generic | ||
39 | # machine inclusion | ||
40 | require conf/machine/versal-prime-generic.conf | ||
41 | |||
42 | # This machine conf file uses vmk180-versal xsa as reference input. | ||
43 | # User can override with vmk180 custom xsa using HDF_BASE and HDF_PATH variables | ||
44 | # from local.conf. | ||
45 | HDF_MACHINE = "vmk180-versal" | ||
46 | |||
47 | #### No additional settings should be after the Postamble | ||
48 | #### Postamble | ||
49 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'vmk180_versal']['vmk180-versal' != '${MACHINE}']}" | ||