From patchwork Thu Dec 3 17:18:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 5158 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0E24240E4D for ; Thu, 3 Dec 2026 18:19:34 +0100 (CET) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-48e4d1e29f3sf71196f8f.3 for ; Thu, 03 Dec 2026 09:19:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1796318373; cv=pass; d=google.com; s=arc-20260327; b=ZLGwyku5ERzH8uvZS7GKwl1cOhQOLHgPlfweGvpfQo5NJxo+KAGkTS1x3TpxwTPmke LFyUXebBXtudkoLu2kmK+rbmp3Ns7W2BQn6E8xHPvATlQiyCxWrMdMNPItDU1MJbccLw nUjanHY7z5GekLkivxcOl30wuqfgJKb6wA/LJ43vPgUyq5AMB5ffiSTPWWiKUlPNB3fe paS9Nt7w2XDpguPxIFb8MdrIHCSBuQ9uXQmd7BXoMKiVijNwkxnK/idHUeHji3opSiaZ atsja8B9+zWhePLXC+TMyFRa6hy0VechjB9B8GVjYOVeJGehWvn5N2rRxpoAEHeaktMG M9XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wvbwoJT/sozxEBw/nQsJCF2WIKfJlHdkFN4M3VyrHOc=; fh=Ofrm2D4adXPZTp7qORa6jG9/MOBddYHl2XMBmWwXX04=; b=YzTJuYy5x657yCQ2o/QdXKOU8RfeT1T5qN5z/sUnvSNAfDEJLLbztr6lI9Jj2OVLG+ bMmkssk7b67ozbh7XfXItTOsRZ6gbBX3Ppdf9BuTEMJ8XbhF6nkQkC6fRjpAZ+RizV2K DBTV6Xl3GGSechSXVq/TtAdp9tEDQD9p5cZkT5tOj2PlMnoIxGgfT+iV1HJerFoNgR0r wnu048yliEuzmoksXsg2GDx9K5dYKq3EBc26EJ3Syb0L0H7HRDOD+qx3yxM/Om4YHfYU lbWEHPTyWxGFamdR9EDjOKblk3cb5JWfuucOc6cBbIv9XIqwCTkENbm7rAGFm/iTblzB D6EQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="E80I6hz/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796318373; x=1796923173; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to:content-type; bh=wvbwoJT/sozxEBw/nQsJCF2WIKfJlHdkFN4M3VyrHOc=; b=ZkpSXJ+XtsXKb/Vs16yNYFBcJTE+Lvc8u0/+p3ExZOHO8Tmf6wDhooAW1KZ8Jztg8K Gpfbc4S/BSn+4VWZNgr5H+/VBfB5v26OkmxYsR0zr7EFcpBontqnwTZ5Jh3GkaF/zhHu pnkPmyh+rF5wsb0S6ZrTh8a2Ge/z0Y0Mj7bwY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796318373; x=1796923173; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wvbwoJT/sozxEBw/nQsJCF2WIKfJlHdkFN4M3VyrHOc=; b=NHhdAWlVFFFGx617BFQgfkqUktsC5p+3tyoqMuLMgoYk1qSBmWaMiEv7oRR+A2mjik Hz1Ub4liJmNCjH0gOgqfa58PZr8e7v2PKAlhHxOAZ7B1HcwAuZfFJgmJ4mMbE6V/wNCD H6x//tI7qsh3pJxI2bTWGb0xaVvoz/iymmtOBBnisNjFxEi3XVyOLVFsBo7RHkBtoKIY gqokFyz/tVRpUwGcdABykTD0KK9LD7Zc6OHPQ5xzpYwvqQ6Qw31bpKO+wli/v/YE+l9b YB4tIV+GTkOkGorXXGwVQ+O+WYatFQQ/neCAY2C9Pfz3uJ0ISM3HnELXpSKX+DEYFp+O hH+w== X-Forwarded-Encrypted: i=2; AL+hErHTSePQkhZ/DQwhNq/UE4PXO/e4jqwkvXTlDmOmA7xpJgOO0GPLuRMhLDo6EY+tJunmtnJMzU89nZbRPBws@patchwork.amarulasolutions.com X-Gm-Message-State: APuU4Z8bYvNJquR5lBJTnvfSe+Fe/KtrNpkpQUjVHLeQL106ybItj73D 9gdgMIAh8JeymT4GdcQi3jKs6JSeExdt/svhjVpGUfF9u23QSHeH2XMORqJ+4hnH3AA85A== X-Received: by 2002:a05:600c:64c7:b0:4bb:68b9:f610 with SMTP id 5b1f17b1804b1-4bb887ffee2mr831355375e9.9.1796318373700; Thu, 03 Dec 2026 09:19:33 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com; h="ATskLdeYMWx6F5ZL5qhmeqbSFGuqeTwlaK7VKjqmyo7ErVJOsw==" Received: by 2002:a05:600c:4f46:b0:4bb:6dc3:852 with SMTP id 5b1f17b1804b1-4bb89274a1dls8714085e9.1.-pod-prod-02-eu; Thu, 03 Dec 2026 09:19:32 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFUIYGV3U5guQV0Wk55k1gZY66MET6u12Xb6X44IUMqR55hToarr2Cz18gMhJBihXU19jDXoDBWhKoAZhBt@amarulasolutions.com X-Received: by 2002:a05:600c:64c7:b0:4bb:68b9:f610 with SMTP id 5b1f17b1804b1-4bb887ffee2mr831354135e9.9.1796318372172; Thu, 03 Dec 2026 09:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796318372; cv=none; d=google.com; s=arc-20260327; b=Cp0ptfQIw0HEhsntntoVpC8umJKJGRcP1jAuIYphFVQlkOmfUA1bj2hAxrVCjM82bc C1rh4zWZVKTC7k6qL0UYKfzVYGskwDClQ/Nknl7SAR7XpLOlX9j/4niULVI9lK4mNWz0 XL3mMXbqND+lfZvgZy3J2QZDjP+fiiM32x9S2bVNxQgKw4RfguSQ6I8lkZZsY06kK0D2 +6y4pSO41WF5ZGMvwHDu37Q7rQvmOz6fF/4p3le/xWI7wKLKbXBKmGsbVPNxyxHbEGso 44KY333ZcWwoF56u90A/k8jQjOPKI8T2JhmjzQ9pesNEydNZ6rCLtQ7q18icDkV57QId 0c9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=firUyxtO9KLRMcFx16aO8Scj7YJsAy+Cv+h0WgfxJdo=; fh=LRZSTHgS11+bMEDbR1SYIZxsSrhhpAkpb0+apOaWVAk=; b=oWsGh9PTMg7w6af8OGxzdSrQmVuJhj3b5ovcNo8Y6LbmydOTkOEmtHbgNbufHFQJ59 L/QNS99Y8fQAzdAi26Q1krTajJ5gDqQjDcuF/x68Xdkplb3lZ7dDmfFcGFEhll93Btrt DnoAHjEDbZVJu6iIdkcnA0ieoTz/jIwFwHCNgTxGNC6XEiaSD/y/AOkdlF4IsCp137pn 9IMTUyuESTKLvY8YREnKEcAAkvUej8kqSqdaueF8poNvFC/ayA1LKGKy1YRIVq4q2CLD iLrbAfCjOn58pelIPrIa9SDS6FIzdoTCZjQY3YwaoxWa08mlqKE+1rppIVlaNCJtLuJd jhmw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="E80I6hz/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4bb88452f65sor80434245e9.7.2026.12.03.09.19.32 for (Google Transport Security); Thu, 03 Dec 2026 09:19:32 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AL+hErGJQO+24lbizOD6EyEM2t9aiBV8rkPzXdRnsL+dwPW+TyU4jlQUgSjAtjHCCOpOttZ2KXpd/UsXI1hyBsY8@amarulasolutions.com X-Gm-Gg: AZFdTZdIfbhx7nWLp+wRBZWqhAAssjIHQfpkzaAT2bi44gKQihrZ+gfqGvDWGA2mP2I iyVuONGJJageoZjOqsBHgA2OuSHk1rYP9l+FT2pAULcsbyJSUYffeutJrwnmD0uKL6PjkKW8fe/ +br26rKEwto1xfrrFG0do/uWc7YF1OBrkC7mz7iU7MDY/PlLyIV6eCpnUtlfTHDkc2gJ+6bH9gV nTKqJFOxxvoVNi3CThuxCQ2GXGZegYiIojpxxv3S52/hBxZQUaXSe1A/mvx6vkt3vE2vfZd6jpj TXvB7I5a/VHme940DJIUhWGvb4p7fJSsMcchFADdJrpj/VOU6wv1lfjdcKOpucrv1EZvRsGvi/J 4xRb2Nz/FmLBat7GQywXUvdhDd+fRshQ+mgXnncLvJj1loziE6vDD0nipbwOSZ2nV8SCrKeTghR pI4IZtQxewuybjn1FoPpJ6NflkKDmVQa9Ti39IoRTSZPuIgJFLUS2aE+xVjCcO6Ll9ExMOSNFPt /FeGlvRpO6GckqsHr1whis7TCx8KJMNRWHVqsurtTQ+o/4N2S8ezr4MkmiQ6G+tPAGY4fyTLhvN xYby2WWyPggf6A5YDw0oLmG0JguitjSmTamJN45GuSMmiok0NwHa1Xt4PXrO112oSOPECq9zBoN 22pgkukLmVVez1W6YkI89qH/cSM13nL9fEisNuI79TcBlPfzt6rj5xST8npN8Mjt9FGu4Im+6w5 NG4nsIxTRE1bK3FFF/VCMbU0ZYZA== X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr914917175e9.21.1796318371800; Thu, 03 Dec 2026 09:19:31 -0800 (PST) Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it (host-79-14-29-58.business.telecomitalia.it. [79.14.29.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d173ab8e3fsm329012f8f.42.2026.12.03.09.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 09:19:31 -0800 (PST) From: Dario Binacchi To: Patrice Chotard , Patrick Delaunay Cc: michael@amarulasolutions.com, Yannick Fertre , linux-amarula@amarulasolutions.com, Dario Binacchi , Tom Rini , David Lechner , u-boot@lists.u-boot-project.org (open list) Subject: [PATCH v4 19/29] splash: make splash_video_logo_load() available to boards Date: Thu, 3 Dec 2026 18:18:04 +0100 Message-ID: <20261203171852.62649-20-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com> References: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="E80I6hz/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Boards providing their own splash_screen_prepare() to load the splash image from a board specific location have no way to fall back to the built-in logo when that image is missing. Export splash_video_logo_load(), which copies the built-in logo to the "splashimage" address, so that they can use it as fallback. Signed-off-by: Dario Binacchi Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - Add Reviewed-by tag common/splash.c | 4 +--- include/splash.h | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/common/splash.c b/common/splash.c index 8a65ae597771..5502b4f5452f 100644 --- a/common/splash.c +++ b/common/splash.c @@ -70,7 +70,7 @@ static struct splash_location default_splash_locations[] = { #include -static int splash_video_logo_load(void) +int splash_video_logo_load(void) { char *splashimage; ulong bmp_load_addr; @@ -90,8 +90,6 @@ static int splash_video_logo_load(void) return 0; } -#else -static inline int splash_video_logo_load(void) { return -ENOSYS; } #endif __weak int splash_screen_prepare(void) diff --git a/include/splash.h b/include/splash.h index 7671bd7e9c44..0a3ea0346030 100644 --- a/include/splash.h +++ b/include/splash.h @@ -61,6 +61,15 @@ static inline int splash_source_load(struct splash_location *locations, } #endif +#if IS_ENABLED(CONFIG_VIDEO_LOGO) +int splash_video_logo_load(void); +#else +static inline int splash_video_logo_load(void) +{ + return -ENOSYS; +} +#endif + int splash_screen_prepare(void); void splash_get_pos(int *x, int *y); int splash_display(void);