u-boot-brain/include/dm
Simon Glass a294ead8d2 dm: Use an allocated array for run-time device info
At present we update the driver_info struct with a pointer to the device
that it created (i.e. caused to be bound). This works fine when U-Boot SPL
is stored in read-write memory. But on some platforms, such as Intel
Apollo Lake, it is not possible to update the data memory.

In any case, it is bad form to put this information in a structure that is
in the data region, since it expands the size of the binary.

Create a new driver_rt structure which holds runtime information about
drivers. Update the code to store the device pointer in this instead.
Also update the test check that this works.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-10-29 14:42:18 -06:00
..
platform_data arm: pxa: mmc: add driver model support 2020-06-30 11:13:11 -04:00
acpi.h dm: acpi: Add support for the NHLT table 2020-07-17 14:32:24 +08:00
device_compat.h dm: Don't undefine dev_xxx macros 2020-10-16 09:44:27 -04:00
device-internal.h dm: Use an allocated array for run-time device info 2020-10-29 14:42:18 -06:00
device.h dm: core: fix typo in device.h 2020-10-29 14:42:18 -06:00
devres.h dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
fdtaddr.h dm: core: Use const device for the devfdt...() interface 2020-02-05 19:33:45 -07:00
lists.h dm: Correct pre_reloc_only parameter description in several APIs' comments 2018-11-14 09:16:27 -08:00
of_access.h dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
of_addr.h dm: core: Introduce xxx_translate_dma_address() 2019-07-22 09:21:28 +02:00
of_extra.h dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
of.h dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
ofnode.h dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
pci.h dm: pci: Move pci_get_devfn() into a common file 2019-12-15 08:52:29 +08:00
pinctrl.h pinctrl: Reformat documentation in dm/pinctrl.h 2020-10-08 11:42:36 -04:00
platdata.h dm: Use an allocated array for run-time device info 2020-10-29 14:42:18 -06:00
read.h dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
root.h dm: Correct pre_reloc_only parameter description in several APIs' comments 2018-11-14 09:16:27 -08:00
test.h dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
uclass-id.h drivers: Add a new framework for multiplexer devices 2020-10-28 11:48:32 -04:00
uclass-internal.h dm: core: Correct the return value for uclass_find_first_device() 2019-10-08 13:57:38 +08:00
uclass.h dm: core: improve uclass_get_device_by_phandle_id() description 2020-10-22 11:26:14 -04:00
util.h dm: core: Allow dm_warn() to be used in SPL 2020-10-29 14:42:17 -06:00