Beispiel #1
0
static int vibr_Enable(void)
{
	if(!ldo_state) {
		printk("[vibrator]vibr_Enable \n");
		/*
		if(hwPowerOn(MT65XX_POWER_LDO_VIBR, VOL_2800, "VIBR")) {
			ldo_state=1;
		}
		*/
		dct_pmic_VIBR_enable(1);
		ldo_state=1;
	}
	return 0;
}
Beispiel #2
0
static int vibr_Disable(void)
{
	if(ldo_state) {
		printk("[vibrator]vibr_Disable \n");
		/*
		if(hwPowerDown(MT65XX_POWER_LDO_VIBR, "VIBR")) {
			ldo_state=0;
		}
		*/
		dct_pmic_VIBR_enable(0);
		ldo_state=0;
	}
   	return 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;
}
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;
}
static int vibr_Enable(void)
{
	if(!ldo_state) {
		printk("[vibrator]vibr_Enable \n");
		/*
		if(hwPowerOn(MT65XX_POWER_LDO_VIBR, VOL_2800, "VIBR")) {
			ldo_state=1;
		}
		*/
        #if 0//defined(ACER_Z1) || defined(ACER_Z2)//LK@add
		dct_pmic_VIBR_sel(VOL_3300);
        #endif
		dct_pmic_VIBR_enable(1);
		ldo_state=1;
	}
	return 0;
}
Beispiel #6
0
void vibr_Disable_HW(void)
{
	dct_pmic_VIBR_enable(0);
}
Beispiel #7
0
void vibr_Enable_HW(void)
{
	
	dct_pmic_VIBR_enable(1);

}