]> git.sur5r.net Git - u-boot/blobdiff - tools/rkspi.c
scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987
[u-boot] / tools / rkspi.c
index f8a565d31268d62c6dc8f8f702367b0f6c48ca88..faa18fcd183c3de3fc464b9cfc205c6124d80bea 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2015 Google,  Inc
  * Written by Simon Glass <sjg@chromium.org>
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  * See README.rockchip for details of the rkspi format
  */
 
@@ -63,7 +62,7 @@ static int rkspi_check_image_type(uint8_t type)
 static int rkspi_vrec_header(struct image_tool_params *params,
                             struct image_type_params *tparams)
 {
-       int padding = rkcommon_vrec_header(params, tparams, 2048);
+       int padding = rkcommon_vrec_header(params, tparams, RK_INIT_SIZE_ALIGN);
        /*
         * The file size has not been adjusted at this point (our caller will
         * eventually add the header/padding to the file_size), so we need to