xref: /openbmc/linux/drivers/ufs/host/Kconfig (revision 89f7ef7f)
1dd11376bSBart Van Assche# SPDX-License-Identifier: GPL-2.0+
2dd11376bSBart Van Assche#
3dd11376bSBart Van Assche# Kernel configuration file for the UFS host controller drivers.
4dd11376bSBart Van Assche#
5dd11376bSBart Van Assche# Copyright (C) 2011-2013 Samsung India Software Operations
6dd11376bSBart Van Assche#
7dd11376bSBart Van Assche# Authors:
8dd11376bSBart Van Assche#	Santosh Yaraganavi <santosh.sy@samsung.com>
9dd11376bSBart Van Assche#	Vinayak Holikatti <h.vinayak@samsung.com>
10dd11376bSBart Van Assche
11dd11376bSBart Van Asscheconfig SCSI_UFSHCD_PCI
12dd11376bSBart Van Assche	tristate "PCI bus based UFS Controller support"
13dd11376bSBart Van Assche	depends on PCI
14dd11376bSBart Van Assche	help
15dd11376bSBart Van Assche	  This selects the PCI UFS Host Controller Interface. Select this if
16dd11376bSBart Van Assche	  you have UFS Host Controller with PCI Interface.
17dd11376bSBart Van Assche
18dd11376bSBart Van Assche	  If you have a controller with this interface, say Y or M here.
19dd11376bSBart Van Assche
20dd11376bSBart Van Assche	  If unsure, say N.
21dd11376bSBart Van Assche
22dd11376bSBart Van Asscheconfig SCSI_UFS_DWC_TC_PCI
23dd11376bSBart Van Assche	tristate "DesignWare pci support using a G210 Test Chip"
24dd11376bSBart Van Assche	depends on SCSI_UFSHCD_PCI
25dd11376bSBart Van Assche	help
26dd11376bSBart Van Assche	  Synopsys Test Chip is a PHY for prototyping purposes.
27dd11376bSBart Van Assche
28dd11376bSBart Van Assche	  If unsure, say N.
29dd11376bSBart Van Assche
30dd11376bSBart Van Asscheconfig SCSI_UFSHCD_PLATFORM
31dd11376bSBart Van Assche	tristate "Platform bus based UFS Controller support"
32dd11376bSBart Van Assche	depends on HAS_IOMEM
33dd11376bSBart Van Assche	help
34dd11376bSBart Van Assche	  This selects the UFS host controller support. Select this if
35dd11376bSBart Van Assche	  you have an UFS controller on Platform bus.
36dd11376bSBart Van Assche
37dd11376bSBart Van Assche	  If you have a controller with this interface, say Y or M here.
38dd11376bSBart Van Assche
39dd11376bSBart Van Assche	  If unsure, say N.
40dd11376bSBart Van Assche
41dd11376bSBart Van Asscheconfig SCSI_UFS_CDNS_PLATFORM
42dd11376bSBart Van Assche	tristate "Cadence UFS Controller platform driver"
43dd11376bSBart Van Assche	depends on SCSI_UFSHCD_PLATFORM
44dd11376bSBart Van Assche	help
45dd11376bSBart Van Assche	  This selects the Cadence-specific additions to UFSHCD platform driver.
46dd11376bSBart Van Assche
47dd11376bSBart Van Assche	  If unsure, say N.
48dd11376bSBart Van Assche
49dd11376bSBart Van Asscheconfig SCSI_UFS_DWC_TC_PLATFORM
50dd11376bSBart Van Assche	tristate "DesignWare platform support using a G210 Test Chip"
51473025a6SBart Van Assche	depends on OF && SCSI_UFSHCD_PLATFORM
52dd11376bSBart Van Assche	help
53dd11376bSBart Van Assche	  Synopsys Test Chip is a PHY for prototyping purposes.
54dd11376bSBart Van Assche
55dd11376bSBart Van Assche	  If unsure, say N.
56dd11376bSBart Van Assche
57dd11376bSBart Van Asscheconfig SCSI_UFS_QCOM
58dd11376bSBart Van Assche	tristate "QCOM specific hooks to UFS controller platform driver"
59dd11376bSBart Van Assche	depends on SCSI_UFSHCD_PLATFORM && ARCH_QCOM
6049f262bcSArnd Bergmann	depends on GENERIC_MSI_IRQ
6149f262bcSArnd Bergmann	depends on RESET_CONTROLLER
6256541c7cSAbel Vesa	select QCOM_INLINE_CRYPTO_ENGINE if SCSI_UFS_CRYPTO
63dd11376bSBart Van Assche	help
64dd11376bSBart Van Assche	  This selects the QCOM specific additions to UFSHCD platform driver.
65dd11376bSBart Van Assche	  UFS host on QCOM needs some vendor specific configuration before
66dd11376bSBart Van Assche	  accessing the hardware which includes PHY configuration and vendor
67dd11376bSBart Van Assche	  specific registers.
68dd11376bSBart Van Assche
69dd11376bSBart Van Assche	  Select this if you have UFS controller on QCOM chipset.
70dd11376bSBart Van Assche	  If unsure, say N.
71dd11376bSBart Van Assche
72dd11376bSBart Van Asscheconfig SCSI_UFS_MEDIATEK
73dd11376bSBart Van Assche	tristate "Mediatek specific hooks to UFS controller platform driver"
74dd11376bSBart Van Assche	depends on SCSI_UFSHCD_PLATFORM && ARCH_MEDIATEK
75*89f7ef7fSRandy Dunlap	depends on RESET_CONTROLLER
76dd11376bSBart Van Assche	select PHY_MTK_UFS
77dd11376bSBart Van Assche	select RESET_TI_SYSCON
78dd11376bSBart Van Assche	help
79dd11376bSBart Van Assche	  This selects the Mediatek specific additions to UFSHCD platform driver.
80dd11376bSBart Van Assche	  UFS host on Mediatek needs some vendor specific configuration before
81dd11376bSBart Van Assche	  accessing the hardware which includes PHY configuration and vendor
82dd11376bSBart Van Assche	  specific registers.
83dd11376bSBart Van Assche
84dd11376bSBart Van Assche	  Select this if you have UFS controller on Mediatek chipset.
85dd11376bSBart Van Assche
86dd11376bSBart Van Assche	  If unsure, say N.
87dd11376bSBart Van Assche
88dd11376bSBart Van Asscheconfig SCSI_UFS_HISI
89dd11376bSBart Van Assche	tristate "Hisilicon specific hooks to UFS controller platform driver"
90dd11376bSBart Van Assche	depends on (ARCH_HISI || COMPILE_TEST) && SCSI_UFSHCD_PLATFORM
91dd11376bSBart Van Assche	help
92dd11376bSBart Van Assche	  This selects the Hisilicon specific additions to UFSHCD platform driver.
93dd11376bSBart Van Assche
94dd11376bSBart Van Assche	  Select this if you have UFS controller on Hisilicon chipset.
95dd11376bSBart Van Assche	  If unsure, say N.
96dd11376bSBart Van Assche
97d6952028SYoshihiro Shimodaconfig SCSI_UFS_RENESAS
98d6952028SYoshihiro Shimoda	tristate "Renesas specific hooks to UFS controller platform driver"
99d6952028SYoshihiro Shimoda	depends on (ARCH_RENESAS || COMPILE_TEST) && SCSI_UFSHCD_PLATFORM
100d6952028SYoshihiro Shimoda	help
101d6952028SYoshihiro Shimoda	  This selects the Renesas specific additions to UFSHCD platform driver.
102d6952028SYoshihiro Shimoda	  UFS host on Renesas needs some vendor specific configuration before
103d6952028SYoshihiro Shimoda	  accessing the hardware.
104d6952028SYoshihiro Shimoda
105d6952028SYoshihiro Shimoda	  Select this if you have UFS controller on Renesas chipset.
106d6952028SYoshihiro Shimoda
107d6952028SYoshihiro Shimoda	  If unsure, say N.
108d6952028SYoshihiro Shimoda
109dd11376bSBart Van Asscheconfig SCSI_UFS_TI_J721E
110dd11376bSBart Van Assche	tristate "TI glue layer for Cadence UFS Controller"
111dd11376bSBart Van Assche	depends on OF && HAS_IOMEM && (ARCH_K3 || COMPILE_TEST)
112dd11376bSBart Van Assche	help
113dd11376bSBart Van Assche	  This selects driver for TI glue layer for Cadence UFS Host
114dd11376bSBart Van Assche	  Controller IP.
115dd11376bSBart Van Assche
116dd11376bSBart Van Assche	  Selects this if you have TI platform with UFS controller.
117dd11376bSBart Van Assche	  If unsure, say N.
118dd11376bSBart Van Assche
119dd11376bSBart Van Asscheconfig SCSI_UFS_EXYNOS
120dd11376bSBart Van Assche	tristate "Exynos specific hooks to UFS controller platform driver"
121dd11376bSBart Van Assche	depends on SCSI_UFSHCD_PLATFORM && (ARCH_EXYNOS || COMPILE_TEST)
122dd11376bSBart Van Assche	help
123dd11376bSBart Van Assche	  This selects the Samsung Exynos SoC specific additions to UFSHCD
124dd11376bSBart Van Assche	  platform driver.  UFS host on Samsung Exynos SoC includes HCI and
125dd11376bSBart Van Assche	  UNIPRO layer, and associates with UFS-PHY driver.
126dd11376bSBart Van Assche
127dd11376bSBart Van Assche	  Select this if you have UFS host controller on Samsung Exynos SoC.
128dd11376bSBart Van Assche	  If unsure, say N.
129ada1e653SEric Biggers
130ada1e653SEric Biggersconfig SCSI_UFS_VARIABLE_SG_ENTRY_SIZE
131ada1e653SEric Biggers	bool
132ada1e653SEric Biggers	default y if SCSI_UFS_EXYNOS && SCSI_UFS_CRYPTO
133df7320baSZhe Wang
134df7320baSZhe Wangconfig SCSI_UFS_SPRD
135df7320baSZhe Wang	tristate "Unisoc specific hooks to UFS controller platform driver"
136df7320baSZhe Wang	depends on SCSI_UFSHCD_PLATFORM && (ARCH_SPRD || COMPILE_TEST)
137df7320baSZhe Wang	help
138df7320baSZhe Wang	  This selects the Unisoc specific additions to UFSHCD platform driver.
139df7320baSZhe Wang	  UFS host on Unisoc needs some vendor specific configuration before
140df7320baSZhe Wang	  accessing the hardware which includes PHY configuration and vendor
141df7320baSZhe Wang	  specific registers.
142df7320baSZhe Wang
143df7320baSZhe Wang	  Select this if you have UFS controller on Unisoc chipset.
144df7320baSZhe Wang	  If unsure, say N.
145