u-boot-brain/drivers/serial
Simon Glass 709ea543b9 stdio: Pass device pointer to stdio methods
At present stdio device functions do not get any clue as to which stdio
device is being acted on. Some implementations go to great lengths to work
around this, such as defining a whole separate set of functions for each
possible device.

For driver model we need to associate a stdio_dev with a device. It doesn't
seem possible to continue with this work-around approach.

Instead, add a stdio_dev pointer to each of the stdio member functions.

Note: The serial drivers have the same problem, but it is not strictly
necessary to fix that to get driver model running. Also, if we convert
serial over to driver model the problem will go away.

Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.

22: stdio: Pass device pointer to stdio methods
       arm: (for 2/2 boards)  all +244.0  bss -4.0  text +248.0
   powerpc: (for 1/1 boards)  all +428.0  text +428.0

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2014-07-23 14:07:23 +01:00
..
altera_jtag_uart.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
altera_uart.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
arm_dcc.c serial: arm_dcc: Convert to use default_serial_puts 2013-08-19 09:44:28 -04:00
atmel_usart.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
atmel_usart.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lpc32xx_hsuart.c serial: lpc32xx: send CR before LF 2013-12-13 09:14:34 -05:00
Makefile Merge branch 'u-boot-pxa/master' into 'u-boot-arm/master' 2014-02-19 07:15:01 +01:00
mcfuart.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxs_auart.c serial: mxs_auart: Staticize local functions 2013-11-08 15:25:13 -05:00
ns16550.c serial: nsl16550: add hw flow control support 2014-05-12 15:19:45 -04:00
opencores_yanu.c serial: opencores_yanu: Avoid duplicate oc_serial_setbrg() implementation 2014-02-11 15:49:19 +08:00
sandbox.c sandbox: Allow Ctrl-C to work in sandbox 2014-03-17 20:05:49 -06:00
serial_arc.c serial: arc: Convert to use default_serial_puts 2014-02-21 09:50:12 -05:00
serial_bfin.c blackfin: Move blackfin serial driver out of blackfin arch folder. 2013-05-13 16:30:26 +08:00
serial_imx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_ks8695.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_lpuart.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_max3100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_mxc.c serial_mxc: disable new features of autobaud detection 2014-05-28 17:37:47 +02:00
serial_ns16550.c serial: ns16550: use a const variable instead of macro 2014-07-22 07:44:25 -04:00
serial_pl01x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_pl01x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_pxa.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_s3c24x0.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_s5p.c serial: s5p: set automatically clears after resetting Rx FIFO 2014-02-05 16:26:09 +09:00
serial_sa1100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial_sh.c serial: sh: Add support R8A7790 2013-10-17 09:43:36 +09:00
serial_sh.h serial_sh: add support for SH7753 2013-12-18 16:50:00 +09:00
serial_xuartlite.c serial: uartlite: Reset RX/TX in init 2014-02-04 16:48:57 +01:00
serial_zynq.c serial: zynq: Fix typo in suffix function name 2014-05-06 13:47:42 +02:00
serial.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
usbtty.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
usbtty.h usb: mv_udc: Rename to ci_udc 2014-02-06 04:48:15 +01:00