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 6FBABC38142 for ; Mon, 23 Jan 2023 08:07:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3FCA856FA; Mon, 23 Jan 2023 09:07:41 +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="GqBRLplF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E5A9856F3; Mon, 23 Jan 2023 09:06:42 +0100 (CET) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 E1E4785704 for ; Mon, 23 Jan 2023 09:06:31 +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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30N86OUp059836; Mon, 23 Jan 2023 02:06:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674461184; bh=l9RtYN3GNaF7HWVMt59VRHeZdvJYn24RFDfWMRlI1jo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GqBRLplFRbb3GKf3OaWWGtf5Z32CBpp4Uvz4UH/fyFB58n8u6kQTV1sFJapVBd0/M tDlpfFCR8RGQWlOH0fLCNwfVmrQvRvQU7tEnB293sCp3UVBtH3y8uHwMcTllek4W6x 7gNh3X5NYXdGjdYKkVjGG1vF83H6elQExIl1/+Z0= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30N86OgJ058910 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Jan 2023 02:06:24 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 23 Jan 2023 02:06:24 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE115.ent.ti.com (157.170.170.26) 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; Mon, 23 Jan 2023 02:06:24 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30N86Nnf010718; Mon, 23 Jan 2023 02:06:24 -0600 From: Nikhil M Jain To: CC: , , , , , Subject: [PATCH 5/6] board: ti: am62x: evm: Add splash screen support Date: Mon, 23 Jan 2023 13:36:14 +0530 Message-ID: <20230123080615.9217-6-n-jain1@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230123080615.9217-1-n-jain1@ti.com> References: <20230123080615.9217-1-n-jain1@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 at partition 1:1. Probe DSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index d65ee1d696..a75c5365c8 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,37 @@ 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) { + debug("%s: Error device dss@30200000 tree not node added %d\n" + , __func__, ret); + if (ret != -ENODEV) + panic("Cannot get DSS device: %d\n", ret); + } + } return 0; } -- 2.17.1