Message ID | 20210626145602.15702-9-sinthu.raja@ti.com |
---|---|
State | Changes Requested |
Delegated to: | Lokesh Vutla |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.a=rsa-sha256 header.s=google header.b=mW2gof8Y; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GBxzN3yc5z9sWM for <incoming@patchwork.ozlabs.org>; Sun, 27 Jun 2021 01:06:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F4BC82C5F; Sat, 26 Jun 2021 17:05:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.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=mistralsolutions.com header.i=@mistralsolutions.com header.b="mW2gof8Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DDD8C82C2B; Sat, 26 Jun 2021 16:59:29 +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=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from egress-ip33a.ess.de.barracuda.com (egress-ip33a.ess.de.barracuda.com [18.185.115.192]) (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 0B0A082C2A for <u-boot@lists.denx.de>; Sat, 26 Jun 2021 16:59:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sinthu.raja@mistralsolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx-outbound47-108.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 26 Jun 2021 14:59:26 +0000 Received: by mail-pj1-f71.google.com with SMTP id z3-20020a17090a4683b029015f6c19f126so7701469pjf.1 for <u-boot@lists.denx.de>; Sat, 26 Jun 2021 07:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g6b+nkKWC3DSpIlccGRuMsKZSQwavEIf2Hxh/uiJQLU=; b=mW2gof8YyoNmBF+xqmqrC59saqnESH8Gdb7duzNdvjfzluaUoMmxrcYNfCwGX6Eqdb BoySI9xOAI1Z2Yhn4uSP3Ee830B9rvjkDYIuy7LgdTZjavE+YB602WYeNr70eT1cDPrG Sod7sK/EjOZFeOPI5hefZbt18EM/WxZ0f++l8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g6b+nkKWC3DSpIlccGRuMsKZSQwavEIf2Hxh/uiJQLU=; b=lsPpV66mMbXOJMezszaYz6Cqx2f5ohSCKhgApe0ncLD3aoCDseqqRXk/CTr4exJ9YX 8ExNm1/4rDtBSrp5u6sVkIiiEFk/xNopETgvDLrkA7wr+L78w/5lpew23EqhDPCkGkIW ozfM3RNwveWviQ3kHi3OlsB1E6hrbIFhfOW+aL/gYKNAShaMAo3MVW9pa99NT9qtGIFg gpBxdpo8j339o8EobkqSsrES92NrsAyUzseyBcgQOyaCh8NeiBfKW+Z8/BZsI2zTRPC/ XH8exgCFMkEXiXE+leYT57kzS0S3Sww9bSxgUt0/6WvLCYMDkE3A4Jgv2rnd025gUnmw nRzw== X-Gm-Message-State: AOAM532/N4b2rX4L7ku/woQrAhRTf1YJRxYKhvfBLJQD87RjDY+eFzRo JzGe9Jb8GxU/F/YQ5x5/iIzP18SlHD0F3qXwMbSFpudeWXk8BpVUlSE7rP/3kISVrNWnelz8Pqz 1o24D9NSgaYYLF2yEMxmw/rqBoaQxFbB2HOgKdD69Le8CrQKvcw== X-Received: by 2002:a17:90b:2504:: with SMTP id ns4mr14279177pjb.140.1624719564737; Sat, 26 Jun 2021 07:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2DX3TEkEUBkAx5tYsFsPKCJDQVoDUol/L74ibJw3tN7wOGc1R1uURzSbuvdhW/6Cd+mvboQ== X-Received: by 2002:a17:90b:2504:: with SMTP id ns4mr14279170pjb.140.1624719564570; Sat, 26 Jun 2021 07:59:24 -0700 (PDT) Received: from localhost.localdomain ([49.207.221.44]) by smtp.gmail.com with ESMTPSA id g18sm8769245pfi.199.2021.06.26.07.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 07:59:24 -0700 (PDT) From: Sinthu Raja <sinthu.raja@mistralsolutions.com> X-Google-Original-From: Sinthu Raja <sinthu.raja@ti.com> To: u-boot@lists.denx.de Cc: Praneeth Bajjuri <praneeth@ti.com>, Vutla Lokesh <lokeshvutla@ti.com>, Amarnath MB <amarnath.mb@ti.com>, Sinthu Raja <sinthu.raja@ti.com> Subject: [PATCH 08/17] board: ti: j721e: Add support for detecting multiple device trees Date: Sat, 26 Jun 2021 20:25:53 +0530 Message-Id: <20210626145602.15702-9-sinthu.raja@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210626145602.15702-1-sinthu.raja@ti.com> References: <20210626145602.15702-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1624719565-312140-3418-28682-1 X-BESS-VER: 2019.1_20210623.1648 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.233199 [from cloudscan11-203.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-Mailman-Approved-At: Sat, 26 Jun 2021 17:05:02 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
arm: k3-j721e: Add support for J721E EAIK
|
expand
|
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index 0de22da5b7..39db148321 100644 --- a/board/ti/j721e/evm.c +++ b/board/ti/j721e/evm.c @@ -85,8 +85,17 @@ int dram_init_banksize(void) #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { - if (!strcmp(name, "k3-j721e-common-proc-board")) - return 0; + bool eeprom_read = board_ti_was_eeprom_read(); + + if (!eeprom_read || board_is_j721e_som()) { + if (!strcmp(name, "k3-j721e-common-proc-board") || + !strcmp(name, "k3-j721e-r5-common-proc-board")) + return 0; + } else if (board_is_j721e_eaik()) { + if (!strcmp(name, "k3-j721e-eaik") || + !strcmp(name, "k3-j721e-r5-eaik")) + return 0; + } return -1; } @@ -150,6 +159,9 @@ int do_board_detect(void) { int ret; + if (board_ti_was_eeprom_read()) + return 0; + ret = ti_i2c_eeprom_am6_get_base(CONFIG_EEPROM_BUS_ADDRESS, CONFIG_EEPROM_CHIP_ADDRESS); if (ret) {