コード例 #1
0
static int aat2862_resume(struct i2c_client *client)
{
	aat2862_init(client);
	//printk(KERN_INFO"%s: old state: %d\n",__func__, client->dev.power.power_state.event);
	client->dev.power.power_state = PMSG_ON;
	// 20100525 [email protected] Patch for touch/panel resumption failure [START_LGE]
	aat2862_write_reg(client, 0x00, 0x4C);
	aat2862_write_reg(client, 0x01, 0x49);
	// 20100525 [email protected] Patch for touch/panel resumption failure [END_LGE]
	aat2862_write_reg(client, 0x02, 0x03);
	mdelay(10);

	// 20101016 [email protected] Turn off unnecessary modules upon BL off [START_LGE]
#if 0	// Following reduces around 20uA.
	gpio_direction_output(MY_HDMI_REG_EN, 1);
	gpio_set_value(MY_HDMI_REG_EN, 1);
	gpio_direction_output(MY_CAM_SUBPM_EN, 1);
	gpio_set_value(MY_CAM_SUBPM_EN, 1);
	gpio_direction_output(MY_CAM_VCM_EN, 1);
	gpio_set_value(MY_CAM_VCM_EN, 1);
	gpio_direction_output(MY_DMB_EN, 1);
	gpio_set_value(MY_DMB_EN, 1);
	gpio_direction_input(MY_MOTION_INT);
	gpio_direction_input(MY_COM_INT);
#endif
#if 0	// Followings reduces around 60uA.
	omap_writew(i2c3_scl, 0x480021C2);	// sookyoung.kim	
	omap_writew(i2c3_sda, 0x480021C4);	// sookyoung.kim	
#endif
#if 0	// Followings, coupled with memory refresh rate control, reduces around 600uA.
	omap_writew(i2c4_scl, 0x48002A00);	// sookyoung.kim	
	omap_writew(i2c4_sda, 0x48002A02);	// sookyoung.kim	
#endif
	// 20101016 [email protected] Turn off unnecessary modules upon BL off [END_LGE]

	// 20100630 [email protected] Hub touchscreen power sequence [START_LGE]
	aat2862_touch_ldo_enable(client, 1);
	// 20100630 [email protected] Hub touchscreen power sequence [END_LGE]	

	//aat2862_backlight_on();

	return 0;
}
コード例 #2
0
ファイル: hub_aat2862.c プロジェクト: kapoloclubs/diana
static int aat2862_resume(struct i2c_client *client)
{
	aat2862_init(client);
	printk(KERN_INFO"%s: old state: %d\n",__func__, client->dev.power.power_state.event);
	client->dev.power.power_state = PMSG_ON;
	// 20100525 [email protected] Patch for touch/panel resumption failure [START_LGE]
	aat2862_write_reg(client, LDO_AB_LEVEL_REG, 0x4C);
	aat2862_write_reg(client, LDO_CD_LEVEL_REG, 0x4C);
	// 20100525 [email protected] Patch for touch/panel resumption failure [END_LGE]
	
// 20100717 [email protected] power sequence for touch [START_LGE]
	aat2862_write_reg(client, LDO_ABCD_EN_REG, 0x03);
	mdelay(5);
	aat2862_touch_ldo_enable(client, 1);
// 20100717 [email protected] power sequence for touch [END_LGE]	
//	aat2862_write_reg(client, LDO_ABCD_EN_REG, 0x0F);
//	mdelay(10);
	//aat2862_backlight_on();

	return 0;
}