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

2019-08-22 Thread Andy Shevchenko
On Thu, Aug 22, 2019 at 4:32 AM Bin Meng wrote: > On Thu, Aug 22, 2019 at 12:40 AM Park, Aiden wrote: > > Right, this is a just hack. As Bin said, we may need refactor whole codes. > > By the way, do we need to keep current design which selects I/O port or MMIO > > at compile time by defining

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

2019-08-21 Thread Bin Meng
@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from > > device tree > > > > On Wed, Aug 21, 2019 at 3:26 PM Andy Shevchenko > > wrote: > > > > > > On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden > > wrote

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

2019-08-21 Thread Park, Aiden
Hi Andy/Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Wednesday, August 21, 2019 2:45 AM > To: Andy Shevchenko > Cc: Park, Aiden ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 1/1] serial: ns16550: Read reg-io-type from > de

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

2019-08-21 Thread Bin Meng
On Wed, Aug 21, 2019 at 3:26 PM Andy Shevchenko wrote: > > On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden 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

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

2019-08-21 Thread Andy Shevchenko
On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden 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

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

2019-08-20 Thread Park, Aiden
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. Signed-off-by: Aiden Park --- drivers/serial/ns16550.c | 63 +++-