]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/spl/spl_nor.c
Prepare for multiple bootcount drivers
[people/ms/u-boot.git] / common / spl / spl_nor.c
index 6bfa399bacef083ab5ff6c83eec70b140d2918ae..1ef8ac8b89b6332d2cd4c57390c3d58c175cb061 100644 (file)
@@ -39,13 +39,7 @@ static int spl_nor_load_image(struct spl_image_info *spl_image,
                                        sizeof(struct image_header)),
                               spl_image->size);
 
-                       /*
-                        * Copy DT blob (fdt) to SDRAM. Passing pointer to
-                        * flash doesn't work
-                        */
-                       memcpy((void *)CONFIG_SYS_SPL_ARGS_ADDR,
-                              (void *)(CONFIG_SYS_FDT_BASE),
-                              CONFIG_SYS_FDT_SIZE);
+                       spl_image->arg = (void *)CONFIG_SYS_FDT_BASE;
 
                        return 0;
                } else {
@@ -71,4 +65,4 @@ static int spl_nor_load_image(struct spl_image_info *spl_image,
 
        return 0;
 }
-SPL_LOAD_IMAGE_METHOD(0, BOOT_DEVICE_NOR, spl_nor_load_image);
+SPL_LOAD_IMAGE_METHOD("NOR", 0, BOOT_DEVICE_NOR, spl_nor_load_image);