summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
committerTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
commit1b8ad819cead7020d35f6251ef0cf3f393c61e51 (patch)
tree6331512066c3a921df043a1b6ba8b7c679a98230 /include/fdt_support.h
parent8ddaf943589756442bba21e5be645cd47526d82b (diff)
parentf0b21ebd417cfe75f266b4dc16318bb3581783b9 (diff)
Merge branch '2021-05-06-misc-updates'
- Allow for boards to update bootargs before booting the OS (helpful in some forms of secure boot). - Enhance GPT write support. - gpio-sysinfo updates - Allow env to be appended from dtb
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 46eb1dbbb24..e2a4689cd8a 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -185,6 +185,16 @@ int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name);
*/
int ft_board_setup(void *blob, struct bd_info *bd);
+/**
+ * board_fdt_chosen_bootargs() - Arbitrarily amend fdt kernel command line
+ *
+ * This is used for late modification of kernel command line arguments just
+ * before they are added into the /chosen node in flat device tree.
+ *
+ * @return: pointer to kernel command line arguments in memory
+ */
+char *board_fdt_chosen_bootargs(void);
+
/*
* The keystone2 SOC requires all 32 bit aliased addresses to be converted
* to their 36 physical format. This has to happen after all fdt nodes