From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 13 Jul 2020 11:15:23 +0800 Subject: [PATCH v4 29/35] acpi: Support ordering SSDT data by device In-Reply-To: <20200707131135.v4.29.I91d8e58921d27a54f6ecb58ecd5b72d141238f63@changeid> References: <20200707191212.2542638-1-sjg@chromium.org> <20200707131135.v4.29.I91d8e58921d27a54f6ecb58ecd5b72d141238f63@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 8, 2020 at 3:13 AM Simon Glass wrote: > > Add a /chosen property to control the order in which the data appears > in the SSDT. This allows matching up U-Boot's output from a dump of the > known-good data obtained from within Linux. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > Changes in v4: > - Explain in sort_acpi_item_type() why ctx->current is not updated > > Changes in v3: > - Make find_item() static and rename to find_acpi_item() > - Rename build_type() and add a comment > > Changes in v1: > - Generalise the ACPI function recursion with acpi_recurse_method() > > arch/sandbox/dts/test.dts | 5 +- > doc/device-tree-bindings/chosen.txt | 9 ++++ > drivers/core/acpi.c | 84 +++++++++++++++++++++++++++++ > test/dm/acpi.c | 15 +++--- > 4 files changed, 105 insertions(+), 8 deletions(-) > Reviewed-by: Bin Meng