Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
背景:
rk3288上默认自带i2c_detect工具来探测对应I2C总线上挂载的设备以及地址。
rk3399平台默认没有开启,参考rk3288做如下修改,就可以使用了。
改动:
diff --git a/arch/arm64/configs/rockchip_eco_defconfig
b/arch/arm64/configs/rockchip_eco_defconfig
index 89b89a5..6dcba49 100644
--- a/arch/arm64/configs/rockchip_eco_defconfig
+++ b/arch/arm64/configs/rockchip_eco_defconfig
@@ -400,6 +400,8 @@ CONFIG_SERIAL_8250_DW=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_GPIO=y
CONFIG_I2C_RK3X=y
+#Kris,181204, add i2c_detect tool.
+CONFIG_I2C_ROCKCHIP=y
CONFIG_SPI=y
CONFIG_SPI_ROCKCHIP=y
CONFIG_DEBUG_GPIO=y
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 7b0aa82..14e3bf0 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -806,6 +806,18 @