u-boot/common/spl
Simon Glass 15a23b6f16 dm: core: Allow marking driver model as dead
On x86 devices we use CAR (Cache-As-RAM) to hold the malloc() region in
SPL, since SDRAM is not set up yet. This means that driver model stores
its tables in this region.

When preparing to jump from SPL to U-Boot proper, we must disable CAR, so
that the CPU can uses the caches normally. This means that driver model
tables become inaccessible. From there until we jump to U-Boot proper, we
must avoid using driver model.

This is only a problem on boards which operate this way, for example
chromebook_link64

Add a flag to indicate that driver model is dead and should not be used.
It can be used in SPL to avoid hanging the machine.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2023-09-22 06:03:46 +08:00
..
Kconfig Kconfigs: Correct default of "0" on hex type entries 2023-08-09 09:21:42 -04:00
Kconfig.nxp global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Kconfig.tpl Kconfigs: Correct default of "0" on hex type entries 2023-08-09 09:21:42 -04:00
Kconfig.vpl vbe: Add Kconfig options for VPL 2022-10-31 11:03:59 -04:00
Makefile common: spl: Add spl NVMe boot support 2023-06-19 17:47:41 -04:00
spl.c dm: core: Allow marking driver model as dead 2023-09-22 06:03:46 +08:00
spl_atf.c Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_blk_fs.c spl: don't assume NVMe partition 1 exists 2023-08-19 04:12:52 +02:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
spl_ext.c spl: ext: Use partition size for mount 2023-06-14 12:56:10 -04:00
spl_fat.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fit.c imx: hab: Simplify the mechanism 2023-06-24 13:47:02 -04:00
spl_legacy.c spl: spl_legacy: Fix spl_end address 2023-07-03 10:20:13 -04:00
spl_mmc.c spl: mmc: Fix check of CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 2023-08-17 16:39:20 -04:00
spl_nand.c global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_* 2022-12-05 16:05:38 -05:00
spl_net.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nor.c spl: spl-nor: return error if no valid image was loaded 2023-06-20 13:02:34 -04:00
spl_nvme.c spl: initialize PCI before booting 2023-07-30 18:53:08 +02:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: opensbi: convert scratch options to config 2022-08-11 18:46:41 +08:00
spl_optee.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_ram.c spl: Tidy up load address in spl_ram 2023-09-19 11:36:26 -04:00
spl_sata.c spl: sata: Rework the loading case it not use IS_ENABLED(...) 2023-01-20 12:27:06 -05:00
spl_sdp.c sdp: Use plain udevice for UDC controller interaction 2023-09-15 23:38:02 +02:00
spl_semihosting.c spl: add FIT support to semihosting boot method 2023-08-14 17:55:53 -04:00
spl_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ubi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00