[PATCH v5 3/3] serial: 8250_dw: add fractional divisor support
From: andriy.shevchenko@linux.intel.com (Andy Shevchenko)
Date: 2018-07-11 11:31:16
Also in:
linux-serial, lkml
From: andriy.shevchenko@linux.intel.com (Andy Shevchenko)
Date: 2018-07-11 11:31:16
Also in:
linux-serial, lkml
On Wed, 2018-07-11 at 15:11 +0800, Jisheng Zhang wrote:
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Now the preparation is done, it's easy to add the feature support. This patch firstly tries to get the fractional divisor width during probe, then setups dw specific get_divisor() and set_divisor() hook.
You would need to resend entire series as v6. Don't forget to add given tags. But, wait a bit, I would like to check the algo (thanks for C program!). -- Andy Shevchenko [off-list ref] Intel Finland Oy