]> git.baikalelectronics.ru Git - kernel.git/commit
tty/8250_early: Turn serial_in/serial_out into weak symbols.
authorNoam Camus <noamc@ezchip.com>
Fri, 16 Nov 2012 05:03:05 +0000 (07:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 12:39:15 +0000 (04:39 -0800)
commit0767a528e319d01c968f77c479fd5d64a66aa31f
treeb6943bd2984110a9f3dfda8d9f5cddee5d9b0fa4
parent6334c507d0caa41d7cc044c664a55eb61aaf5246
tty/8250_early: Turn serial_in/serial_out into weak symbols.

Allows overriding default methods serial_in/serial_out.

In such platform specific replacement it is possible to use
other regshift, biased register offset, any other manipulation
that is not covered with common default methods.

Overriding default methods may be useful for platforms which got
serial peripheral with registers represented in big endian.
In this situation and assuming that 32 bit operations / alignment
is required then it may be useful to swab words before/after
accessing the serial registers.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_early.c
include/linux/serial_8250.h