diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-12 09:47:16 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-12 09:47:16 -0400 |
commit | 0ba282e0eeaf29fd78f021fd2f95f7bc3109868d (patch) | |
tree | 476db0709b1006db5677d78ae3c66034613f8dbb /include/fdt_support.h | |
parent | a5fc388ed966974256bc03b3d4db7ae1be0ed119 (diff) | |
parent | 6ad2452bc61d925eaa40f52377baaddf92c43464 (diff) |
Merge tag 'dm-pull-12sep22' of https://source.denx.de/u-boot/custodians/u-boot-dm
Binman VPL support (patch was lost)
Add board_rng_seed() as a temporary solution
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r-- | include/fdt_support.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index ac76939e817..b8380716f39 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -11,6 +11,7 @@ #include <asm/u-boot.h> #include <linux/libfdt.h> +#include <abuf.h> /** * arch_fixup_fdt() - Write arch-specific information to fdt @@ -187,6 +188,18 @@ int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name); int ft_board_setup(void *blob, struct bd_info *bd); /** + * board_rng_seed() - Provide a seed to be passed via /chosen/rng-seed + * + * This function is called if CONFIG_BOARD_RNG_SEED is set, and must + * be provided by the board. It should return, via @buf, some suitable + * seed value to pass to the kernel. + * + * @param buf A struct abuf for returning the seed and its size. + * @return 0 if ok, negative on error. + */ +int board_rng_seed(struct abuf *buf); + +/** * board_fdt_chosen_bootargs() - Arbitrarily amend fdt kernel command line * * This is used for late modification of kernel command line arguments just |