summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-23 18:58:54 -0600
committerSimon Glass <sjg@chromium.org>2014-11-21 04:43:18 +0100
commitc654b5172a65faba2b541ee1fda1738534d47241 (patch)
treec3404c860de6b6c30591b5dd58abf9ddf44c162b /include/fdt_support.h
parent6f4dbc21e47c5c1dd191cbd2f0fb7252340e0dcb (diff)
fdt: Add ft_system_setup() function for system device tree additions
Add an additional function for adding information to the device tree before booting. This permits additions which are not board-specific. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index a101306cffa..0fbc9bdd671 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -88,6 +88,18 @@ void ft_board_setup_ex(void *blob, bd_t *bd);
void ft_cpu_setup(void *blob, bd_t *bd);
void ft_pci_setup(void *blob, bd_t *bd);
+/**
+ * Add system-specific data to the FDT before booting the OS.
+ *
+ * Use CONFIG_SYS_FDT_PAD to ensure there is sufficient space.
+ * This function is called if CONFIG_OF_SYSTEM_SETUP is defined
+ *
+ * @param blob FDT blob to update
+ * @param bd_t Pointer to board data
+ * @return 0 if ok, or -FDT_ERR_... on error
+ */
+int ft_system_setup(void *blob, bd_t *bd);
+
void set_working_fdt_addr(void *addr);
int fdt_shrink_to_minimum(void *blob);
int fdt_increase_size(void *fdt, int add_len);