Message ID | 20220907022733.66423-11-sjg@chromium.org |
---|---|
State | Accepted |
Commit | b215b6034c4e75d8eb0a958574b7ec3d7754b180 |
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; 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: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=FC2pWyvN; 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)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MMmTZ6LNmz1yhd for <incoming@patchwork.ozlabs.org>; Wed, 7 Sep 2022 12:31:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1011C84AEB; Wed, 7 Sep 2022 04:28:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="FC2pWyvN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 65E3184AB3; Wed, 7 Sep 2022 04:28:37 +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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (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 AB65C84AA1 for <u-boot@lists.denx.de>; Wed, 7 Sep 2022 04:28:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-12243fcaa67so32768025fac.8 for <u-boot@lists.denx.de>; Tue, 06 Sep 2022 19:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=PzqjVhLpmxcuhIN08l+CVypRDlss8j0aDAiPVQsDZlU=; b=FC2pWyvNHQzxbhmJBrSvKaoh7KuF7sc+Jf9ocQ+v4SEst6nOjSqqhD9yoZcyWo8bMP Yv2xeODpQfu8l0tHzYjKToxSqYlYBZI/b9Epzha8ym9QTher/Ckm5BjesOLd+IRfUziK 1LECh7X3i6qjGfk9a8uK2YHmsZcDPI+3HBJrc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=PzqjVhLpmxcuhIN08l+CVypRDlss8j0aDAiPVQsDZlU=; b=utSvLtlc5g5QN5V2MHrJbMkhFlS0CfJxAGl8xbLdYQ1nH7/00n/Oqggf0V4ux/iX60 RtW6Om0HEavBPGZH9tkY57+akIFvnsdufdchJjYOHD4wB9Cmb8tT4lmfe/GOch2n8rTk 1lnLf2GGJTmZGJEM/AeVeU/F4BH2qgD/bXIEHLamK90KHiRa9F5HDP8slTQKZwh7Xlkd S51H3agITwLbDFfJ2wNsmv5VcNBe5Wl7tpP52wRheViY3Q37mSokJ2kFS4PGfKIGR7rG T6+pfgEwpYy/xY+tjYu5epg+AFZrEA3OUnl/2hrRQxBBqBZNZnp/jHl+fcleoguvDm+C XiEg== X-Gm-Message-State: ACgBeo2j8deHnTuaROJVhC3ZkakbzZ8ajuTeifGeGVavsaSq+MiHa9wc lbsKhIT0LVULvtyDQRva4BiUsqZIo9o9ew== X-Google-Smtp-Source: AA6agR5SdiI7EgztiW8qQpHWqYYPdTYlqIKFuCLKePsN5I9CXYa9r+7/QU46yREvTWAU1AKX+aCwDw== X-Received: by 2002:a05:6808:1995:b0:343:4888:fb7b with SMTP id bj21-20020a056808199500b003434888fb7bmr11440890oib.163.1662517687090; Tue, 06 Sep 2022 19:28:07 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id b10-20020a05687051ca00b0011e73536301sm7605046oaj.52.2022.09.06.19.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 19:28:06 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Kishon Vijay Abraham I <kishon@ti.com>, Michal Simek <michal.simek@amd.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>, Alexandru Gagniuc <mr.nuke.me@gmail.com>, Daniel Golle <daniel@makrotopia.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Marek Vasut <marex@denx.de> Subject: [PATCH v2 10/45] event: Pass the images to EVT_FT_FIXUP Date: Tue, 6 Sep 2022 20:26:58 -0600 Message-Id: <20220907022733.66423-11-sjg@chromium.org> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog In-Reply-To: <20220907022733.66423-1-sjg@chromium.org> References: <20220907022733.66423-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: core: Support multiple device trees in ofnode
|
expand
|
diff --git a/boot/image-fdt.c b/boot/image-fdt.c index ca51796322d..884e089f2d8 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -669,6 +669,7 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob, struct event_ft_fixup fixup; fixup.tree = oftree_default(); + fixup.images = images; ret = event_notify(EVT_FT_FIXUP, &fixup, sizeof(fixup)); if (ret) { printf("ERROR: fdt fixup event failed: %d\n", ret); diff --git a/include/event.h b/include/event.h index ff883ca064e..3e6dcbc3dd6 100644 --- a/include/event.h +++ b/include/event.h @@ -60,9 +60,11 @@ union event_data { * struct event_ft_fixup - FDT fixup before booting * * @tree: tree to update + * @images: images which are being booted */ struct event_ft_fixup { oftree tree; + struct bootm_headers *images; } ft_fixup; };
Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) boot/image-fdt.c | 1 + include/event.h | 2 ++ 2 files changed, 3 insertions(+)