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 42926C54EBE for ; Fri, 13 Jan 2023 12:40:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F612854D1; Fri, 13 Jan 2023 13:39:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.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=ti.com header.i=@ti.com header.b="rxW12VcW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34FE0852B5; Fri, 13 Jan 2023 09:29:48 +0100 (CET) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 50CB78532C for ; Fri, 13 Jan 2023 09:29:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-jain1@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30D8TekL061446; Fri, 13 Jan 2023 02:29:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673598580; bh=OCnxjAcZHKqC9VWRMWmHcvp6PDXVZAxyo2QbLsE5Ias=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rxW12VcWreLoUsOHXRkDtVVY09+fM4PUSI6a9yfgd+xtnciIe1TjtYc3fMPeb2Sxe /J/bi1Cw4hB+9ghj66++eNj0Iy8Yq55zA7mU3ivQ7n0t3xCiMakE57uEcu4bxqt2vb 3F+IJdF4mK1YKSBr7DWYTHj5b9J+7QPFC2L90ZOk= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30D8Te5M026788 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 13 Jan 2023 02:29:40 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 13 Jan 2023 02:29:39 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 13 Jan 2023 02:29:39 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30D8Td0k007061; Fri, 13 Jan 2023 02:29:39 -0600 From: Nikhil M Jain To: , CC: , , , , , Subject: [PATCH 8/9] board: ti: am62x: evm: Add splash screen support Date: Fri, 13 Jan 2023 13:59:26 +0530 Message-ID: <20230113082927.9524-9-n-jain1@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113082927.9524-1-n-jain1@ti.com> References: <20230113082927.9524-1-n-jain1@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Approved-At: Fri, 13 Jan 2023 13:38:29 +0100 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 Splash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC 1st partition. Probe TIDSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index d65ee1d696..87d7ebc578 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include #include @@ -18,8 +20,33 @@ DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_SPLASH_SCREEN + static struct splash_location default_splash_locations[] = { + { + .name = "mmc", + .storage = SPLASH_STORAGE_MMC, + .flags = SPLASH_STORAGE_FS, + .devpart = "1:1", + }, + }; + +int splash_screen_prepare(void) +{ + return splash_source_load(default_splash_locations, + ARRAY_SIZE(default_splash_locations)); +} +#endif + int board_init(void) { + if (IS_ENABLED(CONFIG_VIDEO_TIDSS)) { + int ret; + struct udevice *dev; + + ret = uclass_get_device_by_name(UCLASS_VIDEO, "dss@30200000", &dev); + if (ret) + panic("Cannot get DSS device: %d\n", ret); + } return 0; } -- 2.17.1