mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: ide: Separate the non-command code into its own file
At present the IDE command code includes both the command-processing code and the core IDE functions and data structures. Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly. With this commit: - Most CONFIG option are referenced from the non-command code - The concept of a 'current IDE device' is confined to the command code This will make it easier to convert this code to driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -134,6 +134,7 @@ obj-y += dlmalloc.o
|
|||||||
ifdef CONFIG_SYS_MALLOC_F_LEN
|
ifdef CONFIG_SYS_MALLOC_F_LEN
|
||||||
obj-y += malloc_simple.o
|
obj-y += malloc_simple.o
|
||||||
endif
|
endif
|
||||||
|
obj-$(CONFIG_CMD_IDE) += ide.o
|
||||||
obj-y += image.o
|
obj-y += image.o
|
||||||
obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
|
obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
|
||||||
obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o
|
obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o
|
||||||
|
1206
common/ide.c
Normal file
1206
common/ide.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user