]> git.sur5r.net Git - u-boot/blobdiff - tools/rkimage.c
x86: ivybridge: Show microcode version for each core
[u-boot] / tools / rkimage.c
index 7b292f4235d1f43216c933cc5260b615bb73fbb0..f9fdcfa712f00496a88404a0181f783b158859fa 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "imagetool.h"
 #include <image.h>
+#include "rkcommon.h"
 
 static uint32_t header;
 
@@ -30,7 +31,8 @@ static void rkimage_print_header(const void *buf)
 static void rkimage_set_header(void *buf, struct stat *sbuf, int ifd,
                               struct image_tool_params *params)
 {
-       memcpy(buf, "RK32", 4);
+       memcpy(buf + RK_SPL_HDR_START, rkcommon_get_spl_hdr(params),
+              RK_SPL_HDR_SIZE);
 }
 
 static int rkimage_extract_subimage(void *buf, struct image_tool_params *params)