u-boot-brain/arch/powerpc/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
..
74xx_7xx PowerPC: merge commonly-defined flags 2013-12-13 09:17:32 -05:00
mpc5xx powerpc: mpc5xx: remove redundant CONFIG_5xx definition 2014-01-24 16:59:08 -05:00
mpc5xxx usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
mpc8xx stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
mpc8xxx powerpc/mpc85xx: Added B4460 support 2014-05-16 16:24:26 -05:00
mpc83xx mpc8313, bootcount: mpc8313 has no qe muram 2014-04-23 19:07:45 -05:00
mpc85xx powerpc/mpc85xx: Add workaround to enable TDM on T1040 2014-06-05 13:45:07 -07:00
mpc86xx powerpc/mpc86xx: Fix boot_flag for calling board_init_f() 2014-05-13 08:31:22 -07:00
mpc512x stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
mpc824x mpc8xx: remove fads board support 2014-07-07 19:43:02 -04:00
mpc8260 powerpc: mpc8260ads: remove orphan board 2014-05-30 14:03:24 -04:00
ppc4xx blackfin, powerpc: remove redundant definitions of ARRAY_SIZE 2014-07-07 19:47:12 -04:00
Makefile Makefile: Select objects by CONFIG_ rather than $(ARCH) or $(CPU) 2013-12-16 08:59:42 -05:00