Ejemplo n.º 1
0
void vibr_Disable_HW(void)
{
	// dct_pmic_VIBR_enable(0);
	hwPowerDown(MT6323_POWER_LDO_VIBR, "VIBR");
	printk("vibrator disable register = 0x%x\n", vibr_pmic_pwrap_read(0x0542));
	printk("[vibrator]vibr_Disable After\n");
}
Ejemplo n.º 2
0
void vibr_Enable_HW(void)
{
	
	// dct_pmic_VIBR_enable(1);
	hwPowerOn(MT6323_POWER_LDO_VIBR, vibr_voltage, "VIBR");
	printk("vibrator enable register = 0x%x\n", vibr_pmic_pwrap_read(0x0542));
	printk("[vibrator]vibr_Enable After\n");

}
Ejemplo n.º 3
0
static int vibr_Disable(void)
{
	if(ldo_state) {
		printk("[vibrator]vibr_Disable before\n");
		/*
		if(hwPowerDown(MT65XX_POWER_LDO_VIBR, "VIBR")) {
			ldo_state=0;
		}
		*/
		dct_pmic_VIBR_enable(0);
		printk("vibrator disable register = 0x%x\n", vibr_pmic_pwrap_read(0x0466));
		printk("[vibrator]vibr_Disable After\n");
		ldo_state=0;
	}
   	return 0;
}
Ejemplo n.º 4
0
static int vibr_Enable(void)
{
	if(!ldo_state) {
		printk("[vibrator]vibr_Enable before\n");
		/*
		if(hwPowerOn(MT65XX_POWER_LDO_VIBR, VOL_2800, "VIBR")) {
			ldo_state=1;
		}
		*/
		dct_pmic_VIBR_enable(1);
		printk("vibrator enable register = 0x%x\n", vibr_pmic_pwrap_read(0x0466));
		printk("[vibrator]vibr_Enable After\n");
		ldo_state=1;
	}
	return 0;
}