mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 07:00:46 +09:00
config_distro_bootcmd: Init IDE devices
IDE devices are no longer automatically probed by u-boot, so it should be done by the distro boot command before attempting to boot from IDE (just like scsi and nvme) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
This commit is contained in:
parent
46e765226c
commit
d5e994fc55
@ -229,10 +229,23 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_IDE
|
#ifdef CONFIG_IDE
|
||||||
#define BOOTENV_SHARED_IDE BOOTENV_SHARED_BLKDEV(ide)
|
#define BOOTENV_RUN_IDE_INIT "run ide_init; "
|
||||||
|
#define BOOTENV_SET_IDE_NEED_INIT "setenv ide_need_init; "
|
||||||
|
#define BOOTENV_SHARED_IDE \
|
||||||
|
"ide_init=" \
|
||||||
|
"if ${ide_need_init}; then " \
|
||||||
|
"setenv ide_need_init false; " \
|
||||||
|
"ide reset; " \
|
||||||
|
"fi\0" \
|
||||||
|
\
|
||||||
|
"ide_boot=" \
|
||||||
|
BOOTENV_RUN_IDE_INIT \
|
||||||
|
BOOTENV_SHARED_BLKDEV_BODY(ide)
|
||||||
#define BOOTENV_DEV_IDE BOOTENV_DEV_BLKDEV
|
#define BOOTENV_DEV_IDE BOOTENV_DEV_BLKDEV
|
||||||
#define BOOTENV_DEV_NAME_IDE BOOTENV_DEV_NAME_BLKDEV
|
#define BOOTENV_DEV_NAME_IDE BOOTENV_DEV_NAME_BLKDEV
|
||||||
#else
|
#else
|
||||||
|
#define BOOTENV_RUN_IDE_INIT
|
||||||
|
#define BOOTENV_SET_IDE_NEED_INIT
|
||||||
#define BOOTENV_SHARED_IDE
|
#define BOOTENV_SHARED_IDE
|
||||||
#define BOOTENV_DEV_IDE \
|
#define BOOTENV_DEV_IDE \
|
||||||
BOOT_TARGET_DEVICES_references_IDE_without_CONFIG_IDE
|
BOOT_TARGET_DEVICES_references_IDE_without_CONFIG_IDE
|
||||||
@ -451,6 +464,7 @@
|
|||||||
\
|
\
|
||||||
"distro_bootcmd=" BOOTENV_SET_SCSI_NEED_INIT \
|
"distro_bootcmd=" BOOTENV_SET_SCSI_NEED_INIT \
|
||||||
BOOTENV_SET_NVME_NEED_INIT \
|
BOOTENV_SET_NVME_NEED_INIT \
|
||||||
|
BOOTENV_SET_IDE_NEED_INIT \
|
||||||
"for target in ${boot_targets}; do " \
|
"for target in ${boot_targets}; do " \
|
||||||
"run bootcmd_${target}; " \
|
"run bootcmd_${target}; " \
|
||||||
"done\0"
|
"done\0"
|
||||||
|
Loading…
Reference in New Issue
Block a user