]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: dw: Allow to use a fallback CPR value if not synthesized
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 22 Apr 2022 18:06:10 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:25:47 +0000 (13:25 +0200)
commit0b39550cc8afee9cdbb25a84ca74e1387863b98a
treefefc7f00fe5d8b095f8a0d981675753c5c407727
parent4cc50a5a41f70f6543a290a44741c74fa5634f8b
serial: 8250: dw: Allow to use a fallback CPR value if not synthesized

DW UART controllers can be synthesized without the CPR register.
In this case, allow to the platform information to provide a CPR value.

Co-developed-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220422180615.9098-5-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dwlib.c
drivers/tty/serial/8250/8250_dwlib.h