2016-10-15 20:19:50 +08:00
|
|
|
# Kconfig - AK8975 magnetometer configuration options
|
2016-05-27 16:33:29 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-05-27 16:33:29 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig AK8975
|
|
|
|
bool
|
|
|
|
prompt "AK8975 Magnetometer"
|
|
|
|
depends on SENSOR && I2C
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable driver for AK8975 magnetometer.
|
|
|
|
|
|
|
|
config AK8975_NAME
|
|
|
|
string
|
|
|
|
prompt "Driver name"
|
|
|
|
default "AK8975"
|
|
|
|
depends on AK8975
|
|
|
|
help
|
|
|
|
Device name with which the AK8975 sensor is identified.
|
|
|
|
|
|
|
|
config AK8975_I2C_ADDR
|
|
|
|
hex
|
|
|
|
prompt "I2C address"
|
|
|
|
depends on AK8975
|
|
|
|
default 0x0C
|
|
|
|
range 0x0C 0x0F
|
|
|
|
help
|
|
|
|
I2C address of the AK8975 sensor. Choose:
|
2016-10-05 20:45:54 +08:00
|
|
|
|
2017-04-22 01:29:51 +08:00
|
|
|
- 0x0C if CAD1 connected to GND and CAD0 is connected to GND
|
|
|
|
- 0x0D if CAD1 connected to GND and CAD0 is connected to VDD
|
|
|
|
- 0x0E if CAD1 connected to VDD and CAD0 is connected to GND
|
|
|
|
- 0x0F if CAD1 connected to VDD and CAD0 is connected to VDD
|
2016-10-05 20:45:54 +08:00
|
|
|
|
2016-05-31 22:28:41 +08:00
|
|
|
If the AK8975 sensor is part of a MPU9159 chip, the I2C address
|
|
|
|
needs to be 0x0C.
|
2016-05-27 16:33:29 +08:00
|
|
|
|
|
|
|
config AK8975_I2C_MASTER_DEV_NAME
|
|
|
|
string
|
|
|
|
prompt "I2C master where AK8975 is connected"
|
|
|
|
depends on AK8975
|
|
|
|
default "I2C_0"
|
|
|
|
help
|
|
|
|
Specify the device name of the I2C master device to which the
|
|
|
|
AK8975 chip is connected.
|
2016-05-31 22:28:41 +08:00
|
|
|
|
|
|
|
config MPU9150
|
|
|
|
bool
|
|
|
|
prompt "Enable MPU9180 support"
|
|
|
|
depends on AK8975
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable this config option if the AK8975 sensor is part of a
|
|
|
|
MPU9150 chip.
|
|
|
|
|
|
|
|
config MPU9150_I2C_ADDR
|
|
|
|
hex
|
|
|
|
prompt "MPU9180 I2C address"
|
|
|
|
depends on AK8975 && MPU9150 && !MPU6050
|
|
|
|
range 0x68 0x69
|
|
|
|
default 0x68
|
|
|
|
help
|
|
|
|
I2C address of the MPU9150. If the driver for MPU6050 is enabled,
|
|
|
|
its address will be used and this option made unavailable.
|