From mboxrd@z Thu Jan 1 00:00:00 1970 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 24701C761A6 for ; Thu, 30 Mar 2023 17:41:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3EE8785F40; Thu, 30 Mar 2023 19:40:42 +0200 (CEST) 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="jLZEAePm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E49685F06; Thu, 30 Mar 2023 19:40:22 +0200 (CEST) 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 5C6F985F08 for ; Thu, 30 Mar 2023 19:40:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vaishnav.a@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 32UHeAeL112323; Thu, 30 Mar 2023 12:40:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680198010; bh=qWFcTdzE5W+EVd3ja/+u8YrbjgLMysgFNLML2uAsNGA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jLZEAePm7m0QT+PWzPPt9rW2vdeLPcIS2r14TdZl9jiRyD3lLxyGZ8XkdF0zrwNDI Qb/zcy8xQ6DvC/UX+umLlSa/cJqYtGZ1ez6BZl5o5pfmGEwz+gcI/jGSLRnxo5ulAu A/7ftxbs3Sk+NKdqO0kEs6sDmnk3X+SUxC3gfqac= 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 32UHeAEE011869 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Mar 2023 12:40:10 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) 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; Thu, 30 Mar 2023 12:40:10 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) 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; Thu, 30 Mar 2023 12:40:10 -0500 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 32UHe9Ys007637; Thu, 30 Mar 2023 12:40:10 -0500 From: Vaishnav Achath To: , CC: , , , , Subject: [PATCH 2/2] board: ti: j721e: Disable hyperflash fixup for J721E SK Date: Thu, 30 Mar 2023 23:10:05 +0530 Message-ID: <20230330174005.24950-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230330174005.24950-1-vaishnav.a@ti.com> References: <20230330174005.24950-1-vaishnav.a@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.8 at phobos.denx.de X-Virus-Status: Clean J721E SoM and J7200 SoM has hyperflash connected to the hyperbus interface, other platforms like J721E SK does not have a hyperflash available in the platform, limit the hyperflash fixups to J721E and J7200 SoM only. Fixes: 66a33f41e9ba ("ti: j721e: enable hyperflash spl fixup for j721e") Signed-off-by: Vaishnav Achath --- board/ti/j721e/evm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index d4e672a7ac..353422937e 100644 --- a/board/ti/j721e/evm.c +++ b/board/ti/j721e/evm.c @@ -111,6 +111,9 @@ static void __maybe_unused detect_enable_hyperflash(void *blob) struct gpio_desc desc = {0}; char *hypermux_sel_gpio = (board_is_j721e_som()) ? "8" : "6"; + if (!board_is_j721e_som() && !board_is_j7200_som()) + return; + if (dm_gpio_lookup_name(hypermux_sel_gpio, &desc)) return; @@ -511,6 +514,9 @@ static int __maybe_unused detect_SW3_1_state(void) int ret; char *hypermux_sel_gpio = (board_is_j721e_som()) ? "8" : "6"; + if (!board_is_j721e_som() && !board_is_j7200_som()) + return -ENODEV; + ret = dm_gpio_lookup_name(hypermux_sel_gpio, &desc); if (ret) { printf("error getting GPIO lookup name: %d\n", ret); -- 2.17.1