diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-04 09:57:33 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-11-06 09:51:31 +0800 |
commit | 18434aec1b69d8490cb23ef35b2f39cf1784d1d0 (patch) | |
tree | 097c9ba2c28a6b825ecccff390eafd00ffc40795 /include | |
parent | 01e3c9d2ecbb532ab98da46ceebe8507b6bceec8 (diff) | |
download | u-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.tar.gz u-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.tar.bz2 u-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.zip |
acpi: Don't reset the tables with every new generation
At present if SSDT and DSDT code is created, only the latter is retained
for examination by the 'acpi items' command. Fix this by only resetting
the list when explicitly requested.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/acpi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dm/acpi.h b/include/dm/acpi.h index e8b0336f6d..e6951b6a25 100644 --- a/include/dm/acpi.h +++ b/include/dm/acpi.h @@ -226,6 +226,15 @@ void acpi_dump_items(enum acpi_dump_option option); */ int acpi_get_path(const struct udevice *dev, char *out_path, int maxlen); +/** + * acpi_reset_items() - Reset the list of ACPI items to empty + * + * This list keeps track of DSDT and SSDT items that are generated + * programmatically. The 'acpi items' command shows the list. Use this function + * to empty the list, before writing new items. + */ +void acpi_reset_items(void); + #endif /* __ACPI__ */ #endif |