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: 1394 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 10A3E3F03F for ; Wed, 17 Jun 2020 22:25:25 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id n65sf2581800pfn.18 for ; Wed, 17 Jun 2020 13:25:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592425524; cv=pass; d=google.com; s=arc-20160816; b=XWq5zHWgUnDipyl5BNXA23VXlJStgNBCoVj3zUah7LAX6zQvp3XTyYaI0FzMM2fJT4 FWx9TKjSUEEZCrGAMZnBkjEUH9c5dXqd/xCy3JYJsLoavh7I4GeQ7YO922OA2W15atEF btKDXYrE5+yUZjWkuMhbijXz4xiEOqanXeiAdDXz7HAi2zjZEYIHI7Vl4LRcfInXtp24 4dfXaSn0Dmyud1ziFXrHOkezNJANqQsmmv46wZdrpeLHglC9FEaQTFEbjzRhIWXQM9Kq 9Hdsq8gWY4VCv30jT4po4nFcxUVqn0EXpnqVLWijzrfO1H+VDrXz5o5V12ZqQwuHNhdZ lFNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wL6e/SUqrtuN36LOOtQX5EF4xYgXm4rtXD7zAaJMvy0=; b=WINYn73R+2JCM95ZUy4izz2aRd96MKEMKxPOaZN94sJIBj/OkU5UVNtIeLan7GxzYx 7gfII1YQURejpFHd4Qe5NN5vtpzb32UOGefFYYXYFuKhgLu6E4V833rBdA8kPbzT/7Fr MrYiKtWfGVliv4L0oWxEz8Ybsr9mOpHvvvXP/T2Ppydh9Sx3Cy7lWp74sI0cZNRUyYru udNhOtYZY0HVF3GVgVYKfNoXex6+rD64siZo1RAC7J08ihCz6bPeTfbwXtA6+kJ36b+i KzufLTBMrjsSYpO5nO+aTiqjJeaXxwPnDZbxxoSwnjotXTyJzQNIvNhDdN+KBr8ok/Is HNbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LhoUmG+W; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wL6e/SUqrtuN36LOOtQX5EF4xYgXm4rtXD7zAaJMvy0=; b=SK5UqgdG3RGI+10VxNwacCrAOZK21TD0+2hLcPYWEEgM5uL+0d237LRV8O7b+F7Ud6 MBfY62Ozzz96fA9LjofzIpJv9I19mcDqnElxEOYLnfLKbyZBjCBCozCTVDilZ4zCSeIR h2E/VfuK5he8c9DMACPXV5xofCGeSlZR0ySRQ= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=wL6e/SUqrtuN36LOOtQX5EF4xYgXm4rtXD7zAaJMvy0=; b=iFyXNspMJ7osZwRydE10809vi6hugSaL36fzPdzKr6tC8QXSlx45gdiTr3xRn88srI MmMAXFcnsn7CzhjY/Ww9ObApqOrcsIh+YksQWPknOJbcQp0j3K2SSgoyOsswpaeuAYaU aVChu6adJu1qrIPZMlMBwRhxaF754G7JvMv7QwgzmqQnQE+BJ1on+5zTDr8l6TbmiJs8 57VPXkp9+RZpCFvsGgPeaklNy5XLI3PxXL3r6fyVxmQXz/jaCIbcD80D9hmNaoFvQ2/T rLenxZZMbqTmdHR88fbK+Flp05E43+rlEodd2L7X3xBZP7tWlqRIn8TxOsFopu/5pctn ueLw== X-Gm-Message-State: AOAM532tiubRvyXyptq4HYLlMswr37xJIILhIdQuFSSjLttfL+Axryxi tYU3n6rNvuJvpB3/4j1yF00uaDfj X-Google-Smtp-Source: ABdhPJyZ3yrHlRSUwb6fcriot6x2Yy/6vuO3Fct3rvawffEztS/DZJte7xJylM6l0Vu79TKrd3NZyA== X-Received: by 2002:a65:4149:: with SMTP id x9mr509644pgp.424.1592425523847; Wed, 17 Jun 2020 13:25:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:718c:: with SMTP id i12ls1364200pjk.1.canary-gmail; Wed, 17 Jun 2020 13:25:23 -0700 (PDT) X-Received: by 2002:a17:90a:7504:: with SMTP id q4mr740065pjk.44.1592425523385; Wed, 17 Jun 2020 13:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592425523; cv=none; d=google.com; s=arc-20160816; b=NRJy6NPdF60+q0Mx5QaRAshF27DQWE4Ec4m0BT3YpjyPfONNV3COgU6qXz5n9CWuDE TAaJeXovJpI8bC+X5sWNAV1P2/TGXrcZF5E/HQ0FZCjv+Xu7tibQm/Q7CLDCfFZ7OY37 Pb0PyW6pYvlkkN9eo7z3hnAwsvvrOFIbYlX0pt7+xCKpe0eLyjX7HxjqyLZE1hFVZV88 Amy6y3BjvMYU4Xthn0ks/6D/tiUQge/7I1x59ZIU4olfuXuKKelBdhAoFTNMeziFlIq7 6EtZPqeepZfG8j6P25f7ZAwwAhiJlphccJQzSTilJKO4PAPPE+RFFFOjnJYiUaamIdL7 ilug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zWl2ExJUzKbV1+LtSVnVjywX4EnE8KevhKySP6VLOSk=; b=NyiL0gy716MDEyRGrzM+rAOLglmK1rNFA/zfzlHMmhcgHg4bWJeMkIyv7Oj7k4l5/l t9GoudBp0WL5mOyIWU/RVVtdi7AVmLwDZTkNv48FmviqLeaKIHNgOTaOY+9fGhvFjJmV hwqJPfDE9qwdPzuB3OIREGz9dPvVcTwZq0RflX4jyRGOQj9KFt/jJ5ZNzLUs/wGcW9sO V+/5SH8b9QmtP7to1LMJeVvzTF1wHLXj12fKZnObM7bhssQcqj7zPE9Vt9zkI6RkDqXA fog7Q+bCExSKHldqN/Dgp1GOks1X/oB8VU9VH6++tjwjUiHKq1cZNoOQqXMkJvH8Cn1v h+Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LhoUmG+W; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y3sor882556pju.8.2020.06.17.13.25.23 for (Google Transport Security); Wed, 17 Jun 2020 13:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LhoUmG+W; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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