]> git.sur5r.net Git - u-boot/blobdiff - tools/kwbimage.c
spi: tegra: Use BIT macro
[u-boot] / tools / kwbimage.c
index 5e62d08a80799ac1f5d707d81589d35982574ce8..d33f1b6974f7cbfdbcacd0adf37096b448d47813 100644 (file)
@@ -681,6 +681,9 @@ static void kwbimage_set_header(void *ptr, struct stat *sbuf, int ifd,
                exit(EXIT_FAILURE);
        }
 
+       /* The MVEBU BootROM does not allow non word aligned payloads */
+       sbuf->st_size = ALIGN_SUP(sbuf->st_size, 4);
+
        version = image_get_version();
        switch (version) {
                /*