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 992E4EB64D9 for ; Tue, 4 Jul 2023 17:31:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F6E58556F; Tue, 4 Jul 2023 19:31:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com 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=amarulasolutions.com header.i=@amarulasolutions.com header.b="fm0KiTlu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24ECD85DB6; Tue, 4 Jul 2023 19:31:31 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 0CA14847A5 for ; Tue, 4 Jul 2023 19:31:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-992f6d7c7fbso498274466b.3 for ; Tue, 04 Jul 2023 10:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1688491888; x=1691083888; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eDuNISSxUV/7Xf/isKXESsPTyCzZ1yZMoYgPZaKGWr8=; b=fm0KiTlubDeX/cYpFHhABHsyB99Y2Wy6Gwy0roNB8dsJ1GF/iLiJ/gYUBvoUxTeQu+ 7Nlm6IAk/D32XxP7I3oz1NPlPV+TXQ48Q1rM4BLKoFYek2hri7sVVLuwRsTJC8sumgmm fPGdJD5Nc8wvoie4w9J3zgRgm7RSoyMwGxAik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688491888; x=1691083888; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eDuNISSxUV/7Xf/isKXESsPTyCzZ1yZMoYgPZaKGWr8=; b=JrijAx3HOSoGHombsQToP7qqhj1zuDMvz6+beuLJXI9AdlBf7IouLYdK/byWZYj4Xv FTS6qWN9zewPAeJBeiiHSvRH49zgl1MvS5inCwNHb/tgJWfTpoNAWZCXKx/j7orpL2Tp aNoLFmQAZR12TuvZiplW45ovYQWV+fFCcRmIBv5BQBgPcIh09UHQosYTEdID0qYBqoxS kh45v0wPgU1F/GZQLVMPN68pR+vjfI8nbMeorIgUMU1vWqAB6A74Xwop21BQFru4rynR iepAjucq3Z2sRfWG/43LyzDaZMKLRbaul0S0dsidPT+2LY97tgqlB4rlFLJoi3rzi32h LOng== X-Gm-Message-State: AC+VfDwm6fgFCPQ+KqVnfRoxbvOAP0zS2zH7i1brevTiB9Bwm7iHIT4Q +Uyxsj8PIN1uKs58wCGn3CBxDqt3HzKaIwxV3UA= X-Google-Smtp-Source: APBJJlFoVq3QYainEH0Y4MBnyKVHApZF3WiZzku9gQY3CX/B33faNP1fIR6E0Va/FnbkRHL84k3bzw== X-Received: by 2002:a17:906:1b54:b0:98d:696a:531c with SMTP id p20-20020a1709061b5400b0098d696a531cmr9577498ejg.40.1688491888253; Tue, 04 Jul 2023 10:31:28 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id hk18-20020a170906c9d200b0099290e2c163sm8191263ejb.204.2023.07.04.10.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 10:31:27 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Dario Binacchi , Grzegorz Szymaszek , Patrice Chotard , Patrick Delaunay , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2] board: stm32mp1: add splash screen on dk2 Date: Tue, 4 Jul 2023 19:31:21 +0200 Message-Id: <20230704173121.589620-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 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.8 at phobos.denx.de X-Virus-Status: Clean Display the STMicroelectronics logo. Signed-off-by: Dario Binacchi --- Changes in v2: - move "splash.h" and "st_logo_data.h" headers before "syscon.h" in order to keep includes sorted alphabetically. - remove "logo" variable and pass "(ulong)stmicroelectronics_uboot_logo_8bit_rle" directly to the bmp_display() function. board/st/stm32mp1/stm32mp1.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 1a1b1844c8c0..ebd3948d519c 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -31,8 +31,11 @@ #include #include #include +#include +#include #include #include +#include #include #include #include @@ -684,6 +687,14 @@ int board_init(void) fw_images[0].fw_name = u"STM32MP-FIP"; fw_images[0].image_index = 1; #endif + + if (IS_ENABLED(CONFIG_CMD_BMP)) { + if (board_is_stm32mp15x_dk2()) { + bmp_display((ulong)stmicroelectronics_uboot_logo_8bit_rle, + BMP_ALIGN_CENTER, BMP_ALIGN_CENTER); + } + } + return 0; } -- 2.32.0