• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiona4dd6c6b629659db27306737d237d23f123854b5 (tree)
Zeit2016-04-17 18:04:09
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

SPL: PCI / IDE support

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Ändern Zusammenfassung

Diff

--- a/common/Makefile
+++ b/common/Makefile
@@ -112,8 +112,9 @@ obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
112112 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
113113 endif
114114 endif
115+obj-y += cmd_disk.o
115116 #environment
116-obj-y += env_common.o
117+obj-y += env_common.o env_flags.o env_attr.o env_callback.o
117118 #others
118119 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
119120 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
--- a/common/spl/Makefile
+++ b/common/spl/Makefile
@@ -21,4 +21,5 @@ obj-$(CONFIG_SPL_USB_SUPPORT) += spl_usb.o
2121 obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o
2222 obj-$(CONFIG_SPL_EXT_SUPPORT) += spl_ext.o
2323 obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o
24+obj-$(CONFIG_SPL_IDE_SUPPORT) += spl_ide.o
2425 endif
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -330,6 +330,11 @@ static int spl_load_image(u32 boot_device)
330330 case BOOT_DEVICE_BOARD:
331331 return spl_board_load_image();
332332 #endif
333+#ifdef CONFIG_SPL_IDE_SUPPORT
334+ case BOOT_DEVICE_IDE:
335+ spl_ide_load_image();
336+ break;
337+#endif
333338 default:
334339 #if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
335340 puts("SPL: Unsupported Boot Device!\n");
--- a/include/spl.h
+++ b/include/spl.h
@@ -89,6 +89,9 @@ int spl_usb_load_image(void);
8989 /* SATA SPL functions */
9090 int spl_sata_load_image(void);
9191
92+/* IDE SPL functions */
93+void spl_ide_load_image(void);
94+
9295 /* SPL FAT image functions */
9396 int spl_load_image_fat(struct blk_desc *block_dev, int partition,
9497 const char *filename);
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -61,6 +61,8 @@ libs-y += fs/
6161 libs-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/
6262 libs-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/
6363 libs-$(CONFIG_SPL_NET_SUPPORT) += net/
64+libs-$(CONFIG_SPL_IDE_SUPPORT) += drivers/block/
65+libs-$(CONFIG_SPL_PCI_SUPPORT) += drivers/pci/
6466
6567 head-y := $(addprefix $(obj)/,$(head-y))
6668 libs-y := $(addprefix $(obj)/,$(libs-y))
@@ -82,7 +84,6 @@ ifdef CONFIG_SPL_LDSCRIPT
8284 # need to strip off double quotes
8385 LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
8486 endif
85-
8687 ifeq ($(wildcard $(LDSCRIPT)),)
8788 LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-spl.lds
8889 endif