1# 2# Kernel configuration file for the UFS Host Controller 3# 4# This code is based on drivers/scsi/ufs/Kconfig 5# Copyright (C) 2011-2013 Samsung India Software Operations 6# 7# Authors: 8# Santosh Yaraganavi <santosh.sy@samsung.com> 9# Vinayak Holikatti <h.vinayak@samsung.com> 10# 11# This program is free software; you can redistribute it and/or 12# modify it under the terms of the GNU General Public License 13# as published by the Free Software Foundation; either version 2 14# of the License, or (at your option) any later version. 15# See the COPYING file in the top-level directory or visit 16# <http://www.gnu.org/licenses/gpl-2.0.html> 17# 18# This program is distributed in the hope that it will be useful, 19# but WITHOUT ANY WARRANTY; without even the implied warranty of 20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21# GNU General Public License for more details. 22# 23# This program is provided "AS IS" and "WITH ALL FAULTS" and 24# without warranty of any kind. You are solely responsible for 25# determining the appropriateness of using and distributing 26# the program and assume all risks associated with your exercise 27# of rights with respect to the program, including but not limited 28# to infringement of third party rights, the risks and costs of 29# program errors, damage to or loss of data, programs or equipment, 30# and unavailability or interruption of operations. Under no 31# circumstances will the contributor of this Program be liable for 32# any damages of any kind arising from your use or distribution of 33# this program. 34 35config SCSI_UFSHCD 36 tristate "Universal Flash Storage Controller Driver Core" 37 depends on SCSI && SCSI_DMA 38 select PM_DEVFREQ 39 select DEVFREQ_GOV_SIMPLE_ONDEMAND 40 select NLS 41 help 42 This selects the support for UFS devices in Linux, say Y and make 43 sure that you know the name of your UFS host adapter (the card 44 inside your computer that "speaks" the UFS protocol, also 45 called UFS Host Controller), because you will be asked for it. 46 The module will be called ufshcd. 47 48 To compile this driver as a module, choose M here and read 49 <file:Documentation/scsi/ufs.rst>. 50 However, do not compile this as a module if your root file system 51 (the one containing the directory /) is located on a UFS device. 52 53config SCSI_UFSHCD_PCI 54 tristate "PCI bus based UFS Controller support" 55 depends on SCSI_UFSHCD && PCI 56 help 57 This selects the PCI UFS Host Controller Interface. Select this if 58 you have UFS Host Controller with PCI Interface. 59 60 If you have a controller with this interface, say Y or M here. 61 62 If unsure, say N. 63 64config SCSI_UFS_DWC_TC_PCI 65 tristate "DesignWare pci support using a G210 Test Chip" 66 depends on SCSI_UFSHCD_PCI 67 help 68 Synopsys Test Chip is a PHY for prototyping purposes. 69 70 If unsure, say N. 71 72config SCSI_UFSHCD_PLATFORM 73 tristate "Platform bus based UFS Controller support" 74 depends on SCSI_UFSHCD 75 depends on HAS_IOMEM 76 help 77 This selects the UFS host controller support. Select this if 78 you have an UFS controller on Platform bus. 79 80 If you have a controller with this interface, say Y or M here. 81 82 If unsure, say N. 83 84config SCSI_UFS_CDNS_PLATFORM 85 tristate "Cadence UFS Controller platform driver" 86 depends on SCSI_UFSHCD_PLATFORM 87 help 88 This selects the Cadence-specific additions to UFSHCD platform driver. 89 90 If unsure, say N. 91 92config SCSI_UFS_DWC_TC_PLATFORM 93 tristate "DesignWare platform support using a G210 Test Chip" 94 depends on SCSI_UFSHCD_PLATFORM 95 help 96 Synopsys Test Chip is a PHY for prototyping purposes. 97 98 If unsure, say N. 99 100config SCSI_UFS_QCOM 101 tristate "QCOM specific hooks to UFS controller platform driver" 102 depends on SCSI_UFSHCD_PLATFORM && ARCH_QCOM 103 select QCOM_SCM if SCSI_UFS_CRYPTO 104 select RESET_CONTROLLER 105 help 106 This selects the QCOM specific additions to UFSHCD platform driver. 107 UFS host on QCOM needs some vendor specific configuration before 108 accessing the hardware which includes PHY configuration and vendor 109 specific registers. 110 111 Select this if you have UFS controller on QCOM chipset. 112 If unsure, say N. 113 114config SCSI_UFS_MEDIATEK 115 tristate "Mediatek specific hooks to UFS controller platform driver" 116 depends on SCSI_UFSHCD_PLATFORM && ARCH_MEDIATEK 117 select PHY_MTK_UFS 118 select RESET_TI_SYSCON 119 help 120 This selects the Mediatek specific additions to UFSHCD platform driver. 121 UFS host on Mediatek needs some vendor specific configuration before 122 accessing the hardware which includes PHY configuration and vendor 123 specific registers. 124 125 Select this if you have UFS controller on Mediatek chipset. 126 127 If unsure, say N. 128 129config SCSI_UFS_HISI 130 tristate "Hisilicon specific hooks to UFS controller platform driver" 131 depends on (ARCH_HISI || COMPILE_TEST) && SCSI_UFSHCD_PLATFORM 132 help 133 This selects the Hisilicon specific additions to UFSHCD platform driver. 134 135 Select this if you have UFS controller on Hisilicon chipset. 136 If unsure, say N. 137 138config SCSI_UFS_TI_J721E 139 tristate "TI glue layer for Cadence UFS Controller" 140 depends on OF && HAS_IOMEM && (ARCH_K3 || COMPILE_TEST) 141 help 142 This selects driver for TI glue layer for Cadence UFS Host 143 Controller IP. 144 145 Selects this if you have TI platform with UFS controller. 146 If unsure, say N. 147 148config SCSI_UFS_BSG 149 bool "Universal Flash Storage BSG device node" 150 depends on SCSI_UFSHCD 151 select BLK_DEV_BSGLIB 152 help 153 Universal Flash Storage (UFS) is SCSI transport specification for 154 accessing flash storage on digital cameras, mobile phones and 155 consumer electronic devices. 156 A UFS controller communicates with a UFS device by exchanging 157 UFS Protocol Information Units (UPIUs). 158 UPIUs can not only be used as a transport layer for the SCSI protocol 159 but are also used by the UFS native command set. 160 This transport driver supports exchanging UFS protocol information units 161 with a UFS device. See also the ufshcd driver, which is a SCSI driver 162 that supports UFS devices. 163 164 Select this if you need a bsg device node for your UFS controller. 165 If unsure, say N. 166 167config SCSI_UFS_EXYNOS 168 tristate "Exynos specific hooks to UFS controller platform driver" 169 depends on SCSI_UFSHCD_PLATFORM && (ARCH_EXYNOS || COMPILE_TEST) 170 help 171 This selects the Samsung Exynos SoC specific additions to UFSHCD 172 platform driver. UFS host on Samsung Exynos SoC includes HCI and 173 UNIPRO layer, and associates with UFS-PHY driver. 174 175 Select this if you have UFS host controller on Samsung Exynos SoC. 176 If unsure, say N. 177 178config SCSI_UFS_CRYPTO 179 bool "UFS Crypto Engine Support" 180 depends on SCSI_UFSHCD && BLK_INLINE_ENCRYPTION 181 help 182 Enable Crypto Engine Support in UFS. 183 Enabling this makes it possible for the kernel to use the crypto 184 capabilities of the UFS device (if present) to perform crypto 185 operations on data being transferred to/from the device. 186 187config SCSI_UFS_HPB 188 bool "Support UFS Host Performance Booster" 189 depends on SCSI_UFSHCD 190 help 191 The UFS HPB feature improves random read performance. It caches 192 L2P (logical to physical) map of UFS to host DRAM. The driver uses HPB 193 read command by piggybacking physical page number for bypassing FTL (flash 194 translation layer)'s L2P address translation. 195 196config SCSI_UFS_FAULT_INJECTION 197 bool "UFS Fault Injection Support" 198 depends on SCSI_UFSHCD && FAULT_INJECTION 199 help 200 Enable fault injection support in the UFS driver. This makes it easier 201 to test the UFS error handler and abort handler. 202 203config SCSI_UFS_HWMON 204 bool "UFS Temperature Notification" 205 depends on SCSI_UFSHCD=HWMON || HWMON=y 206 help 207 This provides support for UFS hardware monitoring. If enabled, 208 a hardware monitoring device will be created for the UFS device. 209 210 If unsure, say N. 211