Linux 5.1.15
[linux/fpc-iii.git] / drivers / scsi / ufs / ufshci-dwc.h
blobca341fece310d062c701cbfc6f71a32f9ee16ee4
1 /*
2 * UFS Host driver for Synopsys Designware Core
4 * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
6 * Authors: Joao Pinto <jpinto@synopsys.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef _UFSHCI_DWC_H
14 #define _UFSHCI_DWC_H
16 /* DWC HC UFSHCI specific Registers */
17 enum dwc_specific_registers {
18 DWC_UFS_REG_HCLKDIV = 0xFC,
21 /* Clock Divider Values: Hex equivalent of frequency in MHz */
22 enum clk_div_values {
23 DWC_UFS_REG_HCLKDIV_DIV_62_5 = 0x3e,
24 DWC_UFS_REG_HCLKDIV_DIV_125 = 0x7d,
25 DWC_UFS_REG_HCLKDIV_DIV_200 = 0xc8,
28 /* Selector Index */
29 enum selector_index {
30 SELIND_LN0_TX = 0x00,
31 SELIND_LN1_TX = 0x01,
32 SELIND_LN0_RX = 0x04,
33 SELIND_LN1_RX = 0x05,
36 #endif /* End of Header */