Revision | a4dd6c6b629659db27306737d237d23f123854b5 (tree) |
---|---|
Zeit | 2016-04-17 18:04:09 |
Autor | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
SPL: PCI / IDE support
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -112,8 +112,9 @@ obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o | ||
112 | 112 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
113 | 113 | endif |
114 | 114 | endif |
115 | +obj-y += cmd_disk.o | |
115 | 116 | #environment |
116 | -obj-y += env_common.o | |
117 | +obj-y += env_common.o env_flags.o env_attr.o env_callback.o | |
117 | 118 | #others |
118 | 119 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
119 | 120 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
@@ -21,4 +21,5 @@ obj-$(CONFIG_SPL_USB_SUPPORT) += spl_usb.o | ||
21 | 21 | obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o |
22 | 22 | obj-$(CONFIG_SPL_EXT_SUPPORT) += spl_ext.o |
23 | 23 | obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o |
24 | +obj-$(CONFIG_SPL_IDE_SUPPORT) += spl_ide.o | |
24 | 25 | endif |
@@ -330,6 +330,11 @@ static int spl_load_image(u32 boot_device) | ||
330 | 330 | case BOOT_DEVICE_BOARD: |
331 | 331 | return spl_board_load_image(); |
332 | 332 | #endif |
333 | +#ifdef CONFIG_SPL_IDE_SUPPORT | |
334 | + case BOOT_DEVICE_IDE: | |
335 | + spl_ide_load_image(); | |
336 | + break; | |
337 | +#endif | |
333 | 338 | default: |
334 | 339 | #if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) |
335 | 340 | puts("SPL: Unsupported Boot Device!\n"); |
@@ -89,6 +89,9 @@ int spl_usb_load_image(void); | ||
89 | 89 | /* SATA SPL functions */ |
90 | 90 | int spl_sata_load_image(void); |
91 | 91 | |
92 | +/* IDE SPL functions */ | |
93 | +void spl_ide_load_image(void); | |
94 | + | |
92 | 95 | /* SPL FAT image functions */ |
93 | 96 | int spl_load_image_fat(struct blk_desc *block_dev, int partition, |
94 | 97 | const char *filename); |
@@ -61,6 +61,8 @@ libs-y += fs/ | ||
61 | 61 | libs-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/ |
62 | 62 | libs-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/ |
63 | 63 | libs-$(CONFIG_SPL_NET_SUPPORT) += net/ |
64 | +libs-$(CONFIG_SPL_IDE_SUPPORT) += drivers/block/ | |
65 | +libs-$(CONFIG_SPL_PCI_SUPPORT) += drivers/pci/ | |
64 | 66 | |
65 | 67 | head-y := $(addprefix $(obj)/,$(head-y)) |
66 | 68 | libs-y := $(addprefix $(obj)/,$(libs-y)) |
@@ -82,7 +84,6 @@ ifdef CONFIG_SPL_LDSCRIPT | ||
82 | 84 | # need to strip off double quotes |
83 | 85 | LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%)) |
84 | 86 | endif |
85 | - | |
86 | 87 | ifeq ($(wildcard $(LDSCRIPT)),) |
87 | 88 | LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-spl.lds |
88 | 89 | endif |