[U-Boot] [PATCH] serial: ns16550: Add register shift variable

Andy Shevchenko andy.shevchenko at gmail.com
Tue Jul 17 21:46:04 UTC 2018


On Wed, Jul 18, 2018 at 12:30 AM, Adam Ford <aford173 at gmail.com> wrote:
> On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko
> <andy.shevchenko at gmail.com> wrote:

>> https://elixir.bootlin.com/linux/v4.18-rc5/source/drivers/tty/serial/8250/8250_omap.c

> Can we omap2+ users patch the 8250_omap.c code in Linux to make use of
> the reg-shift, then do the same from u-boot so they are in sync and
> clean out any #defines that could be replaced by the device tree?

It's possible, but it doesn't mean you now fully on DT, b/c Linux must
support old DTBs as I already told in this thread.

So, the code in the driver will look like

ret = of_property_read_u32(..., &reg_shift);
if (ret)
 reg_shift = 2;

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list