| Message ID | 20261104085036.4012238-25-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7301:6783:b0:36a:3487:1c26 with SMTP id qo3csp69438dyb;
Wed, 4 Nov 2026 00:52:08 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AKwUvBx2rjZhvY2gVs8WyPhp3I1wqLZ1xoJLyaVFJcm/ZrMcH9eczQNpcEtwtJ/Ehy+nTgky94T2MGJl@amarulasolutions.com
X-Received: by 2002:a05:600c:8b64:b0:4a2:84c:52f3 with SMTP id
5b1f17b1804b1-4ac16fa21dcmr381696035e9.6.1793782328431;
Wed, 04 Nov 2026 00:52:08 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1793782328; cv=none;
d=google.com; s=arc-20260327;
b=KkLeion1dwtPzc4ZFVbG5tgByd3XhrYUB6MqarOV8x3TOk7z57GlkvyNglR6eoaj+Q
W3OQYE8Izw4i/NZiOHNlqPBcgpvtVpTyB3IeYFKrehBqCvtjqfbs8zMbKQF3X0VByLl2
NkTTvxnCg45iv2cOkBQa1ig0Vgu7hOiOBh02aLSUYX4pzV4VXO6h8/RnQfvFBvG06z+J
TaIXdkN15hWS9fuQ7oT7qpxi64rYyI5o2apzS+jL07KHOgYV7JETEZu9NQ0/Dp2V5QFY
IfBCP8I1Z9LdwSJYBbXK2+0oiT06yq4fmA7Wm5AkRwTRIGp68EJwKzPY4pChYSbeYaKl
+q4A==
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=3Yirr5G0vLh5bWPfoNilqEJT5XaAexLT2Sk4ItQ963Y=;
fh=OGAnWJk5Hf1c+RqDX5TpoMxP8Ezo8e5XwidQHbJJjlM=;
b=PR+SIfWvSHegvbPk9C4/wfCyCNKnuQs91NAvV10IyQp7Q44a7iF+MNjHd2z3Kpq3c9
EcIS43Nnhsb8nwiLwAjE8jB7zH4W9r2zQl8ytSZmrgeAiABr0egWwGoBacYUFID6pxi9
mS6riWKWkN+ekUxPkRJTGlVDe0ipvlNJyKZ+zyunEUVMonJ2PSGKFOQH10ICmF7sskiu
F4dI5kLkp2+qD8eIOc6zra9TDybIENQ8GQUZ85dpXB6HATEf02LCBI9mwAWvVlC3TPVH
9TPski2RZcGAnvbYujZIyF/PzvW1yPdRVE5N1Eun9okzngefjOZdxbUK5d62cemH4OGT
/4cg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="fv9j4xW/";
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
Return-Path: <dario.binacchi@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-4b43d1e02e6sor2516365e9.13.2026.11.04.00.52.08
for <michael@amarulasolutions.com>
(Google Transport Security);
Wed, 04 Nov 2026 00:52:08 -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;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="fv9j4xW/";
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=1793782328; x=1794387128;
darn=amarulasolutions.com;
h=content-transfer-encoding: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=3Yirr5G0vLh5bWPfoNilqEJT5XaAexLT2Sk4ItQ963Y=;
b=fv9j4xW/3CUGumWHYvP43EhuheXvGiXRFq1U65gnnXrdabqfD+e+B9qt4chMJ5pi+A
W2RwabHNYNYETRUhCaFj8EMQtRNGTvWBMMJZ2INuG01FcNX6c+fATh5+EGVW7IfMH63n
uJR5hwCSIkyHV8Eyb9mqpBZQv9IO0EsG2Zuwc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793782328; x=1794387128;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=3Yirr5G0vLh5bWPfoNilqEJT5XaAexLT2Sk4ItQ963Y=;
b=uJqoN+D4QPJ+1/UK3vXdg2jrfnzMEmvsZjaztI/04x/scdFxJ3bsXicPxDHLWL87+W
enN6ka+d5oMcJoQlhdYFUGAGp75gAzVMGEYub6XViK0nM55PtQ3yOC2+6J+78G0BFLDg
kV/X+cKCWkG+979Dz3izjQQ2drV5KvGHbb1oHJattHG11BQfqQWs5TWs8ZzDI+7YYClj
dYxo33xhnbk0W9HgMrA/hmAd62v6h0bE7jsnR9BUpvDNXhhD8u0ukBm3dVOolNX/FARl
8zawXUfUpknlU/rSl3+9I7K+pMCwWjjSEhGHvjK54o9EDvQh+UdY1U44fXBs/KgxpHqe
uCnA==
X-Forwarded-Encrypted: i=1;
AKwUvByJBJcfillNA1NEEEXhrcovbeFL6bEBncnKWu6Bsqa29EY4G4ZLmhqgMRgdQmKf+7Xh1+Wqe50U@amarulasolutions.com
X-Gm-Message-State: APuU4Z+fao3R9iBF0hnyQeG64JIV+Uc90aF75vwSP8pvn9fVFKieQTFm
2GyaRpwoPJA2/TyAE3C10NA6Z1cDnWNzt/iOqCGZkcplWvxKJRE7StfOCJ+o/pBVYpVwWQ==
X-Gm-Gg: AYBFou3nOucH1dlDzYO++sxPKHWAzUYV8QAginCMndto3Zy72PFSVexOqiSPETmbr2T
XI/eUpR4l4Ox90MCeROm3ual3GHTjs9RnVlvsfoPo6sv2SnMc/wds4ABWCa6cYuDA4Olet0nCcx
GoW5y733kwg5+doXfT3dqPqyK8bwUSYAvYZJ4UY1cIEvYHYcamnD1pFwkqMHxXg2Pern6qFTusB
IELIPaQkRI+ZVTapmKP5NohTQiZGtHT+Mqcfkqb3JPu0+80qLYqf7HmPhQERVXl8oV4AkCfRN+8
QmNahLxoj6qWhBJkPwJFKF5z5Zj1eFbM690dhG+HsUBGCYSdcgU7X7oFYJH/ilfP7oza6F+4nPI
CLqS6+gtsp7/849qjb+wW/mQVg5m2HQgQL8KZhiltGmzgfSvhKbZU1v5YZ5hWnAA48IwIQl7dmu
eb7/9jV7kUvoZqHl8y1PaUD3BDQXvoOiPi9GE3lMwrWZ9nvt1IKOEsKKEompyTLIzPdGKldS5op
qqjfnapeUHK+YX/riU+lInmdCjiHmUMnz+QzbJlQ6b/OAKrTUHcnQzlWhYyt96gyE9ELq/Mshlq
CANyejZemEMqHOBOgAJES8vkoMeFMMaYt2MXzFuNOGTb/Mq6r9Oe0Bb6RPq0/9Cps7Xuj6Mat3q
wIGzkuHsp6XooQLpfZR4rkElOMJ1MBdiJjAACngZ4tVZcK2AB
X-Received: by 2002:a05:600c:4e50:b0:4a1:7d9b:d4ae with SMTP id
5b1f17b1804b1-4ac16fa3523mr365357535e9.5.1793782327842;
Wed, 04 Nov 2026 00:52:07 -0800 (PST)
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from dario-ThinkPad-P14s-Gen-5.. ([109.54.139.206])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4b413312a4fsm20555915e9.1.2026.11.04.00.52.05
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 04 Nov 2026 00:52:07 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: linux-amarula@amarulasolutions.com,
michael@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
David Lechner <dlechner@baylibre.com>,
Tom Rini <trini@konsulko.com>,
u-boot@lists.u-boot-project.org
Subject: [PATCH 24/33] splash: make splash_video_logo_load() available to
boards
Date: Wed, 4 Nov 2026 09:49:57 +0100
Message-ID: <20261104085036.4012238-25-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261104085036.4012238-1-dario.binacchi@amarulasolutions.com>
References: <20261104085036.4012238-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| Series |
Add Engicam MicroGEA-STM32MP257D-RMM board support
|
|
Commit Message
Dario Binacchi
Nov. 4, 2026, 8:49 a.m. UTC
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 <dario.binacchi@amarulasolutions.com>
---
common/splash.c | 4 +---
include/splash.h | 9 +++++++++
2 files changed, 10 insertions(+), 3 deletions(-)
--
2.43.0
Comments
On Wed, Nov 04, 2026 at 09:49:57AM +0100, Dario Binacchi wrote: > 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 <dario.binacchi@amarulasolutions.com> Reviewed-by: Tom Rini <trini@konsulko.com> -- Tom
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 <bmp_logo_data.h> -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);