From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] IMX6 DM_USB / DM_MMC requires OF_CONTROL?
Date: Thu, 28 Feb 2019 23:44:31 +0100 [thread overview]
Message-ID: <20190228234431.0d71326e@jawa> (raw)
In-Reply-To: <CAJ+vNU2CdeyTayoseFUArOO1n0J8f9NpjfFqaQ_sdmPs9MaUHg@mail.gmail.com>
Hi Tim,
> On Thu, Feb 21, 2019 at 6:48 AM Marcel Ziswiler
> <marcel.ziswiler@toradex.com> wrote:
> >
> > Hi Fabio
> >
> > On Tue, 2019-02-19 at 19:32 +0100, Stefano Babic wrote:
> > > Hi Tim,
> > >
> > > On 19/02/19 19:24, Tim Harvey wrote:
> > > > Greetings,
> > > >
> > > > I'm seeing that I need to switch my IMX6 board support
> > > > (board/gateworks/gw_ventana) over to DM_USB and DM_MMC right
> > > > away (v2019.04) and I notice enabling those fails building as
> > > > it looks like
> > > > these DM drivers expect OF_CONTROL (U-Boot running from a
> > > > device-tree).
> > > > Is that currently true or am I perhaps missing
> > > > something?
> > >
> > > You are completely correct : moving to DM requires to set a DT for
> > > the
> > > board.
> >
> > I don't think that is fully true. There is also the option of using
> > platform data. At least for certain parts of DM that is certainly
> > working (e.g. have a look at colibri_pxa270).
> >
>
> Marcel,
>
> Good point, and IMX boards have used this already as for DM_SERIAL.
> However I don't see this possible yet for IMX (fsl_esdhc.c) DM_MMC...
> one would need to export a platdata struct to
> include/dm/platform_data. I'll have to look into that... I'm sure
> there are many other IMX boards out there that also need to get this
> done and perhaps are not ready to go to OF_CONTROL yet. I did take a
> quick stab at converting my board(s) to OF_CONTROL using
> SPL_MULTI_DTB_FIT and while I'm still not booting the SPL is way too
> large to fit within an IMX6DL cache.
Please look into my recent work for IMX6Q mccmon6 u-boot proper DM/DTS
conversion.
I've also converted the tpc70 board (including SPL).
>
> Thanks,
>
> Tim
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
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/20190228/251b0367/attachment.sig>
next prev parent reply other threads:[~2019-02-28 22:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 18:24 [U-Boot] IMX6 DM_USB / DM_MMC requires OF_CONTROL? Tim Harvey
2019-02-19 18:32 ` Stefano Babic
2019-02-21 14:48 ` Marcel Ziswiler
2019-02-22 17:14 ` Tim Harvey
2019-02-28 22:44 ` Lukasz Majewski [this message]
2019-02-19 18:37 ` Fabio Estevam
2019-02-19 19:11 ` Tim Harvey
2019-02-19 21:58 ` Adam Ford
2019-02-21 0:00 ` Fabio Estevam
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=20190228234431.0d71326e@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