本文主要是介绍手机震动驱动-android,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Android振动器(Vibrator)系统详解
diff --git a/kernel-3.18/arch/arm/boot/dts/ch007_26.dts b/kernel-3.18/arch/arm/boot/dts/ch007_26.dts
index bce6b91..6724c40 100644
--- a/kernel-3.18/arch/arm/boot/dts/ch007_26.dts
+++ b/kernel-3.18/arch/arm/boot/dts/ch007_26.dts
@@ -74,6 +74,12 @@pwm_config = <0 0 0 0 0>;led_enable_gpio = <&pio 68 0>;};
+ vibrator0:vibrator@0 {
+ compatible = "mediatek,vibrator";
+ vib_timer = <25>;
+ vib_limit = <9>;
+ vib_vol= <6>;
+ };};
index d5b67bf..c8c5e15 100644
--- a/kernel-3.18/arch/arm/configs/ch007_26_defconfig
+++ b/kernel-3.18/arch/arm/configs/ch007_26_defconfig+CONFIG_MTK_VIBRATOR=y
这篇关于手机震动驱动-android的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!