From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 3 Sep 2019 22:34:08 +0200 Subject: [U-Boot] [PATCH] spl: mmc: Add option to set eMMC HW boot partition In-Reply-To: <08aee906-8019-0019-cf50-a6e7af66e976@denx.de> References: <20190903141650.5117-1-lukma@denx.de> <20190903174910.21ae166d@jawa> <08aee906-8019-0019-cf50-a6e7af66e976@denx.de> Message-ID: <20190903223408.360e4310@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Marek, > On 9/3/19 5:49 PM, Lukasz Majewski wrote: > > Hi M=C3=A5ns, Marek, > > =20 > >> Marek Vasut writes: > >> =20 > >>> On 9/3/19 4:16 PM, Lukasz Majewski wrote: =20 > >>>> From: Mans Rullgard > >>>> > >>>> This change allows setting pre-defined eMMC boot partition for > >>>> SPL eMMC booting. It is necessary in the case when one wants to > >>>> boot (through falcon boot) from eMMC after loading SPL from other > >>>> memory (like SPI-NOR). > >>>> > >>>> Signed-off-by: Mans Rullgard > >>>> [lukma: Edit the commit message] > >>>> Signed-off-by: Lukasz Majewski > >>>> Acked-by: Andreas Dannenberg =20 > >>> > >>> Would it be better if this came from /chosen node in DT ? =20 > >> > >> This patch was made for an imx28 based board. Fitting DT support > >> into SPL on that chip won't be easy. =20 > >=20 > > Unfortunately, on purpose the DT support for SPL on this board is > > disabled. > >=20 > > This is the case where the only eligible option is to use > > OF_PLATDATA, to benefit from DM drivers, but also to keep the size > > as small as possible. > >=20 > > (Please refer to xea board support patches for more details). =20 >=20 > Hm, then shall we use platdata ?=20 Yes, correct. The OF_PLATDATA allows you to use DM/DTS converted driver with platform data encoded in the C structures. For example such patch adds support for OF_PLATDATA to DM/DTS driver: https://patchwork.ozlabs.org/patch/1148906/ > I don't think that fits common code > like this either. Please see above link. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: