Searched refs:mpu3050 (Results 1 – 5 of 5) sorted by relevance
/drivers/iio/gyro/ |
D | mpu3050-core.c | 180 static unsigned int mpu3050_get_freq(struct mpu3050 *mpu3050) in mpu3050_get_freq() argument 184 if (mpu3050->lpf == MPU3050_DLPF_CFG_256HZ_NOLPF2) in mpu3050_get_freq() 188 freq /= (mpu3050->divisor + 1); in mpu3050_get_freq() 193 static int mpu3050_start_sampling(struct mpu3050 *mpu3050) in mpu3050_start_sampling() argument 200 ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling() 206 ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling() 214 raw_val[i] = cpu_to_be16(mpu3050->calibration[i]); in mpu3050_start_sampling() 216 ret = regmap_bulk_write(mpu3050->map, MPU3050_X_OFFS_USR_H, raw_val, in mpu3050_start_sampling() 222 ret = regmap_write(mpu3050->map, MPU3050_DLPF_FS_SYNC, in mpu3050_start_sampling() 224 mpu3050->fullscale << MPU3050_FS_SHIFT | in mpu3050_start_sampling() [all …]
|
D | mpu3050-i2c.c | 19 struct mpu3050 *mpu3050 = i2c_mux_priv(mux); in mpu3050_i2c_bypass_select() local 22 pm_runtime_get_sync(mpu3050->dev); in mpu3050_i2c_bypass_select() 28 struct mpu3050 *mpu3050 = i2c_mux_priv(mux); in mpu3050_i2c_bypass_deselect() local 30 pm_runtime_mark_last_busy(mpu3050->dev); in mpu3050_i2c_bypass_deselect() 31 pm_runtime_put_autosuspend(mpu3050->dev); in mpu3050_i2c_bypass_deselect() 40 struct mpu3050 *mpu3050; in mpu3050_i2c_probe() local 64 mpu3050 = iio_priv(dev_get_drvdata(&client->dev)); in mpu3050_i2c_probe() 65 mpu3050->i2cmux = i2c_mux_alloc(client->adapter, &client->dev, in mpu3050_i2c_probe() 70 if (!mpu3050->i2cmux) in mpu3050_i2c_probe() 73 mpu3050->i2cmux->priv = mpu3050; in mpu3050_i2c_probe() [all …]
|
D | Makefile | 24 obj-$(CONFIG_MPU3050) += mpu3050.o 25 mpu3050-objs := mpu3050-core.o mpu3050-i2c.o
|
D | mpu3050.h | 68 struct mpu3050 { struct
|
D | Kconfig | 136 inv-mpu3050-i2c.
|