Skip to content

Commit

Permalink
iio: Add Freescale mag3110 magnetometer driver
Browse files Browse the repository at this point in the history
three-axis digital magnetometer with I2C interface

datasheet is available from
http://cache.freescale.com/files/sensors/doc/data_sheet/MAG3110.pdf

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
pmeerw authored and jic23 committed Oct 23, 2013
1 parent 2ab61fa commit 39631b5
Show file tree
Hide file tree
Showing 3 changed files with 412 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/iio/magnetometer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ config AK8975
To compile this driver as a module, choose M here: the module
will be called ak8975.

config MAG3110
tristate "Freescale MAG3110 3-Axis Magnetometer"
depends on I2C
help
Say yes here to build support for the Freescale MAG3110 3-Axis
magnetometer.

To compile this driver as a module, choose M here: the module
will be called mag3110.

config HID_SENSOR_MAGNETOMETER_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/magnetometer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AK8975) += ak8975.o
obj-$(CONFIG_MAG3110) += mag3110.o
obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o

obj-$(CONFIG_IIO_ST_MAGN_3AXIS) += st_magn.o
Expand Down

0 comments on commit 39631b5

Please sign in to comment.