Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 220E9C433F5 for ; Thu, 6 Oct 2022 14:48:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78ADB84E45; Thu, 6 Oct 2022 16:48:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="CV5FWk1i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78EDC84DEE; Thu, 6 Oct 2022 16:47:56 +0200 (CEST) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1F32784E48 for ; Thu, 6 Oct 2022 16:36:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12f.google.com with SMTP id a17so1100375ilq.1 for ; Thu, 06 Oct 2022 07:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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; bh=F5zhAGLL/OmWBbifwxBnMLZY9mNROAcPXdz2eonu8oU=; b=CV5FWk1i6RhHcFNFO6EvTJitfo70sCqFyozx7Uo/hK6DVmCtyaSH+hhhaqYs2rvIHa y4Aqz9hee8E1Dmxzh8nw2Jd4cIf//Pd1MqrIVeRyPQj2zn0o2K5mDAGUg1HiKmiNRSvE 22p64MeY+MtRYHqZ7bhgyM08xBjBKVc87unsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F5zhAGLL/OmWBbifwxBnMLZY9mNROAcPXdz2eonu8oU=; b=vwKvNgNFNpXmmFFptISNCiVb93fql8QQyJfR+pf6ivqqJWanEtEVbBoJIIiJLh0FqM MmdwFkOGOGb/HHhb6wTSXjVBeJoBX6WuISJ6nCKs5ivyxARyUnHz337C91CHlPnK3lAL Hc784wMA1m8XYWPEizziIWgPU4RMSMqykqwNAaDZDYwwIzL2cZF8d+Clmk3sKgDDGDc1 jbvmt7pdRx2QvbgM6HymwlT/UVAw3W5ZsIVSu2+FMiS9R7pPiMKweK9P6X2WmvnZ0ye5 G4ALWc2z5Gz1Pv99V0Vo5s9NdXvLtgEqlpol5JnPrKYAgif1EQnnYgm03ulsRyiUVHPK BVLw== X-Gm-Message-State: ACrzQf2pBqPNQd8fUV7jL/vUd78ku48Rvbq+ZVP5Iqc4AWfs0sNmmO4T vjP1aOBj8YkQk07b2VhTcG5TRgrQ7U1uFQ== X-Google-Smtp-Source: AMsMyM6iB5TwxEMtiygTMrL85aAFSiadgfGpHSPEdDpaFYnkLRDdG+emkzR3hqPKnZLO1G8TG+xj7g== X-Received: by 2002:a05:6e02:1a03:b0:2f6:7b78:dae2 with SMTP id s3-20020a056e021a0300b002f67b78dae2mr2338308ild.284.1665067013309; Thu, 06 Oct 2022 07:36:53 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id g22-20020a056602073600b006a102cb4900sm388573iox.39.2022.10.06.07.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 07:36:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Anatolij Gustschin , Simon Glass Subject: [PATCH 07/16] video: Add function to obtain the U-Boot logo Date: Thu, 6 Oct 2022 08:36:09 -0600 Message-Id: <20221006143619.354301-8-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221006143619.354301-1-sjg@chromium.org> References: <20221006143619.354301-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean It is useful to show the logo from other code, coming in a later feature. Add a function to obtain it. Signed-off-by: Simon Glass --- drivers/video/video-uclass.c | 5 +++++ include/video.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 9f22da02528..fbe1ad169e9 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -406,6 +406,11 @@ int video_sync_copy_all(struct udevice *dev) SPLASH_DECL(u_boot_logo); +void *video_get_u_boot_logo(void) +{ + return SPLASH_START(u_boot_logo); +} + static int show_splash(struct udevice *dev) { u8 *data = SPLASH_START(u_boot_logo); diff --git a/include/video.h b/include/video.h index 4c216d851b6..2e68dd717ef 100644 --- a/include/video.h +++ b/include/video.h @@ -319,4 +319,11 @@ static inline int video_sync_copy_all(struct udevice *dev) */ bool video_is_active(void); +/** + * video_get_u_boot_logo() - Get a pointer to the U-Boot logo + * + * Returns: Pointer to logo + */ +void *video_get_u_boot_logo(void); + #endif -- 2.38.0.rc1.362.ged0d419d3c-goog