[U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

Simon Glass sjg at google.com
Mon Apr 2 05:25:10 UTC 2018


Hi Jagan,

On 2 April 2018 at 12:57, Jagan Teki <jagannadh.teki at gmail.com> wrote:
>
> On Fri, Mar 30, 2018 at 4:13 AM, Simon Glass <sjg at google.com> wrote:
> > Hi Jagan,
> >
> > On 28 March 2018 at 02:04, Jagan Teki <jagannadh.teki at gmail.com> wrote:
> >> On Mon, Sep 4, 2017 at 9:57 PM,  <sjg at google.com> wrote:
> >>> Hi Tom,
> >>>
> >>> On 7 August 2017 at 09:39, Tom Rini <trini at konsulko.com> wrote:
> >>>> On Sat, Aug 05, 2017 at 03:45:53PM -0600, Simon Glass wrote:
> >>>>
> >>>>> The CONFIG_BLK conversion involves quite invasive changes in the U-Boot
> >>>>> code, with #ifdefs and different code paths. We should try to move over to
> >>>>> this soon so we can drop the old code.
> >>
> >> I hope this will applicable to SPL too?
> >>
> >> If so, we are having SPL size issues with few Allwinner families, if
> >> enable SPL_DM any suggestions?
> >
> > I don't think we can require BLK for SPL / TPL, or even DM for that
> > matter. We should use it when size permits.
>
> But we can still maintain non-dm code in driver with #ifdef right?
> indeed migration plan is to remove that.

I think for drivers that have to work with SPL and cannot use DM due
to code size, we have to provide a way. But I think over time, this
will fade out, as SoCs have more SRAM. Also with CONFIG_OF_PLATDATA
the penalty is very small.

Regards,
Simon


More information about the U-Boot mailing list