All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Why is ns16550 guarded by !OF_PLATDATA ?
@ 2017-03-16 21:00 Alexandru Gagniuc
  2017-03-22 13:05 ` Simon Glass
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandru Gagniuc @ 2017-03-16 21:00 UTC (permalink / raw)
  To: u-boot

I'm trying to use the ns16550 DM driver in a platform where havind a dtb 
in SPL is not plausible, so we're using platdata.

Now for ns16550 The U_BOOT_DRIVER is guarded by !OF_PLATDATA, so the 
driver is not compiled in SPL. This seems inconsistent with other 
U_BOOT_DRIVERs. This was introduced in the following commit [1]:

* b2927fb dm: serial: ns16550: Update to support of-platdata

The reasoning was that the platdata structure is unknown, but one would 
have to provide a 'struct ns16550_platdata' when using platdata, and 
that is the case with the boards that use this driver with platdata.

Is this a misguided change, or am I missing something deeper? I can 
prepare a patch to resolve this, if this is the consensus.

Alex

[1] https://lists.denx.de/pipermail/u-boot/2016-July/259744.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-13 21:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 21:00 [U-Boot] Why is ns16550 guarded by !OF_PLATDATA ? Alexandru Gagniuc
2017-03-22 13:05 ` Simon Glass
2017-03-27 19:54   ` [U-Boot] [PATCH] serial: ns16550: Link in the DM driver when when using platdata Alexandru Gagniuc
2017-04-01  4:23     ` Simon Glass
2017-04-13 21:16       ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.