2 * Copyright (C) 2012 Invensense, Inc.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/module.h>
15 #include <linux/init.h>
16 #include <linux/slab.h>
17 #include <linux/i2c.h>
18 #include <linux/err.h>
19 #include <linux/delay.h>
20 #include <linux/sysfs.h>
21 #include <linux/jiffies.h>
22 #include <linux/irq.h>
23 #include <linux/interrupt.h>
24 #include <linux/kfifo.h>
25 #include <linux/spinlock.h>
26 #include "inv_mpu_iio.h"
29 * this is the gyro scale translated from dynamic range plus/minus
30 * {250, 500, 1000, 2000} to rad/s
32 static const int gyro_scale_6050
[] = {133090, 266181, 532362, 1064724};
35 * this is the accel scale translated from dynamic range plus/minus
36 * {2, 4, 8, 16} to m/s^2
38 static const int accel_scale
[] = {598, 1196, 2392, 4785};
40 static const struct inv_mpu6050_reg_map reg_set_6050
= {
41 .sample_rate_div
= INV_MPU6050_REG_SAMPLE_RATE_DIV
,
42 .lpf
= INV_MPU6050_REG_CONFIG
,
43 .user_ctrl
= INV_MPU6050_REG_USER_CTRL
,
44 .fifo_en
= INV_MPU6050_REG_FIFO_EN
,
45 .gyro_config
= INV_MPU6050_REG_GYRO_CONFIG
,
46 .accl_config
= INV_MPU6050_REG_ACCEL_CONFIG
,
47 .fifo_count_h
= INV_MPU6050_REG_FIFO_COUNT_H
,
48 .fifo_r_w
= INV_MPU6050_REG_FIFO_R_W
,
49 .raw_gyro
= INV_MPU6050_REG_RAW_GYRO
,
50 .raw_accl
= INV_MPU6050_REG_RAW_ACCEL
,
51 .temperature
= INV_MPU6050_REG_TEMPERATURE
,
52 .int_enable
= INV_MPU6050_REG_INT_ENABLE
,
53 .pwr_mgmt_1
= INV_MPU6050_REG_PWR_MGMT_1
,
54 .pwr_mgmt_2
= INV_MPU6050_REG_PWR_MGMT_2
,
57 static const struct inv_mpu6050_chip_config chip_config_6050
= {
58 .fsr
= INV_MPU6050_FSR_2000DPS
,
59 .lpf
= INV_MPU6050_FILTER_20HZ
,
60 .fifo_rate
= INV_MPU6050_INIT_FIFO_RATE
,
61 .gyro_fifo_enable
= false,
62 .accl_fifo_enable
= false,
63 .accl_fs
= INV_MPU6050_FS_02G
,
66 static const struct inv_mpu6050_hw hw_info
[INV_NUM_PARTS
] = {
71 .config
= &chip_config_6050
,
75 int inv_mpu6050_write_reg(struct inv_mpu6050_state
*st
, int reg
, u8 d
)
77 return i2c_smbus_write_i2c_block_data(st
->client
, reg
, 1, &d
);
80 int inv_mpu6050_switch_engine(struct inv_mpu6050_state
*st
, bool en
, u32 mask
)
85 /* switch clock needs to be careful. Only when gyro is on, can
86 clock source be switched to gyro. Otherwise, it must be set to
88 if (INV_MPU6050_BIT_PWR_GYRO_STBY
== mask
) {
89 result
= i2c_smbus_read_i2c_block_data(st
->client
,
90 st
->reg
->pwr_mgmt_1
, 1, &mgmt_1
);
94 mgmt_1
&= ~INV_MPU6050_BIT_CLK_MASK
;
97 if ((INV_MPU6050_BIT_PWR_GYRO_STBY
== mask
) && (!en
)) {
98 /* turning off gyro requires switch to internal clock first.
99 Then turn off gyro engine */
100 mgmt_1
|= INV_CLK_INTERNAL
;
101 result
= inv_mpu6050_write_reg(st
, st
->reg
->pwr_mgmt_1
, mgmt_1
);
106 result
= i2c_smbus_read_i2c_block_data(st
->client
,
107 st
->reg
->pwr_mgmt_2
, 1, &d
);
114 result
= inv_mpu6050_write_reg(st
, st
->reg
->pwr_mgmt_2
, d
);
119 /* Wait for output stablize */
120 msleep(INV_MPU6050_TEMP_UP_TIME
);
121 if (INV_MPU6050_BIT_PWR_GYRO_STBY
== mask
) {
122 /* switch internal clock to PLL */
123 mgmt_1
|= INV_CLK_PLL
;
124 result
= inv_mpu6050_write_reg(st
,
125 st
->reg
->pwr_mgmt_1
, mgmt_1
);
134 int inv_mpu6050_set_power_itg(struct inv_mpu6050_state
*st
, bool power_on
)
139 result
= inv_mpu6050_write_reg(st
, st
->reg
->pwr_mgmt_1
, 0);
141 result
= inv_mpu6050_write_reg(st
, st
->reg
->pwr_mgmt_1
,
142 INV_MPU6050_BIT_SLEEP
);
147 msleep(INV_MPU6050_REG_UP_TIME
);
153 * inv_mpu6050_init_config() - Initialize hardware, disable FIFO.
155 * Initial configuration:
159 * Clock source: Gyro PLL
161 static int inv_mpu6050_init_config(struct iio_dev
*indio_dev
)
165 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
167 result
= inv_mpu6050_set_power_itg(st
, true);
170 d
= (INV_MPU6050_FSR_2000DPS
<< INV_MPU6050_GYRO_CONFIG_FSR_SHIFT
);
171 result
= inv_mpu6050_write_reg(st
, st
->reg
->gyro_config
, d
);
175 d
= INV_MPU6050_FILTER_20HZ
;
176 result
= inv_mpu6050_write_reg(st
, st
->reg
->lpf
, d
);
180 d
= INV_MPU6050_ONE_K_HZ
/ INV_MPU6050_INIT_FIFO_RATE
- 1;
181 result
= inv_mpu6050_write_reg(st
, st
->reg
->sample_rate_div
, d
);
185 d
= (INV_MPU6050_FS_02G
<< INV_MPU6050_ACCL_CONFIG_FSR_SHIFT
);
186 result
= inv_mpu6050_write_reg(st
, st
->reg
->accl_config
, d
);
190 memcpy(&st
->chip_config
, hw_info
[st
->chip_type
].config
,
191 sizeof(struct inv_mpu6050_chip_config
));
192 result
= inv_mpu6050_set_power_itg(st
, false);
197 static int inv_mpu6050_sensor_show(struct inv_mpu6050_state
*st
, int reg
,
203 ind
= (axis
- IIO_MOD_X
) * 2;
204 result
= i2c_smbus_read_i2c_block_data(st
->client
, reg
+ ind
, 2,
208 *val
= (short)be16_to_cpup(&d
);
213 static int inv_mpu6050_read_raw(struct iio_dev
*indio_dev
,
214 struct iio_chan_spec
const *chan
,
218 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
221 case IIO_CHAN_INFO_RAW
:
227 mutex_lock(&indio_dev
->mlock
);
228 if (!st
->chip_config
.enable
) {
229 result
= inv_mpu6050_set_power_itg(st
, true);
233 /* when enable is on, power is already on */
234 switch (chan
->type
) {
236 if (!st
->chip_config
.gyro_fifo_enable
||
237 !st
->chip_config
.enable
) {
238 result
= inv_mpu6050_switch_engine(st
, true,
239 INV_MPU6050_BIT_PWR_GYRO_STBY
);
243 ret
= inv_mpu6050_sensor_show(st
, st
->reg
->raw_gyro
,
244 chan
->channel2
, val
);
245 if (!st
->chip_config
.gyro_fifo_enable
||
246 !st
->chip_config
.enable
) {
247 result
= inv_mpu6050_switch_engine(st
, false,
248 INV_MPU6050_BIT_PWR_GYRO_STBY
);
254 if (!st
->chip_config
.accl_fifo_enable
||
255 !st
->chip_config
.enable
) {
256 result
= inv_mpu6050_switch_engine(st
, true,
257 INV_MPU6050_BIT_PWR_ACCL_STBY
);
261 ret
= inv_mpu6050_sensor_show(st
, st
->reg
->raw_accl
,
262 chan
->channel2
, val
);
263 if (!st
->chip_config
.accl_fifo_enable
||
264 !st
->chip_config
.enable
) {
265 result
= inv_mpu6050_switch_engine(st
, false,
266 INV_MPU6050_BIT_PWR_ACCL_STBY
);
272 /* wait for stablization */
273 msleep(INV_MPU6050_SENSOR_UP_TIME
);
274 inv_mpu6050_sensor_show(st
, st
->reg
->temperature
,
282 if (!st
->chip_config
.enable
)
283 result
|= inv_mpu6050_set_power_itg(st
, false);
284 mutex_unlock(&indio_dev
->mlock
);
290 case IIO_CHAN_INFO_SCALE
:
291 switch (chan
->type
) {
294 *val2
= gyro_scale_6050
[st
->chip_config
.fsr
];
296 return IIO_VAL_INT_PLUS_NANO
;
299 *val2
= accel_scale
[st
->chip_config
.accl_fs
];
301 return IIO_VAL_INT_PLUS_MICRO
;
304 *val2
= INV_MPU6050_TEMP_SCALE
;
306 return IIO_VAL_INT_PLUS_MICRO
;
310 case IIO_CHAN_INFO_OFFSET
:
311 switch (chan
->type
) {
313 *val
= INV_MPU6050_TEMP_OFFSET
;
324 static int inv_mpu6050_write_fsr(struct inv_mpu6050_state
*st
, int fsr
)
329 if (fsr
< 0 || fsr
> INV_MPU6050_MAX_GYRO_FS_PARAM
)
331 if (fsr
== st
->chip_config
.fsr
)
334 d
= (fsr
<< INV_MPU6050_GYRO_CONFIG_FSR_SHIFT
);
335 result
= inv_mpu6050_write_reg(st
, st
->reg
->gyro_config
, d
);
338 st
->chip_config
.fsr
= fsr
;
343 static int inv_mpu6050_write_accel_fs(struct inv_mpu6050_state
*st
, int fs
)
348 if (fs
< 0 || fs
> INV_MPU6050_MAX_ACCL_FS_PARAM
)
350 if (fs
== st
->chip_config
.accl_fs
)
353 d
= (fs
<< INV_MPU6050_ACCL_CONFIG_FSR_SHIFT
);
354 result
= inv_mpu6050_write_reg(st
, st
->reg
->accl_config
, d
);
357 st
->chip_config
.accl_fs
= fs
;
362 static int inv_mpu6050_write_raw(struct iio_dev
*indio_dev
,
363 struct iio_chan_spec
const *chan
,
367 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
370 mutex_lock(&indio_dev
->mlock
);
371 /* we should only update scale when the chip is disabled, i.e.,
373 if (st
->chip_config
.enable
) {
375 goto error_write_raw
;
377 result
= inv_mpu6050_set_power_itg(st
, true);
379 goto error_write_raw
;
382 case IIO_CHAN_INFO_SCALE
:
383 switch (chan
->type
) {
385 result
= inv_mpu6050_write_fsr(st
, val
);
388 result
= inv_mpu6050_write_accel_fs(st
, val
);
401 result
|= inv_mpu6050_set_power_itg(st
, false);
402 mutex_unlock(&indio_dev
->mlock
);
408 * inv_mpu6050_set_lpf() - set low pass filer based on fifo rate.
410 * Based on the Nyquist principle, the sampling rate must
411 * exceed twice of the bandwidth of the signal, or there
412 * would be alising. This function basically search for the
413 * correct low pass parameters based on the fifo rate, e.g,
414 * sampling frequency.
416 static int inv_mpu6050_set_lpf(struct inv_mpu6050_state
*st
, int rate
)
418 const int hz
[] = {188, 98, 42, 20, 10, 5};
419 const int d
[] = {INV_MPU6050_FILTER_188HZ
, INV_MPU6050_FILTER_98HZ
,
420 INV_MPU6050_FILTER_42HZ
, INV_MPU6050_FILTER_20HZ
,
421 INV_MPU6050_FILTER_10HZ
, INV_MPU6050_FILTER_5HZ
};
427 while ((h
< hz
[i
]) && (i
< ARRAY_SIZE(d
) - 1))
430 result
= inv_mpu6050_write_reg(st
, st
->reg
->lpf
, data
);
433 st
->chip_config
.lpf
= data
;
439 * inv_mpu6050_fifo_rate_store() - Set fifo rate.
441 static ssize_t
inv_mpu6050_fifo_rate_store(struct device
*dev
,
442 struct device_attribute
*attr
, const char *buf
, size_t count
)
447 struct iio_dev
*indio_dev
= dev_to_iio_dev(dev
);
448 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
450 if (kstrtoint(buf
, 10, &fifo_rate
))
452 if (fifo_rate
< INV_MPU6050_MIN_FIFO_RATE
||
453 fifo_rate
> INV_MPU6050_MAX_FIFO_RATE
)
455 if (fifo_rate
== st
->chip_config
.fifo_rate
)
458 mutex_lock(&indio_dev
->mlock
);
459 if (st
->chip_config
.enable
) {
463 result
= inv_mpu6050_set_power_itg(st
, true);
467 d
= INV_MPU6050_ONE_K_HZ
/ fifo_rate
- 1;
468 result
= inv_mpu6050_write_reg(st
, st
->reg
->sample_rate_div
, d
);
471 st
->chip_config
.fifo_rate
= fifo_rate
;
473 result
= inv_mpu6050_set_lpf(st
, fifo_rate
);
478 result
|= inv_mpu6050_set_power_itg(st
, false);
479 mutex_unlock(&indio_dev
->mlock
);
487 * inv_fifo_rate_show() - Get the current sampling rate.
489 static ssize_t
inv_fifo_rate_show(struct device
*dev
,
490 struct device_attribute
*attr
, char *buf
)
492 struct inv_mpu6050_state
*st
= iio_priv(dev_to_iio_dev(dev
));
494 return sprintf(buf
, "%d\n", st
->chip_config
.fifo_rate
);
498 * inv_attr_show() - calling this function will show current
501 static ssize_t
inv_attr_show(struct device
*dev
,
502 struct device_attribute
*attr
, char *buf
)
504 struct inv_mpu6050_state
*st
= iio_priv(dev_to_iio_dev(dev
));
505 struct iio_dev_attr
*this_attr
= to_iio_dev_attr(attr
);
508 switch (this_attr
->address
) {
509 /* In MPU6050, the two matrix are the same because gyro and accel
510 are integrated in one chip */
511 case ATTR_GYRO_MATRIX
:
512 case ATTR_ACCL_MATRIX
:
513 m
= st
->plat_data
.orientation
;
515 return sprintf(buf
, "%d, %d, %d; %d, %d, %d; %d, %d, %d\n",
516 m
[0], m
[1], m
[2], m
[3], m
[4], m
[5], m
[6], m
[7], m
[8]);
523 * inv_mpu6050_validate_trigger() - validate_trigger callback for invensense
525 * @indio_dev: The IIO device
526 * @trig: The new trigger
528 * Returns: 0 if the 'trig' matches the trigger registered by the MPU6050
529 * device, -EINVAL otherwise.
531 static int inv_mpu6050_validate_trigger(struct iio_dev
*indio_dev
,
532 struct iio_trigger
*trig
)
534 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
536 if (st
->trig
!= trig
)
542 #define INV_MPU6050_CHAN(_type, _channel2, _index) \
546 .channel2 = _channel2, \
547 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
548 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
549 .scan_index = _index, \
555 .endianness = IIO_BE, \
559 static const struct iio_chan_spec inv_mpu_channels
[] = {
560 IIO_CHAN_SOFT_TIMESTAMP(INV_MPU6050_SCAN_TIMESTAMP
),
562 * Note that temperature should only be via polled reading only,
563 * not the final scan elements output.
567 .info_mask_separate
= BIT(IIO_CHAN_INFO_RAW
)
568 | BIT(IIO_CHAN_INFO_OFFSET
)
569 | BIT(IIO_CHAN_INFO_SCALE
),
572 INV_MPU6050_CHAN(IIO_ANGL_VEL
, IIO_MOD_X
, INV_MPU6050_SCAN_GYRO_X
),
573 INV_MPU6050_CHAN(IIO_ANGL_VEL
, IIO_MOD_Y
, INV_MPU6050_SCAN_GYRO_Y
),
574 INV_MPU6050_CHAN(IIO_ANGL_VEL
, IIO_MOD_Z
, INV_MPU6050_SCAN_GYRO_Z
),
576 INV_MPU6050_CHAN(IIO_ACCEL
, IIO_MOD_X
, INV_MPU6050_SCAN_ACCL_X
),
577 INV_MPU6050_CHAN(IIO_ACCEL
, IIO_MOD_Y
, INV_MPU6050_SCAN_ACCL_Y
),
578 INV_MPU6050_CHAN(IIO_ACCEL
, IIO_MOD_Z
, INV_MPU6050_SCAN_ACCL_Z
),
581 /* constant IIO attribute */
582 static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("10 20 50 100 200 500");
583 static IIO_DEV_ATTR_SAMP_FREQ(S_IRUGO
| S_IWUSR
, inv_fifo_rate_show
,
584 inv_mpu6050_fifo_rate_store
);
585 static IIO_DEVICE_ATTR(in_gyro_matrix
, S_IRUGO
, inv_attr_show
, NULL
,
587 static IIO_DEVICE_ATTR(in_accel_matrix
, S_IRUGO
, inv_attr_show
, NULL
,
590 static struct attribute
*inv_attributes
[] = {
591 &iio_dev_attr_in_gyro_matrix
.dev_attr
.attr
,
592 &iio_dev_attr_in_accel_matrix
.dev_attr
.attr
,
593 &iio_dev_attr_sampling_frequency
.dev_attr
.attr
,
594 &iio_const_attr_sampling_frequency_available
.dev_attr
.attr
,
598 static const struct attribute_group inv_attribute_group
= {
599 .attrs
= inv_attributes
602 static const struct iio_info mpu_info
= {
603 .driver_module
= THIS_MODULE
,
604 .read_raw
= &inv_mpu6050_read_raw
,
605 .write_raw
= &inv_mpu6050_write_raw
,
606 .attrs
= &inv_attribute_group
,
607 .validate_trigger
= inv_mpu6050_validate_trigger
,
611 * inv_check_and_setup_chip() - check and setup chip.
613 static int inv_check_and_setup_chip(struct inv_mpu6050_state
*st
,
614 const struct i2c_device_id
*id
)
618 st
->chip_type
= INV_MPU6050
;
619 st
->hw
= &hw_info
[st
->chip_type
];
620 st
->reg
= hw_info
[st
->chip_type
].reg
;
622 /* reset to make sure previous state are not there */
623 result
= inv_mpu6050_write_reg(st
, st
->reg
->pwr_mgmt_1
,
624 INV_MPU6050_BIT_H_RESET
);
627 msleep(INV_MPU6050_POWER_UP_TIME
);
628 /* toggle power state. After reset, the sleep bit could be on
629 or off depending on the OTP settings. Toggling power would
630 make it in a definite state as well as making the hardware
631 state align with the software state */
632 result
= inv_mpu6050_set_power_itg(st
, false);
635 result
= inv_mpu6050_set_power_itg(st
, true);
639 result
= inv_mpu6050_switch_engine(st
, false,
640 INV_MPU6050_BIT_PWR_ACCL_STBY
);
643 result
= inv_mpu6050_switch_engine(st
, false,
644 INV_MPU6050_BIT_PWR_GYRO_STBY
);
652 * inv_mpu_probe() - probe function.
653 * @client: i2c client.
654 * @id: i2c device id.
656 * Returns 0 on success, a negative error code otherwise.
658 static int inv_mpu_probe(struct i2c_client
*client
,
659 const struct i2c_device_id
*id
)
661 struct inv_mpu6050_state
*st
;
662 struct iio_dev
*indio_dev
;
665 if (!i2c_check_functionality(client
->adapter
,
666 I2C_FUNC_SMBUS_READ_I2C_BLOCK
|
667 I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
)) {
671 indio_dev
= iio_device_alloc(sizeof(*st
));
672 if (indio_dev
== NULL
) {
676 st
= iio_priv(indio_dev
);
678 st
->plat_data
= *(struct inv_mpu6050_platform_data
679 *)dev_get_platdata(&client
->dev
);
680 /* power is turned on inside check chip type*/
681 result
= inv_check_and_setup_chip(st
, id
);
685 result
= inv_mpu6050_init_config(indio_dev
);
687 dev_err(&client
->dev
,
688 "Could not initialize device.\n");
692 i2c_set_clientdata(client
, indio_dev
);
693 indio_dev
->dev
.parent
= &client
->dev
;
694 indio_dev
->name
= id
->name
;
695 indio_dev
->channels
= inv_mpu_channels
;
696 indio_dev
->num_channels
= ARRAY_SIZE(inv_mpu_channels
);
698 indio_dev
->info
= &mpu_info
;
699 indio_dev
->modes
= INDIO_BUFFER_TRIGGERED
;
701 result
= iio_triggered_buffer_setup(indio_dev
,
702 inv_mpu6050_irq_handler
,
703 inv_mpu6050_read_fifo
,
706 dev_err(&st
->client
->dev
, "configure buffer fail %d\n",
710 result
= inv_mpu6050_probe_trigger(indio_dev
);
712 dev_err(&st
->client
->dev
, "trigger probe fail %d\n", result
);
716 INIT_KFIFO(st
->timestamps
);
717 spin_lock_init(&st
->time_stamp_lock
);
718 result
= iio_device_register(indio_dev
);
720 dev_err(&st
->client
->dev
, "IIO register fail %d\n", result
);
721 goto out_remove_trigger
;
727 inv_mpu6050_remove_trigger(st
);
729 iio_triggered_buffer_cleanup(indio_dev
);
731 iio_device_free(indio_dev
);
737 static int inv_mpu_remove(struct i2c_client
*client
)
739 struct iio_dev
*indio_dev
= i2c_get_clientdata(client
);
740 struct inv_mpu6050_state
*st
= iio_priv(indio_dev
);
742 iio_device_unregister(indio_dev
);
743 inv_mpu6050_remove_trigger(st
);
744 iio_triggered_buffer_cleanup(indio_dev
);
745 iio_device_free(indio_dev
);
749 #ifdef CONFIG_PM_SLEEP
751 static int inv_mpu_resume(struct device
*dev
)
753 return inv_mpu6050_set_power_itg(
754 iio_priv(i2c_get_clientdata(to_i2c_client(dev
))), true);
757 static int inv_mpu_suspend(struct device
*dev
)
759 return inv_mpu6050_set_power_itg(
760 iio_priv(i2c_get_clientdata(to_i2c_client(dev
))), false);
762 static SIMPLE_DEV_PM_OPS(inv_mpu_pmops
, inv_mpu_suspend
, inv_mpu_resume
);
764 #define INV_MPU6050_PMOPS (&inv_mpu_pmops)
766 #define INV_MPU6050_PMOPS NULL
767 #endif /* CONFIG_PM_SLEEP */
770 * device id table is used to identify what device can be
771 * supported by this driver
773 static const struct i2c_device_id inv_mpu_id
[] = {
774 {"mpu6050", INV_MPU6050
},
778 MODULE_DEVICE_TABLE(i2c
, inv_mpu_id
);
780 static struct i2c_driver inv_mpu_driver
= {
781 .probe
= inv_mpu_probe
,
782 .remove
= inv_mpu_remove
,
783 .id_table
= inv_mpu_id
,
785 .owner
= THIS_MODULE
,
786 .name
= "inv-mpu6050",
787 .pm
= INV_MPU6050_PMOPS
,
791 module_i2c_driver(inv_mpu_driver
);
793 MODULE_AUTHOR("Invensense Corporation");
794 MODULE_DESCRIPTION("Invensense device MPU6050 driver");
795 MODULE_LICENSE("GPL");