u-boot-brain/drivers/core
Simon Glass ab933d8026 dm: core: Create a struct for device runtime info
At present when driver model needs to change a device it simply updates
the struct udevice structure. But with of-platdata-inst most of the fields
are not modified at runtime. In fact, typically only the flags need to
change.

For systems running SPL from read-only memory it is convenient to separate
out the runtime information, so that the devices don't need to be copied
before being used.

Create a new udevice_rt table, similar to the existing driver_rt. For now
it just holds the flags, although they are not used in this patch.

Add a new Kconfig for the driver_rt data, since this is not needed when
of-platdata-inst is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2021-03-26 17:03:09 +13:00
..
acpi.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
device-remove.c Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
device.c dm: Rename device_get_by_driver_info_idx() 2021-03-26 17:03:08 +13:00
devres.c dm: core: Access device flags through functions 2021-01-05 12:24:41 -07:00
dump.c dm: core: Access device flags through functions 2021-01-05 12:24:41 -07:00
fdtaddr.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig x86: Move INTEL_ACPIGEN to arch/x86 2021-03-09 09:42:12 +08:00
lists.c dm: core: Add logging when lists_bind_fdt() fails 2021-01-05 12:24:41 -07:00
Makefile dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
of_access.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
of_addr.c dm: error handling dev_get_dma_range() 2021-03-22 19:23:26 +13:00
of_extra.c dm: core: Update ofnode_read_fmap_entry() to read hashes 2021-01-30 14:25:42 -07:00
ofnode.c dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
read.c dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
regmap.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
root.c dm: core: Create a struct for device runtime info 2021-03-26 17:03:09 +13:00
simple-bus.c dm: core: Move priv/plat structs for simple_bus to headers 2021-01-05 12:24:41 -07:00
simple-pm-bus.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
syscon-uclass.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
uclass.c dm: core: Drop uclass_find_device_by_phandle() with of-platdata 2021-03-26 17:03:08 +13:00
util.c dm: core: Allow dm_warn() to be used in SPL 2020-10-29 14:42:17 -06:00