summaryrefstree
path: root/kernel/drivers/scsi/ufs/Kconfig
blob: f9d0bd3d89fd13af8f9a20f363eb7ca19583c018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#
# Kernel configuration file for the UFS Host Controller
#
# This code is based on drivers/scsi/ufs/Kconfig
# Copyright (C) 2011-2013 Samsung India Software Operations
#
# Authors:
#	Santosh Yaraganavi <santosh.sy@samsung.com>
#	Vinayak Holikatti <h.vinayak@samsung.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# See the COPYING file in the top-level directory or visit
# <http://www.gnu.org/licenses/gpl-2.0.html>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# This program is provided "AS IS" and "WITH ALL FAULTS" and
# without warranty of any kind. You are solely responsible for
# determining the appropriateness of using and distributing
# the program and assume all risks associated with your exercise
# of rights with respect to the program, including but not limited
# to infringement of third party rights, the risks and costs of
# program errors, damage to or loss of data, programs or equipment,
# and unavailability or interruption of operations. Under no
# circumstances will the contributor of this Program be liable for
# any damages of any kind arising from your use or distribution of
# this program.

config SCSI_UFSHCD
	tristate "Universal Flash Storage Controller Driver Core"
	depends on SCSI && SCSI_DMA
	select NLS
	---help---
	This selects the support for UFS devices in Linux, say Y and make
	  sure that you know the name of your UFS host adapter (the card
	  inside your computer that "speaks" the UFS protocol, also
	  called UFS Host Controller), because you will be asked for it.
	  The module will be called ufshcd.

	  To compile this driver as a module, choose M here and read
	  <file:Documentation/scsi/ufs.txt>.
	  However, do not compile this as a module if your root file system
	  (the one containing the directory /) is located on a UFS device.

config UFS_UN_18DIGITS
	bool "The digits of SEC unique number"
	depends on SCSI_UFSHCD
config SCSI_UFSHCD_PCI
	tristate "PCI bus based UFS Controller support"
	depends on SCSI_UFSHCD && PCI
	---help---
	This selects the PCI UFS Host Controller Interface. Select this if
	you have UFS Host Controller with PCI Interface.

	  If you have a controller with this interface, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_DWC_TC_PCI
	tristate "DesignWare pci support using a G210 Test Chip"
	depends on SCSI_UFSHCD_PCI
	---help---
	  Synopsys Test Chip is a PHY for prototyping purposes.

	  If unsure, say N.

config SCSI_UFSHCD_PLATFORM
	tristate "Platform bus based UFS Controller support"
	depends on SCSI_UFSHCD
	---help---
	This selects the UFS host controller support. Select this if
	you have an UFS controller on Platform bus.

	If you have a controller with this interface, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_DWC_TC_PLATFORM
	tristate "DesignWare platform support using a G210 Test Chip"
	depends on SCSI_UFSHCD_PLATFORM
	---help---
	  Synopsys Test Chip is a PHY for prototyping purposes.

	  If unsure, say N.

config SCSI_UFS_ASYNC_RELINK
	tristate "Asynchronous link establishment on UFS device resume"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
	---help---
	  This feature is to support concurrency of UFS resume and the others.
	  In UFS re-link, system wake-up may task a long time when UFS resume
	  time is increased for device latency or etc.

	  If you want to enable this feature, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_CMD_LOGGING
	tristate "UFS cmd loggging support"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
	---help---
	  This feature is to support UFS cmd logging.
	  When UFS cmd transferred to UFS HCI
	  various data logs for debugging purpose.

	  If you want to enable this feature, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_TEST_MODE
       bool "Samsung UFS TEST feature"
       depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
       ---help---
         This selects support for test mode for debugging.
         Select this option if this feature is needed on working.

config UFS_DATA_LOG
	bool "Samsung UFS DATA logging"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
	---help---
	  This feature support for UFS Data logging.
	  Select this option if this feature is needed on working.

config UFS_DATA_LOG_MAGIC_CODE
	bool "Samsung UFS DATA logging"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM && UFS_DATA_LOG
	---help---
	  This feature support for UFS Data logging include magic code.
	  Select this option if this feature is needed on working.

config SCSI_UFS_QCOM
	tristate "QCOM specific hooks to UFS controller platform driver"
	depends on SCSI_UFSHCD_PLATFORM && ARCH_QCOM
	select PHY_QCOM_UFS
	help
	  This selects the QCOM specific additions to UFSHCD platform driver.
	  UFS host on QCOM needs some vendor specific configuration before
	  accessing the hardware which includes PHY configuration and vendor
	  specific registers.

	  Select this if you have UFS controller on QCOM chipset.
	  If unsure, say N.

config SCSI_UFS_EXYNOS
	tristate "EXYNOS UFS Host Controller Driver"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
	---help---
	  This selects the EXYNOS UFS host controller driver.

	  If you have a controller with this interface, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_FMP_DUMP
	tristate "EXYNOS Flash Memory Protector Dump for UFS Host"
	depends on SCSI_UFSHCD && SCSI_UFSHCD_PLATFORM
	---help---
	  This selects the EXYNOS UFS FMP DUMP.

config SCSI_UFS_EXYNOS_FMP
	tristate "EXYNOS Flash Memory Protector for UFS Host"
	depends on SCSI_UFS_EXYNOS
	---help---
	  This selects the EXYNOS UFS FMP Driver.

	  If you have a controller with this interface, say Y or M here.

	  If unsure, say N.

config SCSI_UFS_HISI
	tristate "Hisilicon specific hooks to UFS controller platform driver"
	depends on (ARCH_HISI || COMPILE_TEST) && SCSI_UFSHCD_PLATFORM
	---help---
	  This selects the Hisilicon specific additions to UFSHCD platform driver.

	  Select this if you have UFS controller on Hisilicon chipset.

config SCSI_UFS_UNIPRO_DEBUG
	tristate "EXYNOS UFS UNIPRO DEBUG FOR EXYNOS"
	depends on SCSI_UFS_EXYNOS
	---help---
	  This selects the EXYNOS UFS UNIPRO DEBUG on.

config UFSFEATURE
	bool "UFS feature activate"
	depends on SCSI_UFSHCD
	---help---
	UFS feature activate such as hpb, tw and etc.

config UFSHPB
	bool "UFSHPB"
	depends on SCSI_UFSHCD && UFSFEATURE
	---help---
	UFS HPB Feature Enable

config HPB_DEBUG
	bool "HPB Debug Log Enable"
	depends on SCSI_UFSHCD && UFSFEATURE && UFSHPB
	default n
	---help---
	UFS HPB Debug Enable (dmesg log[=if set debug sysfs] & BLK_TRACE msg)

config HPB_DEBUG_SYSFS
	bool "HPB Debug sysfs"
	depends on SCSI_UFSHCD && UFSFEATURE && UFSHPB
	default n
	---help---
	UFS HPB Debug Sysfs Enable

config HPB_RELEASE_CHECK
	bool "HPB Release Check"
	depends on SCSI_UFSHCD && UFSFEATURE && UFSHPB
	default n
	---help---
	The kernel panic occurs when hpb feature disabled by abnormal behavior.