From 7f009500c5a21fe860cf4d7dbeac9da006e200da Mon Sep 17 00:00:00 2001 From: sophgo-forum-service Date: Mon, 3 Jun 2024 20:27:55 +0800 Subject: [PATCH] fix build error when support bootlogo. - 1e702b,fix build error when support bootlogo. Change-Id: I135d7b5e360644335988dbd37ce2fc4addbf6477 --- u-boot-2021.10/common/board_f.c | 2 +- u-boot-2021.10/drivers/jpeg/jdi.c | 1 + u-boot-2021.10/drivers/jpeg/jdi_osal.c | 1 + u-boot-2021.10/drivers/jpeg/jpurun.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/u-boot-2021.10/common/board_f.c b/u-boot-2021.10/common/board_f.c index 00dae3f8a..132c1a0a9 100644 --- a/u-boot-2021.10/common/board_f.c +++ b/u-boot-2021.10/common/board_f.c @@ -876,7 +876,7 @@ static const init_fnc_t init_sequence_f[] = { #if defined(CONFIG_SYSRESET) print_resetinfo, #endif -#if defined(CONFIG_DISPLAY_CPUINFO) +#if defined(CONFIG_DISPLAY_CPUINFO) && CONFIG_IS_ENABLED(CPU) print_cpuinfo, /* display cpu info (and speed) */ #endif #if defined(CONFIG_DTB_RESELECT) diff --git a/u-boot-2021.10/drivers/jpeg/jdi.c b/u-boot-2021.10/drivers/jpeg/jdi.c index 0634ef345..fa6639f65 100644 --- a/u-boot-2021.10/drivers/jpeg/jdi.c +++ b/u-boot-2021.10/drivers/jpeg/jdi.c @@ -8,6 +8,7 @@ #include "dm/device.h" #include "timer.h" #include "asm/cache.h" +#include "cpu_func.h" #define JPU_BIT_REG_SIZE 0x1000 #define JPU_BIT_REG_BASE (0x0B000000) diff --git a/u-boot-2021.10/drivers/jpeg/jdi_osal.c b/u-boot-2021.10/drivers/jpeg/jdi_osal.c index 01e9b6496..10ff274a6 100644 --- a/u-boot-2021.10/drivers/jpeg/jdi_osal.c +++ b/u-boot-2021.10/drivers/jpeg/jdi_osal.c @@ -15,6 +15,7 @@ #include "jdi_osal.h" #include "asm/cache.h" #include "jpulog.h" +#include "cpu_func.h" #if defined(JPEG_FVP) #define FILE_BUFFER_BASE 0xE0000000 diff --git a/u-boot-2021.10/drivers/jpeg/jpurun.c b/u-boot-2021.10/drivers/jpeg/jpurun.c index d7b07c6b2..aa953fd34 100644 --- a/u-boot-2021.10/drivers/jpeg/jpurun.c +++ b/u-boot-2021.10/drivers/jpeg/jpurun.c @@ -7,6 +7,7 @@ #include "regdefine.h" #include #include "asm/cache.h" +#include "cpu_func.h" #ifdef JPU_FPGA_PLATFORM //#define ENC_SOURCE_FRAME_DISPLAY