aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorChristophe RICARD <christophe.ricard@gmail.com>2016-02-13 10:15:29 -0500
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-06-25 10:21:42 -0400
commitb55c8e9f14710d4f91579b2cb9a03734ec38bdab (patch)
treee6da671f6ba215f30c6b30f1297afbf7da1e0240 /drivers/char
parent8d8d218e89e45717dfed6ac410e706f9c66d8255 (diff)
tpm/st33zp24: Auto-select core module
The core st33zp24 module is useless without either the I2C or the SPI access module. So hide NFC_ST_NCI and select it automatically if either TCG_TIS_ST33ZP24_I2C or TCG_TIS_ST33ZP24_SPI is selected. This avoids presenting TCG_TIS_ST33ZP24 when neither TCG_TIS_ST33ZP24_I2C nor TCG_TIS_ST33ZP24_SPI can be selected. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tpm/st33zp24/Kconfig11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/char/tpm/st33zp24/Kconfig b/drivers/char/tpm/st33zp24/Kconfig
index 19c007461d1c..e74c6f29fc85 100644
--- a/drivers/char/tpm/st33zp24/Kconfig
+++ b/drivers/char/tpm/st33zp24/Kconfig
@@ -1,6 +1,5 @@
1config TCG_TIS_ST33ZP24 1config TCG_TIS_ST33ZP24
2 tristate "STMicroelectronics TPM Interface Specification 1.2 Interface" 2 tristate
3 depends on GPIOLIB || COMPILE_TEST
4 ---help--- 3 ---help---
5 STMicroelectronics ST33ZP24 core driver. It implements the core 4 STMicroelectronics ST33ZP24 core driver. It implements the core
6 TPM1.2 logic and hooks into the TPM kernel APIs. Physical layers will 5 TPM1.2 logic and hooks into the TPM kernel APIs. Physical layers will
@@ -10,9 +9,9 @@ config TCG_TIS_ST33ZP24
10 tpm_st33zp24. 9 tpm_st33zp24.
11 10
12config TCG_TIS_ST33ZP24_I2C 11config TCG_TIS_ST33ZP24_I2C
13 tristate "TPM 1.2 ST33ZP24 I2C support" 12 tristate "STMicroelectronics TPM Interface Specification 1.2 Interface (I2C)"
14 depends on TCG_TIS_ST33ZP24
15 depends on I2C 13 depends on I2C
14 select TCG_TIS_ST33ZP24
16 ---help--- 15 ---help---
17 This module adds support for the STMicroelectronics TPM security chip 16 This module adds support for the STMicroelectronics TPM security chip
18 ST33ZP24 with i2c interface. 17 ST33ZP24 with i2c interface.
@@ -20,9 +19,9 @@ config TCG_TIS_ST33ZP24_I2C
20 called tpm_st33zp24_i2c. 19 called tpm_st33zp24_i2c.
21 20
22config TCG_TIS_ST33ZP24_SPI 21config TCG_TIS_ST33ZP24_SPI
23 tristate "TPM 1.2 ST33ZP24 SPI support" 22 tristate "STMicroelectronics TPM Interface Specification 1.2 Interface (SPI)"
24 depends on TCG_TIS_ST33ZP24
25 depends on SPI 23 depends on SPI
24 select TCG_TIS_ST33ZP24
26 ---help--- 25 ---help---
27 This module adds support for the STMicroelectronics TPM security chip 26 This module adds support for the STMicroelectronics TPM security chip
28 ST33ZP24 with spi interface. 27 ST33ZP24 with spi interface.