void vibrate_once(int ms)
{
    printk("vibrate_once(%d)\n", ms);
    upmu_set_rg_vibr_vosel(0x5);
    upmu_set_rg_vibr_en(0x1);
    udelay(ms*1000);
    upmu_set_rg_vibr_vosel(0x4);
    upmu_set_rg_vibr_en(0x0);
}
Beispiel #2
0
void vibr_power_set(void)
{
#ifdef CUST_VIBR_VOL
	struct vibrator_hw* hw = get_cust_vibrator_hw();	
	printk("[vibrator]vibr_init: vibrator set voltage = %d\n", hw->vib_vol);
	upmu_set_rg_vibr_vosel(hw->vib_vol);
#endif
}