diff options
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl.c | 7 | ||||
-rw-r--r-- | common/spl/spl_atf.c | 3 | ||||
-rw-r--r-- | common/spl/spl_ext.c | 5 | ||||
-rw-r--r-- | common/spl/spl_fat.c | 1 | ||||
-rw-r--r-- | common/spl/spl_fit.c | 2 | ||||
-rw-r--r-- | common/spl/spl_legacy.c | 2 | ||||
-rw-r--r-- | common/spl/spl_mmc.c | 4 | ||||
-rw-r--r-- | common/spl/spl_nand.c | 3 | ||||
-rw-r--r-- | common/spl/spl_net.c | 2 | ||||
-rw-r--r-- | common/spl/spl_nor.c | 2 | ||||
-rw-r--r-- | common/spl/spl_onenand.c | 2 | ||||
-rw-r--r-- | common/spl/spl_opensbi.c | 2 | ||||
-rw-r--r-- | common/spl/spl_ram.c | 2 | ||||
-rw-r--r-- | common/spl/spl_sdp.c | 1 | ||||
-rw-r--r-- | common/spl/spl_spi.c | 2 | ||||
-rw-r--r-- | common/spl/spl_ubi.c | 1 | ||||
-rw-r--r-- | common/spl/spl_usb.c | 1 | ||||
-rw-r--r-- | common/spl/spl_xip.c | 2 | ||||
-rw-r--r-- | common/spl/spl_ymodem.c | 2 |
19 files changed, 41 insertions, 5 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index fc5cbbbeba..7ea0b06a80 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -9,10 +9,13 @@ #include <common.h> #include <bloblist.h> #include <binman_sym.h> +#include <bootstage.h> #include <dm.h> #include <handoff.h> #include <hang.h> +#include <init.h> #include <irq_func.h> +#include <log.h> #include <serial.h> #include <spl.h> #include <asm/u-boot.h> @@ -423,11 +426,11 @@ static int spl_common_init(bool setup_malloc) } } if (CONFIG_IS_ENABLED(DM)) { - bootstage_start(BOOTSTATE_ID_ACCUM_DM_SPL, + bootstage_start(BOOTSTAGE_ID_ACCUM_DM_SPL, spl_phase() == PHASE_TPL ? "dm tpl" : "dm_spl"); /* With CONFIG_SPL_OF_PLATDATA, bring in all devices */ ret = dm_init_and_scan(!CONFIG_IS_ENABLED(OF_PLATDATA)); - bootstage_accum(BOOTSTATE_ID_ACCUM_DM_SPL); + bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_SPL); if (ret) { debug("dm_init_and_scan() returned error %d\n", ret); return ret; diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c index 702367b2a2..b54b4f0d22 100644 --- a/common/spl/spl_atf.c +++ b/common/spl/spl_atf.c @@ -13,7 +13,10 @@ #include <atf_common.h> #include <cpu_func.h> #include <errno.h> +#include <image.h> +#include <log.h> #include <spl.h> +#include <asm/cache.h> static struct bl2_to_bl31_params_mem bl31_params_mem; static struct bl31_params *bl2_to_bl31_params; diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index 2a6252229c..3898041d10 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -2,6 +2,7 @@ #include <common.h> #include <env.h> +#include <part.h> #include <spl.h> #include <asm/u-boot.h> #include <ext4fs.h> @@ -15,7 +16,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image, s32 err; struct image_header *header; loff_t filelen, actlen; - disk_partition_t part_info = {}; + struct disk_partition part_info = {}; header = spl_get_load_buffer(-sizeof(*header), sizeof(*header)); @@ -69,7 +70,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image, { int err; __maybe_unused loff_t filelen, actlen; - disk_partition_t part_info = {}; + struct disk_partition part_info = {}; __maybe_unused char *file; if (part_get_info(block_dev, partition, &part_info)) { diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index aa371ab52c..c2eb097365 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -10,6 +10,7 @@ #include <common.h> #include <env.h> +#include <log.h> #include <spl.h> #include <asm/u-boot.h> #include <fat.h> diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index c51e4beb1c..f581a22421 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -10,8 +10,10 @@ #include <fpga.h> #include <gzip.h> #include <image.h> +#include <log.h> #include <malloc.h> #include <spl.h> +#include <asm/cache.h> #include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 29d3ec7073..82d0326806 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -4,6 +4,8 @@ */ #include <common.h> +#include <image.h> +#include <log.h> #include <malloc.h> #include <spl.h> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index a68cdec8dc..add2785b4e 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -7,6 +7,8 @@ */ #include <common.h> #include <dm.h> +#include <log.h> +#include <part.h> #include <spl.h> #include <linux/compiler.h> #include <errno.h> @@ -168,7 +170,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image, struct mmc *mmc, int partition, unsigned long sector) { - disk_partition_t info; + struct disk_partition info; int err; #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index 5f8a111a2f..48c97549eb 100644 --- a/common/spl/spl_nand.c +++ b/common/spl/spl_nand.c @@ -5,6 +5,9 @@ */ #include <common.h> #include <config.h> +#include <fdt_support.h> +#include <image.h> +#include <log.h> #include <spl.h> #include <asm/io.h> #include <nand.h> diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index 30c050c0b3..e140a6306f 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -9,6 +9,8 @@ #include <common.h> #include <env.h> #include <errno.h> +#include <image.h> +#include <log.h> #include <spl.h> #include <net.h> #include <linux/libfdt.h> diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 3f03ffe6a3..5270401db0 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -4,6 +4,8 @@ */ #include <common.h> +#include <image.h> +#include <log.h> #include <spl.h> static ulong spl_nor_load_read(struct spl_load_info *load, ulong sector, diff --git a/common/spl/spl_onenand.c b/common/spl/spl_onenand.c index ee30f328e6..93cbf47e82 100644 --- a/common/spl/spl_onenand.c +++ b/common/spl/spl_onenand.c @@ -9,6 +9,8 @@ */ #include <common.h> #include <config.h> +#include <image.h> +#include <log.h> #include <spl.h> #include <asm/io.h> #include <onenand_uboot.h> diff --git a/common/spl/spl_opensbi.c b/common/spl/spl_opensbi.c index 3519c34299..e88136e6f3 100644 --- a/common/spl/spl_opensbi.c +++ b/common/spl/spl_opensbi.c @@ -9,9 +9,11 @@ #include <cpu_func.h> #include <errno.h> #include <hang.h> +#include <image.h> #include <spl.h> #include <asm/smp.h> #include <opensbi.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c index 954e91a004..df1d5b43d8 100644 --- a/common/spl/spl_ram.c +++ b/common/spl/spl_ram.c @@ -11,6 +11,8 @@ */ #include <common.h> #include <binman_sym.h> +#include <image.h> +#include <log.h> #include <mapmem.h> #include <spl.h> #include <linux/libfdt.h> diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 644dfa8cc3..e7f7b68411 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <log.h> #include <spl.h> #include <usb.h> #include <g_dnl.h> diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index 288dbb5fa9..2744fb5d52 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -9,6 +9,8 @@ */ #include <common.h> +#include <image.h> +#include <log.h> #include <spi.h> #include <spi_flash.h> #include <errno.h> diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c index 0cb5080882..de6a63bd2d 100644 --- a/common/spl/spl_ubi.c +++ b/common/spl/spl_ubi.c @@ -6,6 +6,7 @@ #include <common.h> #include <config.h> +#include <image.h> #include <nand.h> #include <onenand_uboot.h> #include <ubispl.h> diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c index e29d579b0d..08837b38fc 100644 --- a/common/spl/spl_usb.c +++ b/common/spl/spl_usb.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <log.h> #include <spl.h> #include <asm/u-boot.h> #include <errno.h> diff --git a/common/spl/spl_xip.c b/common/spl/spl_xip.c index 1af4da8725..8ce0a09ef3 100644 --- a/common/spl/spl_xip.c +++ b/common/spl/spl_xip.c @@ -5,6 +5,8 @@ */ #include <common.h> +#include <image.h> +#include <log.h> #include <spl.h> static int spl_xip(struct spl_image_info *spl_image, diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 8500ee8ba5..284512478f 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -10,6 +10,8 @@ */ #include <common.h> #include <gzip.h> +#include <image.h> +#include <log.h> #include <spl.h> #include <xyzModem.h> #include <asm/u-boot.h> |