From patchwork Wed Jun 17 20:24:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1311496 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=LhoUmG+W; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49nGmw5GZ3z9sRW for ; Thu, 18 Jun 2020 06:26:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 341DA82037; Wed, 17 Jun 2020 22:25:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="LhoUmG+W"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 72B0982036; Wed, 17 Jun 2020 22:25:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (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 774F881CEB for ; Wed, 17 Jun 2020 22:25:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pl1-x643.google.com with SMTP id v24so1461969plo.6 for ; Wed, 17 Jun 2020 13:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zWl2ExJUzKbV1+LtSVnVjywX4EnE8KevhKySP6VLOSk=; b=LhoUmG+WF1mBMKKSQ1G0h7hWKFtNQO5c59WFsQBsKzfjOd5joiKfzc7eYYiZ8jEprj SgonbxnQpbfhwbZKHa8o6GCOPCwVprwB6hQNHhZ3h5Ly4j0U9AjWikTljoNbszbGJEPQ xetDOcanerGX7GqEVRoheVOm1sy2Uawc6qZaM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zWl2ExJUzKbV1+LtSVnVjywX4EnE8KevhKySP6VLOSk=; b=iKErHSLXGVZemQnNXg4eayb9CHEO/oWwTloveYm5BvDWeLa/D6q8hvodxD7k5uzn91 mQdOAaWqYBec4OsgU8MMiI3WqfkR8MC+KJiVL4UTmSjXeHALGBz54XrP7+vUj39pxbzd KhlQUOt0WwZY9eek4JsZPgkdZHkbG9/rI67Uju4wRFAXh30UzKjGzfgBT75xH2L6Rxis Y3h4nu3Uq7A9mR3rx4uTm5rG9tmNXT1FhqliD5GeNOGbcc7oFSMjQY3o6Txk8L8T9JIx wkXuMfs0m0OISJ2PgsJ9Lj/JyFGHHZUqjgatinGCLkQGfNQxmBDTIZ5JxkGWNX2q9OMl pIww== X-Gm-Message-State: AOAM533qDw7R14o6EjY4HRsdj8TzCVPFjIMfJ1DP4SmGtcI3bFjr2pei 9NZa1LnSX+jEGyJHQId75T2mow== X-Google-Smtp-Source: ABdhPJxgNIp/un4UNmdcMYywYBtbBRpoiAq9UwSlExQ/csd6KLvwzuC4v+6AY4ceqXJ1zoYFbdH9iQ== X-Received: by 2002:a17:90a:7c07:: with SMTP id v7mr783712pjf.38.1592425523103; Wed, 17 Jun 2020 13:25:23 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:99e:1516:4428:c83b]) by smtp.gmail.com with ESMTPSA id b1sm376613pjc.33.2020.06.17.13.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 13:25:22 -0700 (PDT) From: Jagan Teki To: Anatolij Gustschin , Maxime Ripard , u-boot@lists.denx.de Cc: Hans de Goede , Zoltan Herpai , Aleksei Mamlin , Priit Laes , Paul Kocialkowski , Chen-Yu Tsai , Phil Han , Siarhei Siamashka , Peter Korsgaard , Stefan Mavrodiev , Icenowy Zheng , Quentin Schulz , FUKAUMI Naoki , Marcus Cooper , Stefan Mavrodiev , Iain Paton , Olliver Schinagl , Ian Campbell , Stefan Roese , Jelle de Jong , Adam Sampson , Tom Rini , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 2/3] sunxi: Enable splash screen support Date: Thu, 18 Jun 2020 01:54:36 +0530 Message-Id: <20200617202437.301108-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200617202437.301108-1-jagan@amarulasolutions.com> References: <20200617202437.301108-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Enable splash screen support for sunxi platforms. The splash screen image, sunxi.bmp would load left corner on screen in 0,0 splash position. This is default legacy logo position on sunxi platform and also it would be common practice to have at 0,0 since the default sunx.bmp is nominal size. Signed-off-by: Jagan Teki --- Changes for v2: - new patch include/configs/sunxi-common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 5b0bec0561..308d7a42aa 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -270,6 +270,15 @@ extern int soft_i2c_gpio_scl; #endif /* CONFIG_VIDEO_SUNXI */ +#if CONFIG_IS_ENABLED(CMD_BMP) +# define CONFIG_VIDEO_BMP_RLE8 +# define CONFIG_SPLASH_SCREEN +# define CONFIG_SPLASH_SCREEN_ALIGN +# define CONFIG_BMP_16BPP +# define CONFIG_VIDEO_LOGO +# define CONFIG_VIDEO_BMP_LOGO +#endif + /* Ethernet support */ #ifdef CONFIG_USB_EHCI_HCD @@ -475,6 +484,8 @@ extern int soft_i2c_gpio_scl; #endif #define CONSOLE_ENV_SETTINGS \ + "splashpos=0,0\0" \ + "splashimage=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS