public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spl: mmc: Add option to set eMMC HW boot partition
Date: Tue, 3 Sep 2019 22:34:08 +0200	[thread overview]
Message-ID: <20190903223408.360e4310@jawa> (raw)
In-Reply-To: <08aee906-8019-0019-cf50-a6e7af66e976@denx.de>

Hi Marek,

> On 9/3/19 5:49 PM, Lukasz Majewski wrote:
> > Hi MÃ¥ns, Marek,
> >   
> >> Marek Vasut <marex@denx.de> writes:
> >>  
> >>> On 9/3/19 4:16 PM, Lukasz Majewski wrote:    
> >>>> From: Mans Rullgard <mans@mansr.com>
> >>>>
> >>>> 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 <mans@mansr.com>
> >>>> [lukma: Edit the commit message]
> >>>> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> >>>> Acked-by: Andreas Dannenberg <dannenberg@ti.com>    
> >>>
> >>> Would it be better if this came from /chosen node in DT ?    
> >>
> >> This patch was made for an imx28 based board.  Fitting DT support
> >> into SPL on that chip won't be easy.  
> > 
> > Unfortunately, on purpose the DT support for SPL on this board is
> > disabled.
> > 
> > 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.
> > 
> > (Please refer to xea board support patches for more details).  
> 
> Hm, then shall we use platdata ? 

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: <http://lists.denx.de/pipermail/u-boot/attachments/20190903/fa9297a0/attachment.sig>

  reply	other threads:[~2019-09-03 20:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 14:16 [U-Boot] [PATCH] spl: mmc: Add option to set eMMC HW boot partition Lukasz Majewski
2019-09-03 14:20 ` Marek Vasut
2019-09-03 15:16   ` Måns Rullgård
2019-09-03 15:49     ` Lukasz Majewski
2019-09-03 17:07       ` Marek Vasut
2019-09-03 20:34         ` Lukasz Majewski [this message]
2019-10-09  9:07 ` Lukasz Majewski
2019-10-10 19:55   ` Tom Rini
2019-10-11  2:02     ` Peng Fan
2019-10-12 20:23 ` Tom Rini

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=20190903223408.360e4310@jawa \
    --to=lukma@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox