Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 1 | # |
| 2 | # Kernel configuration file for the UFS Host Controller |
| 3 | # |
| 4 | # This code is based on drivers/scsi/ufs/Kconfig |
Vinayak Holikatti | 3b1d058 | 2013-02-25 21:44:32 +0530 | [diff] [blame] | 5 | # Copyright (C) 2011-2013 Samsung India Software Operations |
Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 6 | # |
Vinayak Holikatti | 3b1d058 | 2013-02-25 21:44:32 +0530 | [diff] [blame] | 7 | # Authors: |
| 8 | # Santosh Yaraganavi <santosh.sy@samsung.com> |
| 9 | # Vinayak Holikatti <h.vinayak@samsung.com> |
| 10 | # |
Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 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. |
Vinayak Holikatti | 3b1d058 | 2013-02-25 21:44:32 +0530 | [diff] [blame] | 15 | # See the COPYING file in the top-level directory or visit |
| 16 | # <http://www.gnu.org/licenses/gpl-2.0.html> |
| 17 | # |
Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 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. |
Vinayak Holikatti | 3b1d058 | 2013-02-25 21:44:32 +0530 | [diff] [blame] | 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. |
Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 34 | |
| 35 | config SCSI_UFSHCD |
Vinayak Holikatti | e0eca63 | 2013-02-25 21:44:33 +0530 | [diff] [blame] | 36 | tristate "Universal Flash Storage Controller Driver Core" |
Geert Uytterhoeven | a4bfbcb | 2013-05-14 21:34:14 +0530 | [diff] [blame] | 37 | depends on SCSI && SCSI_DMA |
Sahitya Tummala | 856b348 | 2014-09-25 15:32:34 +0300 | [diff] [blame] | 38 | select PM_DEVFREQ |
| 39 | select DEVFREQ_GOV_SIMPLE_ONDEMAND |
Santosh Yaraganavi | 7a3e97b | 2012-02-29 12:11:50 +0530 | [diff] [blame] | 40 | ---help--- |
Vinayak Holikatti | e0eca63 | 2013-02-25 21:44:33 +0530 | [diff] [blame] | 41 | This selects the support for UFS devices in Linux, say Y and make |
| 42 | sure that you know the name of your UFS host adapter (the card |
| 43 | inside your computer that "speaks" the UFS protocol, also |
| 44 | called UFS Host Controller), because you will be asked for it. |
| 45 | The module will be called ufshcd. |
| 46 | |
| 47 | To compile this driver as a module, choose M here and read |
| 48 | <file:Documentation/scsi/ufs.txt>. |
| 49 | However, do not compile this as a module if your root file system |
| 50 | (the one containing the directory /) is located on a UFS device. |
| 51 | |
| 52 | config SCSI_UFSHCD_PCI |
| 53 | tristate "PCI bus based UFS Controller support" |
| 54 | depends on SCSI_UFSHCD && PCI |
| 55 | ---help--- |
| 56 | This selects the PCI UFS Host Controller Interface. Select this if |
| 57 | you have UFS Host Controller with PCI Interface. |
| 58 | |
| 59 | If you have a controller with this interface, say Y or M here. |
| 60 | |
| 61 | If unsure, say N. |
Vinayak Holikatti | 03b1781 | 2013-02-26 18:04:45 +0530 | [diff] [blame] | 62 | |
Joao Pinto | ec658ea | 2016-05-11 12:21:33 +0100 | [diff] [blame] | 63 | config SCSI_UFS_DWC_TC_PCI |
| 64 | tristate "DesignWare pci support using a G210 Test Chip" |
Joao Pinto | 5404fb7 | 2016-09-23 12:52:52 +0100 | [diff] [blame] | 65 | depends on SCSI_UFSHCD_PCI |
Joao Pinto | ec658ea | 2016-05-11 12:21:33 +0100 | [diff] [blame] | 66 | ---help--- |
| 67 | Synopsys Test Chip is a PHY for prototyping purposes. |
| 68 | |
| 69 | If unsure, say N. |
| 70 | |
Vinayak Holikatti | 03b1781 | 2013-02-26 18:04:45 +0530 | [diff] [blame] | 71 | config SCSI_UFSHCD_PLATFORM |
| 72 | tristate "Platform bus based UFS Controller support" |
| 73 | depends on SCSI_UFSHCD |
| 74 | ---help--- |
| 75 | This selects the UFS host controller support. Select this if |
| 76 | you have an UFS controller on Platform bus. |
| 77 | |
| 78 | If you have a controller with this interface, say Y or M here. |
| 79 | |
| 80 | If unsure, say N. |
Yaniv Gardi | 81c0fc5 | 2015-01-15 16:32:37 +0200 | [diff] [blame] | 81 | |
| 82 | config SCSI_UFS_QCOM |
Yaniv Gardi | 9bac5db | 2015-10-28 13:15:46 +0200 | [diff] [blame] | 83 | tristate "QCOM specific hooks to UFS controller platform driver" |
Stephen Boyd | 0d143c6 | 2015-04-10 16:11:06 -0700 | [diff] [blame] | 84 | depends on SCSI_UFSHCD_PLATFORM && ARCH_QCOM |
Yaniv Gardi | 81c0fc5 | 2015-01-15 16:32:37 +0200 | [diff] [blame] | 85 | select PHY_QCOM_UFS |
Subhash Jadavani | 9e7ed48 | 2017-05-08 18:29:45 -0700 | [diff] [blame] | 86 | select EXTCON |
| 87 | select EXTCON_GPIO |
Yaniv Gardi | 81c0fc5 | 2015-01-15 16:32:37 +0200 | [diff] [blame] | 88 | help |
| 89 | This selects the QCOM specific additions to UFSHCD platform driver. |
| 90 | UFS host on QCOM needs some vendor specific configuration before |
| 91 | accessing the hardware which includes PHY configuration and vendor |
| 92 | specific registers. |
| 93 | |
| 94 | Select this if you have UFS controller on QCOM chipset. |
| 95 | If unsure, say N. |
Subhash Jadavani | cce6fbc | 2016-08-11 11:35:26 -0700 | [diff] [blame] | 96 | |
| 97 | config SCSI_UFS_QCOM_ICE |
| 98 | bool "QCOM specific hooks to Inline Crypto Engine for UFS driver" |
| 99 | depends on SCSI_UFS_QCOM && CRYPTO_DEV_QCOM_ICE |
| 100 | help |
| 101 | This selects the QCOM specific additions to support Inline Crypto |
| 102 | Engine (ICE). |
| 103 | ICE accelerates the crypto operations and maintains the high UFS |
| 104 | performance. |
| 105 | |
| 106 | Select this if you have ICE supported for UFS on QCOM chipset. |
| 107 | If unsure, say N. |
| 108 | |
| 109 | |
| 110 | config SCSI_UFS_TEST |
| 111 | tristate "Universal Flash Storage host controller driver unit-tests" |
| 112 | depends on SCSI_UFSHCD && IOSCHED_TEST |
| 113 | default m |
| 114 | ---help--- |
| 115 | This adds UFS Host controller unit-test framework. |
| 116 | The UFS unit-tests register as a block device test utility to |
| 117 | the test-iosched and will be initiated when the test-iosched will |
| 118 | be chosen to be the active I/O scheduler. |
Can Guo | b714773 | 2017-04-18 16:22:56 +0800 | [diff] [blame] | 119 | |
| 120 | config SCSI_UFSHCD_CMD_LOGGING |
| 121 | bool "Universal Flash Storage host controller driver layer command logging support" |
| 122 | depends on SCSI_UFSHCD |
| 123 | help |
| 124 | This selects the UFS host controller driver layer command logging. |
| 125 | UFS host controller driver layer command logging records all the |
| 126 | command information sent from UFS host controller for debugging |
| 127 | purpose. |
| 128 | |
| 129 | Select this if you want above mentioned debug information captured. |
| 130 | If unsure, say N. |