From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Fri, 29 Mar 2019 13:23:08 +0100 Subject: [U-Boot] [RFC v2 1/2] zynqmp: add minimal include files to build a pm_cfg_obj.c In-Reply-To: <8e59d6d9-7cec-2921-0518-ba26c57d26f8@xilinx.com> References: <20190321154857.29892-1-luca@lucaceresoli.net> <20190321154857.29892-2-luca@lucaceresoli.net> <8e59d6d9-7cec-2921-0518-ba26c57d26f8@xilinx.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Michal, On 27/03/19 16:10, Michal Simek wrote: > On 21. 03. 19 16:48, Luca Ceresoli wrote: >> A following commit will allow U-Boot to pass a configuration object to >> the ZynqMP PMU firmware. This configuration object is generated by >> Xilinx tools in the form of a C file (pm_cfg_obj.c), which #includes a >> few headers with constants definitions. >> >> In order to allow pm_cfg_obj.c to build, include in U-Boot a minimal >> version of those headers files: >> >> - pm_defs: a copy of [0], reduced to remove unneeded values >> - pmu_global.h: empty file, it is included but not really needed >> - xil_types.h: just includes common.h which has all the needed types >> >> [0] https://github.com/Xilinx/embeddedsw/blob/xilinx-v2018.3/lib/sw_services/xilpm/src/common/pm_defs.h >> >> Signed-off-by: Luca Ceresoli >> --- >> board/xilinx/zynqmp/pm_defs.h | 254 +++++++++++++++++++++++++++++++ >> board/xilinx/zynqmp/pmu_global.h | 0 >> board/xilinx/zynqmp/xil_types.h | 1 + >> 3 files changed, 255 insertions(+) >> create mode 100644 board/xilinx/zynqmp/pm_defs.h >> create mode 100644 board/xilinx/zynqmp/pmu_global.h >> create mode 100644 board/xilinx/zynqmp/xil_types.h [...] > > I found one version of this file with GPL license. Of pm_defs.h? Interesting, where can I find it? > But even that > I think this should be taken as blob and compiled/generated out of > u-boot source code. Still pm_cfg_obj.c has no GPL license in it. Yes, sure. But still we need a pm_defs.h if we want to obtain a blob out of a Xilinx-generated pm_cfg_obj.c, so the GPL'ed file you mentioned would be useful. -- Luca