コード例 #1
0
static void __init tegra_tegranote7c_dt_init(void)
{
	tegra_tegranote7c_early_init();

#ifdef CONFIG_USE_OF
#if defined(CONFIG_NVMAP_CONVERT_CARVEOUT_TO_IOVMM)
	tegranote7c_dc0_platform_data.of_data.fb_size = SZ_16M + SZ_2M;
	tegranote7c_dc1_platform_data.of_data.fb_size = SZ_16M;
#else
	tegranote7c_dc0_platform_data.of_data.fb_size = SZ_16M + SZ_2M;
	tegranote7c_dc1_platform_data.of_data.fb_size = SZ_4M;
#endif
	tegranote7c_dc0_platform_data.of_data.fb_start = tegra_fb_start;
	tegranote7c_dc1_platform_data.of_data.fb_start = tegra_fb2_start;

	tegranote7c_pwm_bl_data.is_charged =
		(get_androidboot_mode_charger()) ?
		true : false;

	if (get_androidboot_mode_charger())
		of_platform_populate(NULL, of_default_bus_match_table,
			tegranote7c_auxdata_lookup_charger, &platform_bus);
	else
		of_platform_populate(NULL, of_default_bus_match_table,
			tegranote7c_auxdata_lookup, &platform_bus);
#endif

	tegra_tegranote7c_late_init();
}
コード例 #2
0
static int  __init dsi_lgd_wxga_7_0_register_bl_dev(void)
{
	int err = 0;

#ifdef CONFIG_ANDROID
	if (get_androidboot_mode_charger())
		dsi_lgd_wxga_7_0_bl_data.dft_brightness = 60;
#endif
	err = platform_add_devices(dsi_lgd_wxga_7_0_bl_devices,
				ARRAY_SIZE(dsi_lgd_wxga_7_0_bl_devices));
	if (err) {
		pr_err("disp1 bl device registration failed");
		return err;
	}
	return err;
}
コード例 #3
0
static int __init tegranote7c_touch_init(void)
{
	if (get_androidboot_mode_charger())
		return 0;

#if defined(CONFIG_TOUCHSCREEN_MAXIM_STI) || \
	defined(CONFIG_TOUCHSCREEN_MAXIM_STI_MODULE)
	(void)touch_init_maxim_sti(&maxim_sti_spi_board);
#else
	tegra_clk_init_from_table(touch_clk_init_table);
	rm31080ts_tegranote7c_data.platform_id = RM_PLATFORM_D010;
	mdelay(20);
	rm31080a_tegranote7c_spi_board[0].irq =
		gpio_to_irq(TOUCH_GPIO_IRQ_RAYDIUM_SPI);
	touch_init_raydium(TOUCH_GPIO_IRQ_RAYDIUM_SPI,
				TOUCH_GPIO_RST_RAYDIUM_SPI,
				&rm31080ts_tegranote7c_data,
				&rm31080a_tegranote7c_spi_board[0],
				ARRAY_SIZE(rm31080a_tegranote7c_spi_board));
#endif
	return 0;
}