mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
FROMGIT: scsi: ufs: host: ufs-exynos: Add mphy apb clock mask
Bit[3] of HCI_CLKSTOP_CTRL register is for enabling/disabling MPHY APB
clock. Lets add it to CLK_STOP_MASK, so that the same can be controlled
during clock masking/unmasking.
Link: https://lore.kernel.org/r/20220610104119.66401-6-alim.akhtar@samsung.com
Tested-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit daa782a51e git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Bug: 239946304
Change-Id: I697e1e9f769ef78822b20410e4abb878b4782c0d
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
09bdad5187
commit
96decbe836
@@ -52,11 +52,12 @@
|
||||
#define HCI_ERR_EN_DME_LAYER 0x88
|
||||
#define HCI_CLKSTOP_CTRL 0xB0
|
||||
#define REFCLKOUT_STOP BIT(4)
|
||||
#define MPHY_APBCLK_STOP BIT(3)
|
||||
#define REFCLK_STOP BIT(2)
|
||||
#define UNIPRO_MCLK_STOP BIT(1)
|
||||
#define UNIPRO_PCLK_STOP BIT(0)
|
||||
#define CLK_STOP_MASK (REFCLKOUT_STOP | REFCLK_STOP |\
|
||||
UNIPRO_MCLK_STOP |\
|
||||
UNIPRO_MCLK_STOP | MPHY_APBCLK_STOP|\
|
||||
UNIPRO_PCLK_STOP)
|
||||
#define HCI_MISC 0xB4
|
||||
#define REFCLK_CTRL_EN BIT(7)
|
||||
|
||||
Reference in New Issue
Block a user