static void __init v3_init_i2c_sensor(int bus_num)
{
	sensor_i2c_device.id = bus_num;
	lge_init_gpio_i2c_pin(&sensor_i2c_pdata, accel_i2c_pin[0], &sensor_i2c_bdinfo[0]);
	lge_init_gpio_i2c_pin(&sensor_i2c_pdata, ecom_i2c_pin[0], &sensor_i2c_bdinfo[1]);
	i2c_register_board_info(bus_num, sensor_i2c_bdinfo, ARRAY_SIZE(sensor_i2c_bdinfo));
	platform_device_register(&sensor_i2c_device);
}
static void __init v3_init_i2c_prox(int bus_num)
{
	proxi_i2c_device.id = bus_num;
	lge_init_gpio_i2c_pin(&proxi_i2c_pdata, proxi_i2c_pin[0], &prox_i2c_bdinfo[0]);
	i2c_register_board_info(bus_num, &prox_i2c_bdinfo[0], 1);
	platform_device_register(&proxi_i2c_device);
}
示例#3
0
void __init msm7x27a_m3mpcs_init_i2c_backlight(int bus_num)
{
	bl_i2c_device.id = bus_num;

	lge_init_gpio_i2c_pin(&bl_i2c_pdata, bl_i2c_pin, &bl_i2c_bdinfo[0]);
	i2c_register_board_info(bus_num, bl_i2c_bdinfo, ARRAY_SIZE(bl_i2c_bdinfo));
	platform_device_register(&bl_i2c_device);
}
示例#4
0
static void __init e0eu_init_i2c_touch(int bus_num)
{
	ts_i2c_device.id = bus_num;
	/* workaround for HDK rev_a no pullup */
	lge_init_gpio_i2c_pin(&ts_i2c_pdata, ts_i2c_pin, &ts_i2c_bdinfo[0]);
	i2c_register_board_info(bus_num, &ts_i2c_bdinfo[0], 1);
	platform_device_register(&ts_i2c_device);
}
示例#5
0
void __init msm7x27a_u0_init_i2c_subpm(int bus_num)
{
	subpm_i2c_device.id = bus_num;

	lge_init_gpio_i2c_pin(&subpm_i2c_pdata, subpm_i2c_pin,
		&subpm_i2c_bdinfo[0]);
	i2c_register_board_info(bus_num, &subpm_i2c_bdinfo[0], 1);
	platform_device_register(&subpm_i2c_device);
}
static void __init m3eu_init_i2c_ecom(int bus_num)
{
	ecom_i2c_device.id = bus_num;

	lge_init_gpio_i2c_pin(&ecom_i2c_pdata, ecom_i2c_pin[0], &ecom_i2c_bdinfo[0]);

	i2c_register_board_info(bus_num, &ecom_i2c_bdinfo[0], 1);
	platform_device_register(&ecom_i2c_device);
}
static void __init lge_init_i2c_camera(int bus_num)
{
	flash_i2c_device.id = bus_num;

	lge_init_gpio_i2c_pin(&flash_i2c_pdata, flash_i2c_pin[0],
		&i2c_camera_flash_devices[0]);
	i2c_register_board_info(bus_num, i2c_camera_flash_devices,
		ARRAY_SIZE(i2c_camera_flash_devices));
	platform_device_register(&flash_i2c_device);
}
示例#8
0
static void __init m3_init_i2c_acceleration(int bus_num)
{
	accel_i2c_device.id = bus_num;

	lge_init_gpio_i2c_pin(
		&accel_i2c_pdata, accel_i2c_pin[0], &accel_i2c_bdinfo[0]);

	i2c_register_board_info(
		bus_num, &accel_i2c_bdinfo[0], 1);

	platform_device_register(&accel_i2c_device);
}
示例#9
0
void __init msm7x27a_m3_init_i2c_subpm(int bus_num)
{
	subpm_i2c_device.id = bus_num;

	// START : [email protected] 2011-09-14 m3dviv for EVB
// START: [email protected] 2011-09-23 [M3D] Rev A PMIC GPIO changed
	if (lge_bd_rev == EVB) { //[M3D] For EVB PMIC GPIO changed , M3DVIV, M3DOPEN
		struct rt8053_platform_data *pdata =
			subpm_i2c_bdinfo[0].platform_data;
		if (pdata)
			pdata->enable_gpio = 58;
	}
// END: [email protected] 2011-09-23 [M3D] Rev A PMIC GPIO changed
	//END : [email protected] 2011-09-14

	lge_init_gpio_i2c_pin(&subpm_i2c_pdata, subpm_i2c_pin, &subpm_i2c_bdinfo[0]);
	i2c_register_board_info(bus_num, &subpm_i2c_bdinfo[0], 1);
	platform_device_register(&subpm_i2c_device);
}