/* The SPI payload needs to make space for odd half-sector layout used in flash (i.e. only the first 2K of each 4K sector is used).  */
static int rkspi_vrec_header(struct image_tool_params *params, struct image_type_params *tparams)
/* The SPI payload needs to make space for odd half-sector layout used in flash (i.e. only the first 2K of each 4K sector is used).  */
static int rkspi_vrec_header(struct image_tool_params *params, struct image_type_params *tparams)
{
	rkcommon_vrec_header(params, tparams);
	params->file_size = ROUND(params->file_size, RKSPI_SECT_LEN) << 1;
	return 0;
}