u-boot/arch/blackfin/cpu
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
..
.gitignore blackfin: Do not generate unused header bootrom-asm-offsets.h 2013-12-06 16:06:51 +08:00
cache.S linkage.h: move from blackfin to common includes 2012-02-12 15:03:26 -05:00
cpu.c blackfin: fix a warning in arch/blackfin/cpu/cpu.c 2013-11-04 16:50:45 +08:00
cpu.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.c blackfin: make name_to_gpio be a weak symbol 2014-04-18 10:42:29 -04:00
init.lds.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
init.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
initcode.c blackfin: remove build warning 2013-12-16 11:38:33 +08:00
initcode.h blackfin: The logic of the BF609 macro is opposite. 2014-02-07 11:18:06 +08:00
interrupt.S Blackfin: set up simple NMI handlers for anomaly 05000219 2010-07-05 04:18:18 -04:00
interrupts.c Timer: Remove reset_timer() for non-Nios2 arches 2011-07-26 14:53:30 +02:00
jtag-console.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
Makefile kbuild: use shorten logs for misc targets 2014-02-25 11:01:29 -05:00
os_log.c blackfin: don't use 'bool' when it causes problems 2013-11-25 10:41:55 -05:00
reset.c blackfin: bf60x: Port blackfin core architecture code to boot on bf60x. 2013-03-04 13:42:06 +08:00
start.S blackfin: init bss early 2014-02-07 11:18:06 +08:00
traps.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
u-boot.lds Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00