]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/spl.h
spl: Add an option to load a FIT containing U-Boot
[karo-tx-uboot.git] / include / spl.h
index 92cdc049d45382f11fe5cd1539f57c8f7e445bf3..16f2f6a9ee710e818c0856c27090dc6ca2698016 100644 (file)
@@ -29,6 +29,24 @@ struct spl_image_info {
        u32 flags;
 };
 
+/*
+ * Information required to load data from a device
+ *
+ * @dev: Pointer to the device, e.g. struct mmc *
+ * @priv: Private data for the device
+ * @bl_len: Block length for reading in bytes
+ * @read: Function to call to read from the device
+ */
+struct spl_load_info {
+       void *dev;
+       void *priv;
+       int bl_len;
+       ulong (*read)(struct spl_load_info *load, ulong sector, ulong count,
+                     void *buf);
+};
+
+int spl_load_simple_fit(struct spl_load_info *info, ulong sector, void *fdt);
+
 #define SPL_COPY_PAYLOAD_ONLY  1
 
 extern struct spl_image_info spl_image;