From patchwork Sat Nov 7 14:32:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 5001 Delivered-To: michael@amarulasolutions.com Received: by 2002:a05:7300:aca6:b0:36a:3487:1c26 with SMTP id cr38csp769511dyb; Sat, 7 Nov 2026 06:33:37 -0800 (PST) X-Received: by 2002:adf:e192:0:b0:48d:f464:6989 with SMTP id ffacd0b85a97d-49275b1be3fmr10175202f8f.27.1794062016737; Sat, 07 Nov 2026 06:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794062016; cv=none; d=google.com; s=arc-20260327; b=oUYIacgItA5g8+W8exs/4TIdFIaFC42ojVA0IDr3Bq5Js37QCkP5PzmN2fkUT/HNX8 OFlHh1K7fS+TDX6xjsEoM7pgV/RC+MxWgzW+wK5Eu1GGEEubcRBQBrFPZgaxs3iKFboZ UVeFnatrNYYq15NOKHPs2m2QVK6dMok3zML8+k0sqtWASpQaEjLbv1v0rPqfPpLCfs1z xuao9nMHLwhKLDTTXJCREtMzIFLYb39YLHOckCq4UcfRd1+A5psSiqTozt4KmKtI5tyV EON2QeSiqwUsuJyomgJzQYcOWq//RaoJp+KADmnF0nHE/UN1Pk+hoKYmjwT8mJJHxYh6 gN5g== 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=nhUt6kKb9TBLQIVvKxk/BxLHQjlwHQGvC24ybZRv3c4=; fh=Lmo4Yftxk0WOVP3wcBHYFO32lgca5GpeladW+LuGmIY=; b=VuxOA7qs6G1yuOTanfQwJI8fIeK0+o4mC5I73+XqA22urq/2rdUh7cGoFntOpT4O4x sq5G+kG8lcarFMwE4OMjcTl6DgXedUS9GKExe7Je9XkJ7tzHnEgpoo43oMKg2qeH5AwO vSxczLTo2lHw9ly+y5lqoBQcn9fsux0htWfmFbQs1Au+7ZlJbyq8a5I637UofPeWENM9 wSwopYrRv40vnqVaxYlHe9Yu2LZ/eJZCWKpFcCF2qhczlpcWrgrJDJxTtUvCDgH0EgMC UGZIwQOYhRtc9ySetzv2gwMeUB+chalScwzYH57Ne/4+s61t+4U3tvXduCjYhAOQffRl Pf9A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qDn9QXQh; 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: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-492d79e351esor981489f8f.14.2026.11.07.06.33.36 for (Google Transport Security); Sat, 07 Nov 2026 06:33:36 -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=qDn9QXQh; 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=1794062016; x=1794666816; 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=nhUt6kKb9TBLQIVvKxk/BxLHQjlwHQGvC24ybZRv3c4=; b=qDn9QXQhranNZyMIBWLGqUQSjtFjMUdSrS8m7HQgdongX6jY83qFxYy5CQslQ1TZqp Mgfxi230aD8vY5a7mYXhp4OAExrxXT4Kl6qGCOLxpyyCBNx3ecFvfh9/+BTK3P+/hjGU 2yupykkRsmDlNxbjDJp8BHIgk20Taa3cnOPYM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794062016; x=1794666816; 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=nhUt6kKb9TBLQIVvKxk/BxLHQjlwHQGvC24ybZRv3c4=; b=CS+x7wDqXMyQeWWGgWbw7yRLnOispJyXAXbLppn0I307mGLop1oN/h8DkIgJCnieYl kCCPT9lhYsWQp0W/j9JBRlo8FVZQSdhDi0QBkerhgY081lPW/KxLEo90CCOGTSYRIKat pSeo6vw5wpfUTQ3rRDzdXJ/6FlOCyHjT9Q5JTV3ritihfjuGLcL17gqjiwyRBDxBUKaw x1y7I+ElS0c/8e8aTU7ZZGMufJw93T0Vgiv9VZW2Ny3gEwnVUMC3dFW+DPpuVE9JnFhk lqH7ipF24TTa2wVO/tEA6CtxJSXUDH9rdEk+olmrtJVvHAUiI9EIvprG0Mv+yfrdlYl2 wrkw== X-Gm-Message-State: APuU4Z/B3OJ8EvoNYWtt8EYvDsH3Qs6FuG0F2oKqJpp7B7gKvc582Ds+ tEDquDigw7SilDC6bVokVTB/0PjmyNZwnEuX6SD7CSxLX9q65ZwwU4gYYcy0XUcVlyQP1A== X-Gm-Gg: AYBFou3K38KqFacugEr6eBwO0vhpjgyEc0FBSMizw2iTY7+CiqJPo1s68mZSoTlvD80 HqnYfXb2FF4MqxnEva5GBtquiLVKq/V0WZpsc/cZDROATRw6EZ7hYYHpa1wlVhTvPgF7wb6Ce5H 0s8DoKbZq2/9dhEAbi7iwviTzjMeQmTfSaaQwzUsiLutkAAkN0HrKjDEUo5Q3k66BuctYQRh3wG dsc0nMoztpohX+J5I3d3CfoTxeMHzJoKd5cSHghhML29clHv9An8xT3GGsua+lkUqwo9ewSlXhp XMmatJVJDqWO5xkMa3hKt27tEPXgHJMUIBLZ9YCtXXTYK06trargTz1ZkX4Dhrotj1+RGHJn44c RISH0+cffuPrOjOqplkGGkr9hpWnFqpwddNinGSKBkAWPoYZW0FKQzbMJ7sgLBRjihzDzEq4kGD gyrW6w69+JFyqdccvNerEUlYdA6/eIfSYaZ780Ye+Y8/VF1lDJI7K7Az0YVSsIjPYPPf9rrfxIf YPhQt9HMKh7rZdWcxNxVi02RZRxh737zIgdPY0OLRtJq2PNGDkA9QfspnGGfWjZfaapERjdv7jl 0tz/2G3xOUVVA0a+uSjYFCjV6hx9I4YYceSoRNpBGXMCTleWjwoM6vfiLHbQhkM0pZczmASpVdi KT1L53Mx01Qpc9SOOh3lwxDbAIkbBz5jvyQLDdPbsjGmckLsRs0J1DM6zRrz4mpHQ7J2OzlLJa4 9+LP7io4sTPWLd9Kg4pzdgNHp4/g== X-Received: by 2002:a05:6000:460c:b0:48f:bb92:c5a7 with SMTP id ffacd0b85a97d-49275373a03mr9905496f8f.9.1794062016137; Sat, 07 Nov 2026 06:33:36 -0800 (PST) Return-Path: 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-492d7cc6187sm10027247f8f.46.2026.11.07.06.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2026 06:33:35 -0800 (PST) From: Dario Binacchi To: Patrice Chotard , Patrick Delaunay Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi , Tom Rini , David Lechner , u-boot@lists.u-boot-project.org Subject: [PATCH v2 25/35] splash: make splash_video_logo_load() available to boards Date: Sat, 7 Nov 2026 15:32:15 +0100 Message-ID: <20261107143241.2236511-26-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com> References: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 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 --- Changes in v2: - Add Reviewed-by tag common/splash.c | 4 +--- include/splash.h | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.43.0 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);