public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Peng Fan <b51431@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command
Date: Tue, 16 Jun 2015 09:48:47 +0800	[thread overview]
Message-ID: <20150616014843.GA4315@shlinux2> (raw)
In-Reply-To: <557EF4EF.2000200@denx.de>

Hi All,
On Mon, Jun 15, 2015 at 05:53:19PM +0200, Stefano Babic wrote:
>Hi Peng,
>
>On 15/06/2015 17:17, Fabio Estevam wrote:
>> Hi Peng,
>> 
>> On Sun, Jun 14, 2015 at 6:38 AM, Peng Fan <Peng.Fan@freescale.com> wrote:
>>> Since rom code supports the following commands, add new commands support in
>>> imximage.
>>>
>>> 1. CHECK_BITS_SET 4 [address] [mask bit]
>>>    means:
>>>    while ((*address & mask) != mask);
>>>
>>> 2. CHECK_BITS_CLR 4 [address] [mask bit]
>>>    means:
>>>    while ((*address & ~mask) != 0);
>>>
>>> 2. CLR_BIT 4 [address] [mask bit]
>>>    means:
>>>    *address = *address & ~mask;
>>>
>>> dcd_v2_t is redefined, because there may not be only one write data command,
>>> there may be many different commands like CHECK_BITS_SET, CHECK_BITS_CLR and
>>> CLR_BIT.
>>>
>>> dcd_len is still leaved there, since changing it needs changes for dcd v1.
>>> For v2, we check whether dcd size is larger than MAX_DCD_SIZE_V2, but not
>>> dcd_len.
>>>
>>> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
>> 
>> What about just using SPL mechanism instead?
>
Hi Fabio,
I agree that SPL can give many benifits, but we default not support it.
CHECK_BITS_SET/CLR is supported by i.MX6, but current no user use this feature.
This patch is actually for i.MX7 which needs these command. Since this feature
is also supported by i.MX6, I make it a single patch, but not with i.MX7 patch
set.
As Otavio said, we should make it complete, since not everyone use SPL.
>
>Thanks, Fabio. I can only join to your proposal.
Hi Stefano,
I hope you can review this patch. I agree Otavio's idea to make feature complete,
and future i.MX7 needs this feature.
>
>Best regards,
>Stefano Babic
>
>-- 
>=====================================================================
>DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
>=====================================================================

Regards,
Peng.
-- 

  reply	other threads:[~2015-06-16  1:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-14  9:38 [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command Peng Fan
2015-06-15 15:17 ` Fabio Estevam
2015-06-15 15:20   ` Otavio Salvador
2015-06-15 15:26     ` Fabio Estevam
2015-06-15 17:55     ` Chris Kuethe
2015-06-15 17:58       ` Fabio Estevam
2015-06-15 15:53   ` Stefano Babic
2015-06-16  1:48     ` Peng Fan [this message]
2015-06-16 11:30       ` Stefano Babic
2015-06-28 11:00 ` Stefano Babic
2015-06-30  8:02   ` Peng Fan
2015-07-07 20:02     ` Nitin Garg
2015-07-08 13:16     ` Stefano Babic

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=20150616014843.GA4315@shlinux2 \
    --to=b51431@freescale.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox