aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-09-21 20:44:16 +0200
committerStefano Babic <sbabic@denx.de>2023-10-16 16:25:10 +0200
commitb13eaf3bb4e64fff117210821b3cf2f106de8ae2 (patch)
tree36f4b6b42dcf96c9d2a9fbababb5929a2aadd6bb /include/spl.h
parentb0296e22cb48c26ffe5ceb09f35a2ac5975a299f (diff)
downloadu-boot-b13eaf3bb4e64fff117210821b3cf2f106de8ae2.zip
u-boot-b13eaf3bb4e64fff117210821b3cf2f106de8ae2.tar.gz
u-boot-b13eaf3bb4e64fff117210821b3cf2f106de8ae2.tar.bz2
spl: fit: Add board level function to decide application of DTO
Add board-specific function used to indicate whether a DTO from fitImage configuration node 'fdt' property DT and DTO list should be applied onto the base DT or not applied. This is useful in case of DTOs which implement e.g. different board revision details, where such DTO should be applied on one board revision, and should not be applied on another board revision. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 7d30fb5..1d416b4 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -918,6 +918,22 @@ void spl_perform_fixups(struct spl_image_info *spl_image);
*/
struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size);
+/**
+ * board_spl_fit_append_fdt_skip(): test whether DTO application should be skipped
+ * @name: DTO node name within fitImage images node
+ *
+ * A board-specific function used to indicate whether a DTO from fitImage
+ * configuration node 'fdt' property DT and DTO list should be applied onto
+ * the base DT or not applied.
+ *
+ * This is useful in case of DTOs which implement e.g. different board revision
+ * details, where such DTO should be applied on one board revision, and should
+ * not be applied on another board revision.
+ *
+ * Return: 0 to indicate DTO is not skipped, all else to indicate DTO is skipped.
+ */
+int board_spl_fit_append_fdt_skip(const char *name);
+
void board_boot_order(u32 *spl_boot_list);
void spl_save_restore_data(void);