From patchwork Fri Aug 11 10:04:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Haller X-Patchwork-Id: 1820272 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=a4 header.b=A1qZ1Kli; 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RMjvr4ZShz1yf7 for ; Fri, 11 Aug 2023 22:36:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA8708693C; Fri, 11 Aug 2023 14:36:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="A1qZ1Kli"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3188D86909; Fri, 11 Aug 2023 12:04:58 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mickerik.phytec.de (mickerik.phytec.de [91.26.50.163]) (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 59C6F868FC for ; Fri, 11 Aug 2023 12:04:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=D.Haller@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1691748296; x=1694340296; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RbJgP4098y1GRTIl4Wp0YZj6BAdx1/xZm02GQxA4Y6w=; b=A1qZ1KlisgmU2h/PmT09h6JEaZ/ehKbai8kt6da4CMNSctFvzYC6PvJxu8itihPe q8BZu4v/306ieBbN0V6roIONExwQRi0ki9/gd4bub3rvNwFAx1I1kknGFEP5av0r nIvfPjDVcbLaOJVA3EberkppUkaM2T3r5gsHuczl5/0=; X-AuditID: ac14000a-923ff70000007ecb-01-64d607c74225 Received: from florix.phytec.de (Unknown_Domain [172.25.0.13]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 1F.A8.32459.8C706D46; Fri, 11 Aug 2023 12:04:56 +0200 (CEST) Received: from lws-dhaller.phytec.de (172.25.0.11) by Florix.phytec.de (172.25.0.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 11 Aug 2023 12:04:55 +0200 From: Dominik Haller To: , CC: , , , , , Subject: [PATCH] arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS Date: Fri, 11 Aug 2023 12:04:44 +0200 Message-ID: <20230811100444.32834-1-d.haller@phytec.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Florix.phytec.de (172.25.0.13) To Florix.phytec.de (172.25.0.13) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsWyRpKBV/cE+7UUgzWzGC3en5rIbjH3zQFW i5M3Wtkt3vw4y2QxddJmdou3ezvZLf6f/cDuwO7x6sAqdo+zd3Ywehy/sZ0pgDmKyyYlNSez LLVI3y6BK+PG3p0sBRPZKs4c62FpYJzE2sXIySEhYCJxdM4npi5GLg4hgSVMEpuufmADSQgJ PGWU+NXvBWKzCWhKTJ+0lRHEFhEwkNhycAdYM7NApsSFL9/B6oUFQiTa/swHq2ERUJXYeLeR HcTmFTCX6Hw6hQ1imbzEzEvfoeKCEidnPmGBmCMv0bx1NjOELSFx8MULZogbgOrXdLPC9E47 95oZwg6VmL/mO/sERoFZSEbNQjJqFpJRCxiZVzEK5WYmZ6cWZWbrFWRUlqQm66WkbmIEBbMI A9cOxr45HocYmTgYDzFKcDArifDaBl9KEeJNSaysSi3Kjy8qzUktPsQozcGiJM57v4cpUUgg PbEkNTs1tSC1CCbLxMEp1cBoUfp0bqe1y42Yo1PLnrw1DeWplAnPm8Vw0du6TOPM5i1TNzBk RRmv/8WyePWRtD3+9ydcdM87+EQs81rglGl9bjtCWJZLXxNMeMnAe+/26rK+0DkNmi3z9vtJ rb1gkjbVeeG1Z49vW/uYnuvYc2/Zsnmx2xr+2uZ4XmySeC7aIPOo/9eTXS6ZSizFGYmGWsxF xYkAV5JDGlQCAAA= X-Mailman-Approved-At: Fri, 11 Aug 2023 14:35:58 +0200 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.8 at phobos.denx.de X-Virus-Status: Clean Make that condition more generic by checking if the memory controller driver is enabled instead of using the EVM's config. Signed-off-by: Dominik Haller --- arch/arm/mach-k3/j721s2_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c index 712a7e253fa8..a5be84b147c0 100644 --- a/arch/arm/mach-k3/j721s2_init.c +++ b/arch/arm/mach-k3/j721s2_init.c @@ -219,7 +219,7 @@ void k3_mem_init(void) struct udevice *dev; int ret; - if (IS_ENABLED(CONFIG_TARGET_J721S2_R5_EVM)) { + if (IS_ENABLED(CONFIG_K3_J721E_DDRSS)) { ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev); if (ret) panic("Probe of msmc failed: %d\n", ret);