
21 Aug
2019
21 Aug
'19
11:45 a.m.
On Wed, Aug 21, 2019 at 3:26 PM Andy Shevchenko andy.shevchenko@gmail.com wrote:
On Wed, Aug 21, 2019 at 3:43 AM Park, Aiden aiden.park@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