Message ID | 20240206-b4-upstream-j721s2-avs-v1-7-b75043c59969@ti.com |
---|---|
State | RFC |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=WOLioIQe; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TTj7J39wNz23g7 for <incoming@patchwork.ozlabs.org>; Tue, 6 Feb 2024 23:22:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6CB0087CE8; Tue, 6 Feb 2024 13:21:42 +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="WOLioIQe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4055987CEC; Tue, 6 Feb 2024 13:21:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 387F887C68 for <u-boot@lists.denx.de>; Tue, 6 Feb 2024 13:21:39 +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=m-chawdhry@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 416CLboY118834; Tue, 6 Feb 2024 06:21:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707222097; bh=dlUILaWQFBeuyDxfIYHFo4WiblUaXfabpOg3HKkgR2U=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=WOLioIQeiNXAWZYpwXu33AUBRR6mPM0GjqbzQSEUSBb+7H0q5c/0mvhN693In3653 BzwJExtCX08hRr+QSDWPsee7Rbg8eX0D8BNV4tKJpjoqVzhFxQgvhqUxi/x8sIzKOh 5VzitVvnk2HFAJ/ih+KNtRel9ArySN3WVu2AkLE0= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 416CLbP2078831 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Feb 2024 06:21:37 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 6 Feb 2024 06:21:36 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 6 Feb 2024 06:21:36 -0600 Received: from [127.0.1.1] (uda0497581.dhcp.ti.com [10.24.68.185]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 416CLAi6081923; Tue, 6 Feb 2024 06:21:34 -0600 From: Manorit Chawdhry <m-chawdhry@ti.com> Date: Tue, 6 Feb 2024 17:51:14 +0530 Subject: [PATCH 07/10] arm: mach-k3: j721s2_init: Initialize AVS Class 0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240206-b4-upstream-j721s2-avs-v1-7-b75043c59969@ti.com> References: <20240206-b4-upstream-j721s2-avs-v1-0-b75043c59969@ti.com> In-Reply-To: <20240206-b4-upstream-j721s2-avs-v1-0-b75043c59969@ti.com> To: Jaehoon Chung <jh80.chung@samsung.com> CC: <u-boot@lists.denx.de>, Neha Malcom Francis <n-francis@ti.com>, Keerthy J <j-keerthy@ti.com>, Udit Kumar <u-kumar1@ti.com>, Aniket Limaye <a-limaye@ti.com>, Tom Rini <trini@konsulko.com>, Vignesh Raghavendra <vigneshr@ti.com>, Andrew Davis <afd@ti.com>, Nishanth Menon <nm@ti.com>, Manorit Chawdhry <m-chawdhry@ti.com> X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1707222070; l=763; i=m-chawdhry@ti.com; s=20231127; h=from:subject:message-id; bh=bC3GGqLjfCjbTypmndRIEBUeLpyVuz0CF5JrSPJfD14=; b=tQ7Nygc2zDKAHyA7FigAAVcDlAo/7xyzVn/KT5oGMn26dS6HUdNN7GoAGNCzYzneSayHvhPaX IXcw06FSHQ+ARqc5kXQsHJTsfT/7OrQcMtYgtU/2dQdCASdlAPRyQPh X-Developer-Key: i=m-chawdhry@ti.com; a=ed25519; pk=fsr6Tm39TvsTgfyfFQLk+nnqIz2sBA1PthfqqfiiYSs= 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add AVS support for J721S2
|
expand
|
diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c index fb0708bae162..7080c519cf4c 100644 --- a/arch/arm/mach-k3/j721s2_init.c +++ b/arch/arm/mach-k3/j721s2_init.c @@ -206,6 +206,14 @@ void k3_spl_init(void) /* Output System Firmware version info */ k3_sysfw_print_ver(); + + if (IS_ENABLED(CONFIG_CPU_V7R) && IS_ENABLED(CONFIG_K3_AVS0)) { + ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs), + &dev); + if (ret) + printf("AVS init failed: %d\n", ret); + } + } bool check_rom_loaded_sysfw(void)
Initialize AVS Class 0. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> --- arch/arm/mach-k3/j721s2_init.c | 8 ++++++++ 1 file changed, 8 insertions(+)