[U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from device tree

Bin Meng bmeng.cn at gmail.com
Wed Aug 21 09:45:25 UTC 2019


On Wed, Aug 21, 2019 at 3:26 PM Andy Shevchenko
<andy.shevchenko at gmail.com> wrote:
>
> On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden <aiden.park at intel.com> wrote:
> >
> > ns16550 can select register access type from device tree.
> > This also allows an inherited serial driver of ns16550 to configure
> > register access type at run-time by overriding ofdata_to_platdata.
> >
>
> Can you elaborate more on this?
>
> For now it looks like a hack due to misunderstanding of the design.

The reg-io-type is not a standard DTS property for 8250
(Documentation/devicetree/bindings/serial/8250.txt) so I guess we may
need refactor the ns16550 codes to support both I/O port and
memory-mapped variants.

Regards,
Bin


More information about the U-Boot mailing list