lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 4/5] scsi: ufs: Add crypto masks for UFS HC driver
From
Date

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@synopsys.com>
---
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
\
 
 \ /
  Last update: 2018-05-28 15:34    [W:0.015 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site