Skip to contentSkip to conversation

i2c: tegra-bpmp: Enable Tegra BPMP I2C adapter

PATCH Superseded Jon Hunter 2 participants 3 messages Mar 15, 2017 – Mar 24, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

PATCH 1/1 i2c: tegra-bpmp: Enable Tegra BPMP I2C adapter

Enable the Tegra BPMP I2C adapter by default if the Tegra BPMP itself is enabled. This adapter is used as the I2C interface for the PMIC on the Tegra186 Jetson-TX2 platform.

---
 drivers/i2c/busses/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/Kconfig +1 -0
index 8adc0f1d7ad0..9e024ae8a067 100644
@@ -933,6 +933,7 @@ config I2C_TEGRA
 config I2C_TEGRA_BPMP
 	tristate "NVIDIA Tegra BPMP I2C controller"
 	depends on TEGRA_BPMP
+	default y if TEGRA_BPMP
 	help
 	  If you say yes to this option, support will be included for the I2C
 	  controller embedded in NVIDIA Tegra SoCs accessed via the BPMP.
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Jon Hunter

Enable the Tegra BPMP I2C adapter by default if the Tegra BPMP itself is enabled. This adapter is used as the I2C interface for the PMIC on the Tegra186 Jetson-TX2 platform.

---
 drivers/i2c/busses/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/Kconfig +0 -0
index 8adc0f1d7ad0..9e024ae8a067 100644

drivers/i2c/busses/Kconfig config I2C_TEGRA · line 936

Quoted 4 lines
drivers/i2c/busses/Kconfig +1 -0
@@ -933,6 +933,7 @@ config I2C_TEGRA
 config I2C_TEGRA_BPMP
 	tristate "NVIDIA Tegra BPMP I2C controller"
 	depends on TEGRA_BPMP
+	default y if TEGRA_BPMP

I think "if TEGRA_BPMP" in the line above implies "depends on TEGRA_BPMP", so it's redundant. "default y" should be equivalent. That said, I'm not sure if we really want to always enable this. There could be boards with a BPMP that don't use the I2C controller.

But that's fairly unlikely, so with the redundant dependency on TEGRA_BPMP fixed, this is:

author maintainer
#2 lore raw
Quoted 12 lines · Thierry Reding

* PGP Signed by an unknown key

Quoted 9 lines · Jon Hunter

Enable the Tegra BPMP I2C adapter by default if the Tegra BPMP itself is enabled. This adapter is used as the I2C interface for the PMIC on the Tegra186 Jetson-TX2 platform.

---
 drivers/i2c/busses/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

drivers/i2c/busses/Kconfig config I2C_TEGRA · line 936

Quoted 9 lines
drivers/i2c/busses/Kconfig +1 -0
index 8adc0f1d7ad0..9e024ae8a067 100644
@@ -933,6 +933,7 @@ config I2C_TEGRA
 config I2C_TEGRA_BPMP
 	tristate "NVIDIA Tegra BPMP I2C controller"
 	depends on TEGRA_BPMP
+	default y if TEGRA_BPMP

I think "if TEGRA_BPMP" in the line above implies "depends on TEGRA_BPMP", so it's redundant. "default y" should be equivalent. That said, I'm not sure if we really want to always enable this. There could be boards with a BPMP that don't use the I2C controller.

Initially, I had thought about putting a select for this under the ARCH_TEGRA_186_SOC in drivers/soc/tegra/Kconfig. We could always do that in the future if it turns out the BPMP does not have i2c on newer chips.

Cheers
Jon

Signature · 1 line
nvpublic