From 01b30f12060076433e81bbc8e66099fdf5062e54 Mon Sep 17 00:00:00 2001 From: puneet Date: Wed, 24 Oct 2018 13:04:46 +0530 Subject: [PATCH 1/2] drivers: iio: imu: enabled bmi and iam sensor compilation Did makefile changes to allow the sensor driver compilation Change-Id: I435597d950fe789faffbf65e278bcafa8b4ca184 Signed-off-by: puneet --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/input/Kconfig | 2 ++ drivers/input/Makefile | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iio/imu/Kconfig b/drivers/iio/imu/Kconfig index 5e610f7de5aa..903beab85e7e 100644 --- a/drivers/iio/imu/Kconfig +++ b/drivers/iio/imu/Kconfig @@ -37,6 +37,7 @@ config KMX61 be called kmx61. source "drivers/iio/imu/inv_mpu6050/Kconfig" +source "drivers/iio/imu/inv_mpu/Kconfig" endmenu diff --git a/drivers/iio/imu/Makefile b/drivers/iio/imu/Makefile index e1e6e3d70e26..54c282cca986 100644 --- a/drivers/iio/imu/Makefile +++ b/drivers/iio/imu/Makefile @@ -14,5 +14,6 @@ adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o obj-y += inv_mpu6050/ +obj-y += inv_mpu/ obj-$(CONFIG_KMX61) += kmx61.o diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index 2557dcda7621..5987a6c2261b 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -214,6 +214,8 @@ source "drivers/input/touchscreen/Kconfig" source "drivers/input/misc/Kconfig" +source "drivers/input/sensors/bmi160/Kconfig" + endif menu "Hardware I/O ports" diff --git a/drivers/input/Makefile b/drivers/input/Makefile index 2a6d05ab9170..45286b8e4769 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile @@ -28,4 +28,4 @@ obj-$(CONFIG_INPUT_MISC) += misc/ obj-$(CONFIG_INPUT_APMPOWER) += apm-power.o obj-$(CONFIG_INPUT_KEYRESET) += keyreset.o obj-$(CONFIG_INPUT_KEYCOMBO) += keycombo.o - +obj-y += sensors/bmi160/ From a552ff86f36832f03436dda79dbad70da63c647b Mon Sep 17 00:00:00 2001 From: puneet Date: Wed, 24 Oct 2018 14:33:41 +0530 Subject: [PATCH 2/2] ARCH: arm: defconfig: BMI160 and IAM20680 sensor enablement Enabled the bmi160 & iam20680 sensor code compilation Change-Id: I69db96c17eb361f96beab3053c3bca22cd2a38c8 Signed-off-by: puneet --- arch/arm64/configs/msm-auto-perf_defconfig | 10 ++++++++++ arch/arm64/configs/msm-auto_defconfig | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm64/configs/msm-auto-perf_defconfig b/arch/arm64/configs/msm-auto-perf_defconfig index 6f631287652a..fe6727a1eb25 100644 --- a/arch/arm64/configs/msm-auto-perf_defconfig +++ b/arch/arm64/configs/msm-auto-perf_defconfig @@ -317,6 +317,11 @@ CONFIG_INPUT_HBTP_INPUT=y CONFIG_INPUT_QPNP_POWER_ON=y CONFIG_INPUT_UINPUT=y CONFIG_INPUT_GPIO=y +CONFIG_BOSCH_DRIVER_LOG_FUNC=y +CONFIG_SENSORS_BMA2X2=y +CONFIG_SENSORS_BMA2X2_ENABLE_INT1=y +CONFIG_SENSORS_BMG=y +CONFIG_SENSORS_BMG_FIFO=y # CONFIG_SERIO_SERPORT is not set # CONFIG_VT is not set # CONFIG_LEGACY_PTYS is not set @@ -576,6 +581,11 @@ CONFIG_DEVFREQ_GOV_MEMLAT=y CONFIG_DEVFREQ_SIMPLE_DEV=y CONFIG_QCOM_DEVFREQ_DEVBW=y CONFIG_EXTCON=y +CONFIG_IIO=y +CONFIG_INV_MPU_IIO_IAM20680=y +CONFIG_INV_MPU_IIO_I2C=y +CONFIG_INV_MPU_IIO_SPI=y +CONFIG_INV_TESTING=y CONFIG_PWM=y CONFIG_PWM_QPNP=y CONFIG_ARM_GIC_V3_ACL=y diff --git a/arch/arm64/configs/msm-auto_defconfig b/arch/arm64/configs/msm-auto_defconfig index a45fc1ce832a..2b1b13c992e7 100644 --- a/arch/arm64/configs/msm-auto_defconfig +++ b/arch/arm64/configs/msm-auto_defconfig @@ -318,6 +318,11 @@ CONFIG_INPUT_HBTP_INPUT=y CONFIG_INPUT_QPNP_POWER_ON=y CONFIG_INPUT_UINPUT=y CONFIG_INPUT_GPIO=y +CONFIG_BOSCH_DRIVER_LOG_FUNC=y +CONFIG_SENSORS_BMA2X2=y +CONFIG_SENSORS_BMA2X2_ENABLE_INT1=y +CONFIG_SENSORS_BMG=y +CONFIG_SENSORS_BMG_FIFO=y # CONFIG_SERIO_SERPORT is not set # CONFIG_VT is not set # CONFIG_LEGACY_PTYS is not set @@ -585,6 +590,11 @@ CONFIG_DEVFREQ_GOV_MEMLAT=y CONFIG_DEVFREQ_SIMPLE_DEV=y CONFIG_QCOM_DEVFREQ_DEVBW=y CONFIG_EXTCON=y +CONFIG_IIO=y +CONFIG_INV_MPU_IIO_IAM20680=y +CONFIG_INV_MPU_IIO_I2C=y +CONFIG_INV_MPU_IIO_SPI=y +CONFIG_INV_TESTING=y CONFIG_PWM=y CONFIG_PWM_QPNP=y CONFIG_ARM_GIC_V3_ACL=y