All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
To: Fabio Estevam <festevam@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>, Marek Vasut <marex@denx.de>,
	Stefano Babic <sbabic@denx.de>,  Peng Fan <peng.fan@nxp.com>,
	U-Boot-Denx <u-boot@lists.denx.de>,
	Adam Ford <aford173@gmail.com>
Subject: Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE
Date: Thu, 21 Apr 2022 18:34:26 +0200	[thread overview]
Message-ID: <CAOf5uwkt9UbV1Fo+A9YzTQ5fo220Hp3vAHfZ+9Lc=HbY1Rquxg@mail.gmail.com> (raw)
In-Reply-To: <e8107ccdcba5333e82349f0c0e7ed8e2@denx.de>

Hi Fabio

On Thu, Apr 21, 2022 at 6:19 PM Fabio Estevam <festevam@denx.de> wrote:
>
> Hi Michael,
>
> On 21/04/2022 11:34, Michael Nazzareno Trimarchi wrote:
>
> > You need only add USB_ case in MMC and NAND
> > #ifdef CONFIG_ENV_IS_IN_NAND
> >         /* add */
> >         case USB_BOOT:
> >         case NAND_BOOT:
> >                 env_loc = ENVL_NAND;
> >                 break;
> > #endif
> > #ifdef CONFIG_ENV_IS_IN_MMC
> >         /* add */
> >         case USB_BOOT:
> >         case SD1_BOOT:
> >         case SD2_BOOT:
> >         case SD3_BOOT:
> >         case MMC1_BOOT:
> >         case MMC2_BOOT:
> >         case MMC3_BOOT:
> >                 env_loc =  ENVL_MMC;
> >                 break;
> > #endif
>
> Your suggestion works, thanks.
>
> I will prepare v2.

That function should drop. There is not other architecture that does
it. What about:

register_enviroment_hook()
deregister_enviroment_hook()

This can replace the one default with board/arch etc

Michael

>
> Thanks,
>
> Fabio Estevam
> --
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-60 Fax: (+49)-8142-66989-80 Email:
> festevam@denx.de



-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@amarulasolutions.com
www.amarulasolutions.com

  reply	other threads:[~2022-04-21 16:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20 21:07 [PATCH 1/2] imx8mn_ddr4_evk: Add USB Mass Storage support Fabio Estevam
2022-04-20 21:07 ` [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE Fabio Estevam
2022-04-20 21:42   ` Marek Vasut
2022-04-20 22:03     ` Fabio Estevam
2022-04-20 22:15       ` Marek Vasut
2022-04-21 14:17         ` Fabio Estevam
2022-04-21 14:34           ` Michael Nazzareno Trimarchi
2022-04-21 16:18             ` Fabio Estevam
2022-04-21 16:34               ` Michael Nazzareno Trimarchi [this message]
2022-04-21 16:47                 ` Fabio Estevam
2022-04-21 16:51                   ` Adam Ford
2022-04-21 17:01                     ` Michael Nazzareno Trimarchi
2022-04-21 17:03                       ` Fabio Estevam
2022-04-21 17:10                         ` Michael Nazzareno Trimarchi
2022-04-21 17:13                           ` Fabio Estevam
2022-04-21 14:38           ` Marek Vasut

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='CAOf5uwkt9UbV1Fo+A9YzTQ5fo220Hp3vAHfZ+9Lc=HbY1Rquxg@mail.gmail.com' \
    --to=michael@amarulasolutions.com \
    --cc=aford173@gmail.com \
    --cc=festevam@denx.de \
    --cc=festevam@gmail.com \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --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.