[PATCH v3 05/35] acpi: Support generation of ACPI code
Wolfgang Wallner
wolfgang.wallner at br-automation.com
Tue Jun 16 13:31:26 CEST 2020
Hi Simon,
-----"Simon Glass" <sjg at chromium.org> schrieb: -----
> Betreff: [PATCH v3 05/35] acpi: Support generation of ACPI code
>
> Add a new file to handle generating ACPI code programatically. This is
> used when information must be dynamically added to the tables, e.g. the
> SSDT.
>
> Initial support is just for writing simple values. Also add a 'base' value
> so that the table can be freed. This likely doesn't happen in normal code,
> but is nice to do in tests.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> (no changes since v2)
>
> Changes in v2:
> - Update to add a new 'base' field to struct acpi_ctx
> - Free the memory allocated to the table and context
>
> include/acpi/acpigen.h | 49 ++++++++++++++++++++++++++++++
> include/dm/acpi.h | 2 ++
> lib/acpi/Makefile | 1 +
> lib/acpi/acpi_table.c | 1 +
> lib/acpi/acpigen.c | 38 +++++++++++++++++++++++
> test/dm/Makefile | 1 +
> test/dm/acpigen.c | 69 ++++++++++++++++++++++++++++++++++++++++++
> 7 files changed, 161 insertions(+)
> create mode 100644 include/acpi/acpigen.h
> create mode 100644 lib/acpi/acpigen.c
> create mode 100644 test/dm/acpigen.c
Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
More information about the U-Boot
mailing list