Revisión | 4fd46888bc4e97f259e455899b151c3c888a5ffc (tree) |
---|---|
Tiempo | 2016-03-20 23:10:22 |
Autor | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
SPL: PCI / IDE support
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -208,6 +208,9 @@ endif | ||
208 | 208 | ifdef CONFIG_SPL_SATA_SUPPORT |
209 | 209 | obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o |
210 | 210 | endif |
211 | +ifdef CONFIG_SPL_IDE_SUPPORT | |
212 | +obj-$(CONFIG_CMD_IDE) += cmd_ide.o | |
213 | +endif | |
211 | 214 | ifneq ($(CONFIG_SPL_NET_SUPPORT),y) |
212 | 215 | obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o |
213 | 216 | obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o |
@@ -220,8 +223,9 @@ endif | ||
220 | 223 | endif |
221 | 224 | # core command |
222 | 225 | obj-y += cmd_nvedit.o |
226 | +obj-y += cmd_disk.o | |
223 | 227 | #environment |
224 | -obj-y += env_common.o | |
228 | +obj-y += env_common.o env_flags.o env_attr.o env_callback.o | |
225 | 229 | #others |
226 | 230 | ifdef CONFIG_DDR_SPD |
227 | 231 | SPD := y |
@@ -19,4 +19,5 @@ obj-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o | ||
19 | 19 | obj-$(CONFIG_SPL_USB_SUPPORT) += spl_usb.o |
20 | 20 | obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o |
21 | 21 | obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o |
22 | +obj-$(CONFIG_SPL_IDE_SUPPORT) += spl_ide.o | |
22 | 23 | endif |
@@ -215,6 +215,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2) | ||
215 | 215 | spl_sata_load_image(); |
216 | 216 | break; |
217 | 217 | #endif |
218 | +#ifdef CONFIG_SPL_IDE_SUPPORT | |
219 | + case BOOT_DEVICE_IDE: | |
220 | + spl_ide_load_image(); | |
221 | + break; | |
222 | +#endif | |
218 | 223 | default: |
219 | 224 | debug("SPL: Un-supported Boot Device\n"); |
220 | 225 | hang(); |
@@ -68,6 +68,9 @@ void spl_usb_load_image(void); | ||
68 | 68 | /* SATA SPL functions */ |
69 | 69 | void spl_sata_load_image(void); |
70 | 70 | |
71 | +/* IDE SPL functions */ | |
72 | +void spl_ide_load_image(void); | |
73 | + | |
71 | 74 | /* SPL FAT image functions */ |
72 | 75 | int spl_load_image_fat(block_dev_desc_t *block_dev, int partition, const char *filename); |
73 | 76 | int spl_load_image_fat_os(block_dev_desc_t *block_dev, int partition); |
@@ -80,7 +80,6 @@ head-y := $(START_PATH)/start.o | ||
80 | 80 | head-$(CONFIG_X86) += $(START_PATH)/start16.o $(START_PATH)/resetvec.o |
81 | 81 | head-$(CONFIG_4xx) += $(START_PATH)/resetvec.o |
82 | 82 | head-$(CONFIG_MPC85xx) += $(START_PATH)/resetvec.o |
83 | - | |
84 | 83 | libs-y += arch/$(ARCH)/lib/ |
85 | 84 | |
86 | 85 | libs-y += $(CPUDIR)/ |
@@ -119,6 +118,8 @@ libs-$(CONFIG_SPL_WATCHDOG_SUPPORT) += drivers/watchdog/ | ||
119 | 118 | libs-$(CONFIG_SPL_USB_HOST_SUPPORT) += drivers/usb/host/ |
120 | 119 | libs-$(CONFIG_OMAP_USB_PHY) += drivers/usb/phy/ |
121 | 120 | libs-$(CONFIG_SPL_SATA_SUPPORT) += drivers/block/ |
121 | +libs-$(CONFIG_SPL_IDE_SUPPORT) += drivers/block/ | |
122 | +libs-$(CONFIG_SPL_PCI_SUPPORT) += drivers/pci/ | |
122 | 123 | |
123 | 124 | ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) |
124 | 125 | libs-y += arch/$(ARCH)/imx-common/ |
@@ -147,7 +148,6 @@ ifdef CONFIG_SPL_LDSCRIPT | ||
147 | 148 | # need to strip off double quotes |
148 | 149 | LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%)) |
149 | 150 | endif |
150 | - | |
151 | 151 | ifeq ($(wildcard $(LDSCRIPT)),) |
152 | 152 | LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-spl.lds |
153 | 153 | endif |