• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisión4fd46888bc4e97f259e455899b151c3c888a5ffc (tree)
Tiempo2016-03-20 23:10:22
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

SPL: PCI / IDE support

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

Cambiar Resumen

Diferencia incremental

--- a/common/Makefile
+++ b/common/Makefile
@@ -208,6 +208,9 @@ endif
208208 ifdef CONFIG_SPL_SATA_SUPPORT
209209 obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
210210 endif
211+ifdef CONFIG_SPL_IDE_SUPPORT
212+obj-$(CONFIG_CMD_IDE) += cmd_ide.o
213+endif
211214 ifneq ($(CONFIG_SPL_NET_SUPPORT),y)
212215 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
213216 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
@@ -220,8 +223,9 @@ endif
220223 endif
221224 # core command
222225 obj-y += cmd_nvedit.o
226+obj-y += cmd_disk.o
223227 #environment
224-obj-y += env_common.o
228+obj-y += env_common.o env_flags.o env_attr.o env_callback.o
225229 #others
226230 ifdef CONFIG_DDR_SPD
227231 SPD := y
--- a/common/spl/Makefile
+++ b/common/spl/Makefile
@@ -19,4 +19,5 @@ obj-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o
1919 obj-$(CONFIG_SPL_USB_SUPPORT) += spl_usb.o
2020 obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o
2121 obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o
22+obj-$(CONFIG_SPL_IDE_SUPPORT) += spl_ide.o
2223 endif
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -215,6 +215,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
215215 spl_sata_load_image();
216216 break;
217217 #endif
218+#ifdef CONFIG_SPL_IDE_SUPPORT
219+ case BOOT_DEVICE_IDE:
220+ spl_ide_load_image();
221+ break;
222+#endif
218223 default:
219224 debug("SPL: Un-supported Boot Device\n");
220225 hang();
--- a/include/spl.h
+++ b/include/spl.h
@@ -68,6 +68,9 @@ void spl_usb_load_image(void);
6868 /* SATA SPL functions */
6969 void spl_sata_load_image(void);
7070
71+/* IDE SPL functions */
72+void spl_ide_load_image(void);
73+
7174 /* SPL FAT image functions */
7275 int spl_load_image_fat(block_dev_desc_t *block_dev, int partition, const char *filename);
7376 int spl_load_image_fat_os(block_dev_desc_t *block_dev, int partition);
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -80,7 +80,6 @@ head-y := $(START_PATH)/start.o
8080 head-$(CONFIG_X86) += $(START_PATH)/start16.o $(START_PATH)/resetvec.o
8181 head-$(CONFIG_4xx) += $(START_PATH)/resetvec.o
8282 head-$(CONFIG_MPC85xx) += $(START_PATH)/resetvec.o
83-
8483 libs-y += arch/$(ARCH)/lib/
8584
8685 libs-y += $(CPUDIR)/
@@ -119,6 +118,8 @@ libs-$(CONFIG_SPL_WATCHDOG_SUPPORT) += drivers/watchdog/
119118 libs-$(CONFIG_SPL_USB_HOST_SUPPORT) += drivers/usb/host/
120119 libs-$(CONFIG_OMAP_USB_PHY) += drivers/usb/phy/
121120 libs-$(CONFIG_SPL_SATA_SUPPORT) += drivers/block/
121+libs-$(CONFIG_SPL_IDE_SUPPORT) += drivers/block/
122+libs-$(CONFIG_SPL_PCI_SUPPORT) += drivers/pci/
122123
123124 ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
124125 libs-y += arch/$(ARCH)/imx-common/
@@ -147,7 +148,6 @@ ifdef CONFIG_SPL_LDSCRIPT
147148 # need to strip off double quotes
148149 LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
149150 endif
150-
151151 ifeq ($(wildcard $(LDSCRIPT)),)
152152 LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-spl.lds
153153 endif