MPU3050 driver for Linux

By abas_vali , 13 July 2011

Hi! I want to use MPU3050 on a Linux-based embedded system (based on NXP LPC3141) I'm working on.

I found MPU3050/6000 drivers at
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=commitdiff;h=a94c4b7d86e4c71357a74f705cffaee9df78a203
but I'm experiencing a few problems while adding it to my kernel (it's designed for Android on a Nvidia Tegra platform so I guess it needs minor adaptations).

I manage in adding all drivers succesfully (it builds) but I got stopped when "adding" the MPU3050 to the board.
I get a

arch/arm/mach-lpc313x/ea313x.c:490: error: 'kxtf9_get_slave_descr' undeclared here (not in a function)

which is unexpected as the function is clearly reported in mpu.h

#ifdef CONFIG_SENSORS_KXSD9_MPU /* Kionix accelerometer */
struct ext_slave_descr *kxsd9_get_slave_descr(void);
#undef get_accel_slave_descr
#define get_accel_slave_descr kxsd9_get_slave_descr
#endif


Note: the first line was "CONFIG_SENSORS_KXSD9" originally, I had to rename it adding "_MPU" as this is the right name used in the Kconfig.

Have any of you encountered similar issues / employed linux drivers?
phpbb Topic ID
13656