dm: rpmb: DM customized changes for RPMB mux kernel module

As RPMB mux kernel module is going to be created,
there are two corresponding changes required for DM:
1. The name has been changed to /dev/rpmbmux.
2. DM does NOT check MAC of RPMB result returned by kernel
   module because DM doesn't own the real key.

Tracked-On: #1508
Signed-off-by: Huang, Yang <yang.huang@intel.com>
Acked-by: Zhu Bing <bing.zhu@intel.com>
This commit is contained in:
Huang, Yang 2018-10-18 12:33:14 +08:00 committed by Xie, Nanlin
parent 193da97103
commit ffcf62982d
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ rpmb_read_block(__u8 mode, __u8 *key, __u16 addr, void *buf, __u32 count)
}
rc = rpmb_check_response("read blocks", RPMB_RESP_DATA_READ,
frame_out, count, key, NULL, &addr);
frame_out, count, NULL, NULL, &addr);
if (rc)
return rc;

View File

@ -37,7 +37,7 @@
#define RPMB_SIM_MODE 1
#define RPMB_BLOCK_SIZE 256
#define RPMB_FRAME_SIZE 512
#define RPMB_PHY_PATH_NAME "/dev/rpmb0"
#define RPMB_PHY_PATH_NAME "/dev/rpmbmux"
#define RPMB_SIM_PATH_NAME "/data/rpmbfile"
#define SEQ_CMD_MAX 3 /*support up to 3 cmds*/