mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
Correct SPL uses of FASTBOOT_FLASH_NAND
This converts 3 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT_FLASH_NAND defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
7cb10e516b
commit
c6228edf1f
@ -299,7 +299,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
|
|||||||
fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
|
fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
|
||||||
image_size, response);
|
image_size, response);
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
|
if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
|
||||||
fastboot_nand_flash_write(cmd_parameter, fastboot_buf_addr,
|
fastboot_nand_flash_write(cmd_parameter, fastboot_buf_addr,
|
||||||
image_size, response);
|
image_size, response);
|
||||||
}
|
}
|
||||||
@ -318,7 +318,7 @@ static void __maybe_unused erase(char *cmd_parameter, char *response)
|
|||||||
if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
|
if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
|
||||||
fastboot_mmc_erase(cmd_parameter, response);
|
fastboot_mmc_erase(cmd_parameter, response);
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
|
if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
|
||||||
fastboot_nand_erase(cmd_parameter, response);
|
fastboot_nand_erase(cmd_parameter, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
|
|||||||
response);
|
response);
|
||||||
if (r >= 0 && size)
|
if (r >= 0 && size)
|
||||||
*size = disk_part.size * disk_part.blksz;
|
*size = disk_part.size * disk_part.blksz;
|
||||||
} else if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND)) {
|
} else if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND)) {
|
||||||
r = fastboot_nand_get_part_info(part_name, &part_info, response);
|
r = fastboot_nand_get_part_info(part_name, &part_info, response);
|
||||||
if (r >= 0 && size)
|
if (r >= 0 && size)
|
||||||
*size = part_info->size;
|
*size = part_info->size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user