diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2019-05-21 18:06:44 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-07-30 10:20:06 +0200 |
commit | 4f4b56205ec0ad76f001fef19709e9e1014b2e5f (patch) | |
tree | cb88e86b1bf881080a492a5a42f2ce19acb5c571 /disk | |
parent | c28a9cfa4079031edd511746770096a131414642 (diff) |
arm64: zynqmp: add tool to convert PMU config object .c to binary
The recently-added ZYNQMP_SPL_PM_CFG_OBJ_FILE option allows SPL to load a
PMUFW configuration object from a binary blob. However the configuration
object is produced by Xilinx proprietary tools as a C source file and no
tool exists to easily convert it to a binary blob in an embedded Linux
build system for U-Boot to use.
Add a simple Python script to do the conversion.
It is definitely not a complete C language parser, but it is enough to
parse the known patterns generated by Xilinx tools, including:
- defines
- literal integers, optionally with a 'U' suffix
- bitwise OR between them
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'disk')
0 files changed, 0 insertions, 0 deletions