Skip to contentSkip to conversation

arm64: defconfig: Enable cros-ec and battery driver

PATCH RESEND Applied Rhyland Klein 3 participants 3 messages Jun 29, 2016 – Jun 30, 2016 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 arm64: defconfig: Enable cros-ec and battery driver

Enable the ChromeOS Embedded Controller, its I2C tunnel driver, and the BA27XXX battery driver. These are all used on the Tegra210 Smaug platform.

---

Resending as the issue with power_supply_core/bq27xxx_battery has been resolved.

 arch/arm64/configs/defconfig | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/configs/defconfig +4 -0
index 58bc31e0e9b7..4b6d39c927e7 100644
@@ -186,6 +186,7 @@ CONFIG_I2C_QUP=y
 CONFIG_I2C_TEGRA=y
 CONFIG_I2C_UNIPHIER_F=y
 CONFIG_I2C_RCAR=y
+CONFIG_I2C_CROS_EC_TUNNEL=y
 CONFIG_SPI=y
 CONFIG_SPI_ORION=y
 CONFIG_SPI_PL022=y
@@ -206,6 +207,7 @@ CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_GPIO_MAX77620=y
 CONFIG_POWER_RESET_MSM=y
+CONFIG_BATTERY_BQ27XXX=y
 CONFIG_POWER_RESET_XGENE=y
 CONFIG_POWER_RESET_SYSCON=y
 CONFIG_SENSORS_LM90=m
@@ -220,6 +222,8 @@ CONFIG_MFD_SPMI_PMIC=y
 CONFIG_MFD_SEC_CORE=y
 CONFIG_MFD_HI655X_PMIC=y
 CONFIG_REGULATOR=y
+CONFIG_MFD_CROS_EC=y
+CONFIG_MFD_CROS_EC_I2C=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_HI655X=y
 CONFIG_REGULATOR_MAX77620=y
Signature · 1 line
1.9.1
Tested-by on v1 1/1
#1 lore raw
Quoted 3 lines · Rhyland Klein

Enable the ChromeOS Embedded Controller, its I2C tunnel driver, and the BA27XXX battery driver. These are all used on the Tegra210 Smaug platform.

Can see the bq27742 in /sys and query its state.

#2 lore raw
In reply to Rhyland Klein
Quoted 4 lines · Rhyland Klein

Enable the ChromeOS Embedded Controller, its I2C tunnel driver, and the BA27XXX battery driver. These are all used on the Tegra210 Smaug platform.

Quoted 8 lines

---

Resending as the issue with power_supply_core/bq27xxx_battery has been resolved.

 arch/arm64/configs/defconfig | 4 ++++
 1 file changed, 4 insertions(+)

Applied, thanks.

Thierry