[PATCH 4/5] scsi: ufs: Add crypto masks for UFS HC driver

From: Ladvine D Almeida
Date: Mon May 28 2018 - 09:34:07 EST



This patch add necessary crypto mask and command for
inline encryption support in the UFS Host Controller driver.

Signed-off-by: Ladvine D Almeida <ladvine@xxxxxxxxxxxx>
---
drivers/scsi/ufs/ufshci.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h
index bb5d9c7..c003924 100644
--- a/drivers/scsi/ufs/ufshci.h
+++ b/drivers/scsi/ufs/ufshci.h
@@ -90,6 +90,7 @@ enum {
MASK_64_ADDRESSING_SUPPORT = 0x01000000,
MASK_OUT_OF_ORDER_DATA_DELIVERY_SUPPORT = 0x02000000,
MASK_UIC_DME_TEST_MODE_SUPPORT = 0x04000000,
+ MASK_CRYPTO_SUPPORT = 0x10000000,
};

#define UFS_MASK(mask, offset) ((mask) << (offset))
@@ -337,6 +338,7 @@ enum {
UTP_NATIVE_UFS_COMMAND = 0x10000000,
UTP_DEVICE_MANAGEMENT_FUNCTION = 0x20000000,
UTP_REQ_DESC_INT_CMD = 0x01000000,
+ UTP_REQ_CRYPT_EN_CMD = 0x00800000, /* Inline Encryption */
};

/* UTP Transfer Request Data Direction (DD) */
--
2.7.4