aboutsummaryrefslogtreecommitdiff
path: root/include/dm/acpi.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-04 09:57:33 -0700
committerBin Meng <bmeng.cn@gmail.com>2020-11-06 09:51:31 +0800
commit18434aec1b69d8490cb23ef35b2f39cf1784d1d0 (patch)
tree097c9ba2c28a6b825ecccff390eafd00ffc40795 /include/dm/acpi.h
parent01e3c9d2ecbb532ab98da46ceebe8507b6bceec8 (diff)
downloadu-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.zip
u-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.tar.gz
u-boot-18434aec1b69d8490cb23ef35b2f39cf1784d1d0.tar.bz2
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/dm/acpi.h')
-rw-r--r--include/dm/acpi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dm/acpi.h b/include/dm/acpi.h
index e8b0336..e6951b6 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