Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig
Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig. Split the command handling from the underlying support and expose this through CMD_MMC_RPMB. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
This commit is contained in:
@@ -128,7 +128,7 @@ static int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SUPPORT_EMMC_RPMB
|
||||
#if CONFIG_IS_ENABLED(CMD_MMC_RPMB)
|
||||
static int confirm_key_prog(void)
|
||||
{
|
||||
puts("Warning: Programming authentication key can be done only once !\n"
|
||||
@@ -886,7 +886,7 @@ static cmd_tbl_t cmd_mmc[] = {
|
||||
U_BOOT_CMD_MKENT(partconf, 5, 0, do_mmc_partconf, "", ""),
|
||||
U_BOOT_CMD_MKENT(rst-function, 3, 0, do_mmc_rst_func, "", ""),
|
||||
#endif
|
||||
#ifdef CONFIG_SUPPORT_EMMC_RPMB
|
||||
#if CONFIG_IS_ENABLED(CMD_MMC_RPMB)
|
||||
U_BOOT_CMD_MKENT(rpmb, CONFIG_SYS_MAXARGS, 1, do_mmcrpmb, "", ""),
|
||||
#endif
|
||||
U_BOOT_CMD_MKENT(setdsr, 2, 0, do_mmc_setdsr, "", ""),
|
||||
@@ -953,7 +953,7 @@ U_BOOT_CMD(
|
||||
" - Change the RST_n_FUNCTION field of the specified device\n"
|
||||
" WARNING: This is a write-once field and 0 / 1 / 2 are the only valid values.\n"
|
||||
#endif
|
||||
#ifdef CONFIG_SUPPORT_EMMC_RPMB
|
||||
#if CONFIG_IS_ENABLED(CMD_MMC_RPMB)
|
||||
"mmc rpmb read addr blk# cnt [address of auth-key] - block size is 256 bytes\n"
|
||||
"mmc rpmb write addr blk# cnt <address of auth-key> - block size is 256 bytes\n"
|
||||
"mmc rpmb key <address of auth-key> - program the RPMB authentication key.\n"
|
||||
|
||||
Reference in New Issue
Block a user