All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Heiko Schocher <hs@nabladev.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Adrian Freihofer <adrian.freihofer@siemens.com>,
	Heiko Schocher <hs@nabladev.com>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	Stefano Babic <sbabic@nabladev.com>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2 2/2] arch: imx8qxp: Override weak fb_mmc_get_boot_offset function
Date: Tue, 17 Feb 2026 10:55:53 +0100	[thread overview]
Message-ID: <87jywbk82e.fsf@kernel.org> (raw)
In-Reply-To: <20260210054345.126651-3-hs@nabladev.com>

Hi Heiko,

On Tue, Feb 10, 2026 at 06:43, Heiko Schocher <hs@nabladev.com> wrote:

> From: Adrian Freihofer <adrian.freihofer@siemens.com>
>
> Add IMX8QXP SoCs specific implementation of fb_mmc_get_boot_offset()
>
> This is needed as bootloader offset is different dependent on SoC
> revision!
>
> For revision B0 the bootloader starts at 32k offset. On offset
> 0x0 the bootloaders environment is stored.
>
> On C0 revisions of the SoC bootloader image starts at offset 0x0
>
> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> Signed-off-by: Heiko Schocher <hs@nabladev.com>
> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>

Peng did provide some review feedback here:
https://lore.kernel.org/all/aXbHDnU+SpgnEt+Q@shlinux89/

I have not seen a response to that. Could you please respond there why
you did not apply his suggestion?

>
> ---
>
> Changes in v2:
> - added Reviewed-by from Mattijs
>
>  arch/arm/mach-imx/imx8/cpu.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
> index 0e112af661c..27c431881b0 100644
> --- a/arch/arm/mach-imx/imx8/cpu.c
> +++ b/arch/arm/mach-imx/imx8/cpu.c
> @@ -899,3 +899,24 @@ bool m4_parts_booted(void)
>  
>  	return false;
>  }
> +
> +#ifdef CONFIG_IMX8QXP
> +#include <blk.h>
> +
> +/*
> + * On B0 revision SoCs the bootloader is on 32k offset
> + * and at offset 0x0 is the U-Boot Environment stored
> + *
> + * So we cannot flash bootloader images to offset 0x0
> + *
> + * On C0 revisions of the SoC bootloader image starts
> + * at offset 0x0 ...
> + */
> +lbaint_t fb_mmc_get_boot_offset(void)
> +{
> +	if ((get_cpu_rev() & 0xF) == CHIP_REV_C)
> +		return 0;
> +
> +	return 0x40;
> +}
> +#endif
> -- 
> 2.20.1

  reply	other threads:[~2026-02-17  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10  5:43 [PATCH v2 0/2] fastboot: mmc: fix bootloader offset Heiko Schocher
2026-02-10  5:43 ` [PATCH v2 1/2] fastboot: mmc: make boot partition offset configurable Heiko Schocher
2026-02-10  5:43 ` [PATCH v2 2/2] arch: imx8qxp: Override weak fb_mmc_get_boot_offset function Heiko Schocher
2026-02-17  9:55   ` Mattijs Korpershoek [this message]
2026-02-17 10:12     ` Heiko Schocher

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=87jywbk82e.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=adrian.freihofer@siemens.com \
    --cc=festevam@gmail.com \
    --cc=hs@nabladev.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=sbabic@nabladev.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /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.