All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC v2 1/2] zynqmp: add minimal include files to build a pm_cfg_obj.c
Date: Fri, 29 Mar 2019 13:23:08 +0100	[thread overview]
Message-ID: <d40bfed4-a5c9-f7e7-687b-2703376cd6f9@lucaceresoli.net> (raw)
In-Reply-To: <8e59d6d9-7cec-2921-0518-ba26c57d26f8@xilinx.com>

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 <luca@lucaceresoli.net>
>> ---
>>  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

  reply	other threads:[~2019-03-29 12:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 15:48 [U-Boot] [RFC v2 0/2] arm64: zynqmp: pass a PMUFW config object Luca Ceresoli
2019-03-21 15:48 ` [U-Boot] [RFC v2 1/2] zynqmp: add minimal include files to build a pm_cfg_obj.c Luca Ceresoli
2019-03-27 15:10   ` Michal Simek
2019-03-29 12:23     ` Luca Ceresoli [this message]
2019-03-29 16:47       ` Michal Simek
2019-03-21 15:48 ` [U-Boot] [RFC v2 2/2] arm64: zynqmp: spl: install a PMU firmware config object at runtime Luca Ceresoli
2019-03-27 15:03   ` Michal Simek
2019-03-29 12:22     ` Luca Ceresoli
2019-03-29 16:45       ` Michal Simek
2019-04-03 11:24       ` Mike Looijmans
2019-04-03 11:28         ` Michal Simek
2019-04-03 21:18         ` Luca Ceresoli
2019-04-04  5:38           ` Mike Looijmans
2019-04-04  6:49             ` Michal Simek
2019-04-04  7:52               ` Luca Ceresoli
2019-04-04  7:56                 ` Michal Simek
2019-04-04 10:05                   ` Mike Looijmans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d40bfed4-a5c9-f7e7-687b-2703376cd6f9@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.