Message ID | e690452b41bbee0fa76262e4beac3310f4ecfae5.1629371983.git.michal.simek@xilinx.com |
---|---|
State | Superseded |
Delegated to: | Michal Simek |
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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=MeIrDELM; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Gr2Pw08P5z9t18 for <incoming@patchwork.ozlabs.org>; Thu, 19 Aug 2021 21:20:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5D7283131; Thu, 19 Aug 2021 13:20:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com 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" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="MeIrDELM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9962182ECC; Thu, 19 Aug 2021 13:20:05 +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=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DBE5E82F03 for <u-boot@lists.denx.de>; Thu, 19 Aug 2021 13:19:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-wr1-x430.google.com with SMTP id x12so8492318wrr.11 for <u-boot@lists.denx.de>; Thu, 19 Aug 2021 04:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L2YmIxCetEKcrATUdRV9Gj+uelYTA0o2yiYJ7Ns/VE0=; b=MeIrDELM6th1yRo89o4yiKKchNw3fU8oZhQVdNrI3zbeZfnT/mv436oCa4XHAz6k0S 7DbCxz3fDpCOGKkP8El9yRfFqSZNoWVShpoEz9OXZDcS39jvPnwVFyjMRF/XSo4lzOPf 23ywBPyYufLjHIuPiizBmGvkqqkZjtGevASUBRkf3rgKdUH4RDiNkmIHcDltNsefwazz sgtZKPJ5INIRCxPgvqwgV50tYC5H7Zi2bY6lyp1JHaKOp1O4siP2B8sUCF/3DC3lX4me pVFdsgcd0VurkT1CZ4tOSzpfeasimXJ9Upqrnr9mFIDzJhfxir+jpEmpCG1fTenNJwut i4eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=L2YmIxCetEKcrATUdRV9Gj+uelYTA0o2yiYJ7Ns/VE0=; b=WvKiVph4h1Xa+5T3cffWE/xHwzgIF9RztcNKTs8Zj9asF4E3IKzE1ARYGthZtjHpPW ETPSLPWgqbXRsXkhy4zLD7v0xdYww9vl5tgKJp+t4UwbNRFVJMQ8j38sGVbvgeoDXHCQ 6tcsq+Z6LqIbfIeWs3ZU5wvxmcJaqjv4SGG6dUc/THVDcE3wrekW/dCYcZVaf/ayJqeF cYNTsly6VGWxftYUsUjrQ4DNjW11qSShZamqzlcHkdtttYrRnY6rTdJ+Jo9HpSNAAB+Y i9BhkwOd4k6jU8ghG3ziENyUmwFQsjm2wwBT6EoatXZeanlDSS7nrQgI/381fVU81zR3 hADA== X-Gm-Message-State: AOAM532jy+ekgu4Wbz3xAd740rK6TLz85M7frzkj7YjaN7p3YXXP00lL d8/qNLR8l6m8e/wK58ycGbmC3svZ8occpK0/ X-Google-Smtp-Source: ABdhPJz6q44HRGKhDKBRhRyuSiAcjAfKmPOjmg9ux8bB2shkfBJ73RV5LtBwUnScliOLXz6+mNoOCw== X-Received: by 2002:a05:6000:12d0:: with SMTP id l16mr3213723wrx.166.1629371997305; Thu, 19 Aug 2021 04:19:57 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id c1sm1915231wml.33.2021.08.19.04.19.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Aug 2021 04:19:56 -0700 (PDT) From: Michal Simek <michal.simek@xilinx.com> To: u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>, Michal Simek <monstr@monstr.eu>, T Karthik Reddy <t.karthik.reddy@xilinx.com> Subject: [PATCH 02/10] xilinx: Use variable for passing board_name Date: Thu, 19 Aug 2021 13:19:41 +0200 Message-Id: <e690452b41bbee0fa76262e4beac3310f4ecfae5.1629371983.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <cover.1629371983.git.michal.simek@xilinx.com> References: <cover.1629371983.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 |
xilinx: Add support for DTB reselection
|
expand
|
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 1458b31c21a9..db9705c1b7e4 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -436,11 +436,13 @@ int board_late_init_xilinx(void) } #endif +static char *board_name = DEVICE_TREE; + int __maybe_unused board_fit_config_name_match(const char *name) { - debug("%s: Check %s, default %s\n", __func__, name, DEVICE_TREE); + debug("%s: Check %s, default %s\n", __func__, name, board_name); - if (!strcmp(name, DEVICE_TREE)) + if (!strcmp(name, board_name)) return 0; return -1;
Use variable which points to DEVICE_TREE by default. The reason for this change is to enable DTB_RESELECT and MULTI_DTB_FIT where board detection can be used for change DTB at run time. That's why there must be reference in board_fit_config_name_match() via variable instead of hardcoding it which is sufficient for that use case. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- board/xilinx/common/board.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)