]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: spi: Move the generic SPI loader into common/spl
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:08 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:07:33 +0000 (15:07 -0400)
All the other SPL loaders are in this directory, so move the SPI one in
there too.

There are two board-specific SPI loaders (fsl and sunxi). These remain in
the drivers/mtd/spi directory, since they do not contain generic code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/Makefile
common/spl/spl_spi.c [moved from drivers/mtd/spi/spi_spl_load.c with 100% similarity]
drivers/mtd/spi/Makefile

index 5bd0b1841ee447cc78d2ca12f24e97a85dbb6c16..ed02635e720d35f952903e38691a1beccfb4d0b3 100644 (file)
@@ -25,4 +25,5 @@ obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o
 obj-$(CONFIG_SPL_EXT_SUPPORT) += spl_ext.o
 obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o
 obj-$(CONFIG_SPL_DFU_SUPPORT) += spl_dfu.o
+obj-$(CONFIG_SPL_SPI_LOAD) += spl_spi.o
 endif
index 6f47a66f400654c9456570f160e474aa71d1b3c5..f3dc40963251038d2c471b9807ae0c6b4c643b03 100644 (file)
@@ -8,7 +8,6 @@
 obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o
 
 ifdef CONFIG_SPL_BUILD
-obj-$(CONFIG_SPL_SPI_LOAD)     += spi_spl_load.o
 obj-$(CONFIG_SPL_SPI_BOOT)     += fsl_espi_spl.o
 obj-$(CONFIG_SPL_SPI_SUNXI)    += sunxi_spi_spl.o
 endif