]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/zynqmp_pm_cfg_obj_convert.py: fix build with Vivado 2021.x
authorLuca Ceresoli <luca@lucaceresoli.net>
Sat, 12 Feb 2022 12:51:21 +0000 (13:51 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Feb 2022 11:41:00 +0000 (12:41 +0100)
This tool fails with a pm_cfg_obj.c file generated by Vitis 2021.2. This is
because that version of Vitis added the PM_CONFIG_OBJECT_TYPE_BASE that was
not previously generated, thus the script does not implement it.

Reported-by: Neal Frager <nealf@xilinx.com>
[report: https://lists.buildroot.org/pipermail/buildroot/2022-February/636639.html]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Link: https://lore.kernel.org/r/20220212125121.3398547-1-luca@lucaceresoli.net
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tools/zynqmp_pm_cfg_obj_convert.py

index 0a44710e1e14c2f30344d11a4a594b68aaf47604..239991a5263c441a1e5bfc67962e80968f88434a 100755 (executable)
@@ -244,6 +244,8 @@ pm_define = {
 
     'SUSPEND_TIMEOUT'                    : 0xFFFFFFFF,
 
+    'PM_CONFIG_OBJECT_TYPE_BASE'         : 0x1,
+
     'PM_CONFIG_IPI_PSU_CORTEXA53_0_MASK' : 0x00000001,
     'PM_CONFIG_IPI_PSU_CORTEXR5_0_MASK'  : 0x00000100,
     'PM_CONFIG_IPI_PSU_CORTEXR5_1_MASK'  : 0x00000200,