mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Christian Hemp <c.hemp@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] imx-bbu-nand-fcb: add support for imx6ull
Date: Mon, 22 May 2017 12:18:07 +0200	[thread overview]
Message-ID: <20170522101807.bzkhfmb3lyzoys4u@pengutronix.de> (raw)
In-Reply-To: <1495202557-24290-1-git-send-email-c.hemp@phytec.de>

On Fri, May 19, 2017 at 04:02:37PM +0200, Christian Hemp wrote:
> The i.MX 6ull secures the fcb with bch 40. This is identical to i.MX 6ul.
> 
> Signed-off-by: Christian Hemp <c.hemp@phytec.de>
> ---
>  common/imx-bbu-nand-fcb.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
> index 5d3d3f7..7218c5e 100644
> --- a/common/imx-bbu-nand-fcb.c
> +++ b/common/imx-bbu-nand-fcb.c
> @@ -441,7 +441,7 @@ static int read_fcb(struct mtd_info *mtd, int num, struct fcb_block **retfcb)
>  		goto err;
>  	}
>  
> -	if (cpu_is_mx6ul())
> +	if (cpu_is_mx6ul() || cpu_is_mx6ull())
>  		fcb = read_fcb_bch(rawpage, 40);
>  	else
>  		fcb = read_fcb_hamming_13_8(rawpage);
> @@ -899,8 +899,8 @@ static int imx_bbu_write_fcbs_dbbts(struct mtd_info *mtd, struct fcb_block *fcb)
>  
>  	fcb_raw_page = xzalloc(mtd->writesize + mtd->oobsize);
>  
> -	if (cpu_is_mx6ul()) {
> -		/* 40 bit BCH, for i.MX6UL */
> +	if (cpu_is_mx6ul() || cpu_is_mx6ull()) {
> +		/* 40 bit BCH, for i.MX6UL(L) */
>  		encode_bch_ecc(fcb_raw_page + 32, fcb, 40);
>  	} else {
>  		memcpy(fcb_raw_page + 12, fcb, sizeof(struct fcb_block));
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2017-05-22 10:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19 14:02 Christian Hemp
2017-05-22 10:18 ` Sascha Hauer [this message]

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=20170522101807.bzkhfmb3lyzoys4u@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=c.hemp@phytec.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