u-boot-brain/drivers/core
Przemyslaw Marczak 5eaed88028 dm: core: Extend struct udevice by '.uclass_platdata' field.
This commit adds 'uclass_platdata' field to 'struct udevice', which
can be automatically allocated at bind. The allocation size is defined
in 'struct uclass_driver' as 'per_device_platdata_auto_alloc_size'.

New device's flag is added: DM_FLAG_ALLOC_UCLASS_PDATA, which is used
for memory freeing at device unbind method.

As for other udevice's fields, a complementary function is added:
- dev_get_uclass_platdata()

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
2015-04-22 11:03:14 -06:00
..
device-remove.c dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
device.c dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
Kconfig kconfig: remove unneeded dependency on !SPL_BUILD 2015-02-24 17:06:27 -05:00
lists.c dm: core: Rename driver data function to dev_get_driver_data() 2015-04-18 11:11:19 -06:00
Makefile dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
root.c dm: Add support for all targets which requires MANUAL_RELOC 2015-02-12 15:17:29 -07:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -06:00
uclass.c dm: core: add internal functions for getting the device without probe 2015-04-22 11:03:14 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00