From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Thu, 28 Feb 2019 23:44:31 +0100 Subject: [U-Boot] IMX6 DM_USB / DM_MMC requires OF_CONTROL? In-Reply-To: References: <47c1484b-ab2c-da0d-d3f3-dbf1c81a4294@denx.de> <3baa9dc387a05079fd717b3f4acfc340f1947726.camel@toradex.com> Message-ID: <20190228234431.0d71326e@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tim, > On Thu, Feb 21, 2019 at 6:48 AM Marcel Ziswiler > 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: