Example #1
0
static void __init tegra_asymptote_init(void)
{
	struct clk *c, *p;

	seaboard_audio_pdata.gpio_hp_invert = 0;
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_B();

	seaboard_kbc_platform_data.keymap_data = &cros_keymap_data;

	asymptote_common_init();
	/* asymptote has same memory config as seaboard (for now) */
	seaboard_emc_init();

	/* Temporary hack to keep eMMC controller at 24MHz */
	c = tegra_get_clock_by_name("sdmmc4");
	p = tegra_get_clock_by_name("pll_p");
	if (c && p) {
		clk_set_parent(c, p);
		clk_set_rate(c, 24000000);
		clk_enable(c);
	}

	asymptote_i2c_register_devices();

	/* The tsl2563 ALS on Asymptote doesn't play nice with a 400kHz bus */
	seaboard_i2c1_platform_data.bus_clk_rate[0] = 100000;
	seaboard_i2c_init();
}
Example #2
0
static void __init tegra_wario_init(void)
{
	struct clk *c, *p;

	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_B();

	seaboard_kbc_platform_data.keymap_data = &cros_keymap_data;

	seaboard_common_init();

	/* wario has same memory config as seaboard */
	seaboard_emc_init();

	/* Temporary hack to keep eMMC controller at 24MHz */
	c = tegra_get_clock_by_name("sdmmc4");
	p = tegra_get_clock_by_name("pll_p");
	if (c && p) {
		clk_set_parent(c, p);
		clk_set_rate(c, 24000000);
		clk_enable(c);
	}

	wario_i2c_register_devices();
	seaboard_i2c_init();
}
Example #3
0
static void __init tegra_aebl_init(void)
{
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_B();

	/* Enable RF for 3G modem */
	tegra_gpio_enable(TEGRA_GPIO_W_DISABLE);
	gpio_request(TEGRA_GPIO_W_DISABLE, "w_disable");
	gpio_direction_output(TEGRA_GPIO_W_DISABLE, 1);

	tegra_gpio_enable(TEGRA_GPIO_BATT_DETECT);
	bq20z75_pdata.battery_detect = TEGRA_GPIO_BATT_DETECT;
	/* battery present is low */
	bq20z75_pdata.battery_detect_present = 0;

	seaboard_kbc_platform_data.keymap_data = &cros_keymap_data;

	/* setting skew makes WIFI stable when sdmmc1 runs 48MHz. */
	tegra_set_clock_readskew("sdmmc1", 8);

	aebl_common_init();
	aebl_emc_init();

	aebl_i2c_register_devices();
	seaboard_i2c_init();

	aebl_sensors_init();
	legacy_arm_pm_restart = arm_pm_restart;
	arm_pm_restart = gpio_machine_restart;
}
Example #4
0
static void __init tegra_wario_init(void)
{
	/* Wario uses UARTB for the debug port. */
	debug_uart_platform_data[0].membase = IO_ADDRESS(TEGRA_UARTB_BASE);
	debug_uart_platform_data[0].mapbase = TEGRA_UARTB_BASE;
	debug_uart_platform_data[0].irq = INT_UARTB;

	seaboard_common_init();

	seaboard_i2c_init();
}
Example #5
0
static void __init tegra_seaboard_init(void)
{
	/* Seaboard uses UARTD for the debug port. */
	debug_uart_platform_data[0].membase = IO_ADDRESS(TEGRA_UARTD_BASE);
	debug_uart_platform_data[0].mapbase = TEGRA_UARTD_BASE;
	debug_uart_platform_data[0].irq = INT_UARTD;
	tegra_soc_device_init("seaboard");
	seaboard_common_init();

	seaboard_i2c_init();
}
Example #6
0
static void __init tegra_seaboard_init(void)
{
	
	debug_uart_platform_data[0].membase = IO_ADDRESS(TEGRA_UARTD_BASE);
	debug_uart_platform_data[0].mapbase = TEGRA_UARTD_BASE;
	debug_uart_platform_data[0].irq = INT_UARTD;

	seaboard_common_init();

	seaboard_i2c_init();
}
Example #7
0
static void __init tegra_arthur_init(void)
{
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_B();

	seaboard_kbc_platform_data.keymap_data = &cros_keymap_data;

	seaboard_common_init();

	arthur_i2c_register_devices();
	seaboard_i2c_init();
}
Example #8
0
static void __init tegra_kaen_init(void)
{
	/* Kaen uses UARTB for the debug port. */
	debug_uart_platform_data[0].membase = IO_ADDRESS(TEGRA_UARTB_BASE);
	debug_uart_platform_data[0].mapbase = TEGRA_UARTB_BASE;
	debug_uart_platform_data[0].irq = INT_UARTB;

	seaboard_audio_pdata.gpio_hp_mute = TEGRA_GPIO_KAEN_HP_MUTE;
	tegra_soc_device_init("kaen");
	seaboard_common_init();

	seaboard_i2c_init();
}
Example #9
0
static void __init tegra_kaen_init(void)
{
	
	debug_uart_platform_data[0].membase = IO_ADDRESS(TEGRA_UARTB_BASE);
	debug_uart_platform_data[0].mapbase = TEGRA_UARTB_BASE;
	debug_uart_platform_data[0].irq = INT_UARTB;

	seaboard_audio_pdata.gpio_hp_mute = TEGRA_GPIO_KAEN_HP_MUTE;
	tegra_gpio_enable(TEGRA_GPIO_KAEN_HP_MUTE);

	seaboard_common_init();

	seaboard_i2c_init();
}
Example #10
0
static void __init tegra_seaboard_init(void)
{
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_D();

	seaboard_common_init();

	seaboard_emc_init();

	seaboard_i2c_register_devices();
	seaboard_i2c_init();

	seaboard_sensors_init();
}
Example #11
0
void __init tegra_ventana_init(void)
{
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_D();

	seaboard_gpio_keys_device.dev.platform_data = &ventana_keys_data;

	ventana_common_init();
	seaboard_panel_init();
	ventana_emc_init();

	seaboard_i2c_register_devices();
	seaboard_i2c_init();
}
Example #12
0
static void __init tegra_kaen_init(void)
{
	tegra_init_suspend(&seaboard_suspend);

	__init_debug_uart_B();

	/* Enable RF for 3G modem */
	tegra_gpio_enable(TEGRA_GPIO_W_DISABLE);
	gpio_request(TEGRA_GPIO_W_DISABLE, "w_disable");
	gpio_direction_output(TEGRA_GPIO_W_DISABLE, 1);

	seaboard_audio_pdata.gpio_hp_mute = TEGRA_GPIO_KAEN_HP_MUTE;
	tegra_gpio_enable(TEGRA_GPIO_KAEN_HP_MUTE);

	tegra_gpio_enable(TEGRA_GPIO_BATT_DETECT);
	bq20z75_pdata.battery_detect = TEGRA_GPIO_BATT_DETECT;
	/* battery present is low */
	bq20z75_pdata.battery_detect_present = 0;

	seaboard_kbc_platform_data.keymap_data = &cros_keymap_data;

	/* setting skew makes WIFI stable when sdmmc1 runs 48MHz. */
	tegra_set_clock_readskew("sdmmc1", 8);

	/* change xcvr_setup to 13 to adjust USB driving to pass eye
	 * diagram test.
	 * xcvr_effect is only for USB1 to set FUSE_SETUP_SEL to zero
	 */
	usb1_phy_config.xcvr_effect = 1;
	usb1_phy_config.xcvr_setup = 13;
	usb3_phy_config.xcvr_setup = 13;

	kaen_common_init();
	kaen_emc_init();

	kaen_i2c_register_devices();
	seaboard_i2c_init();

	kaen_sensors_init();
	legacy_arm_pm_restart = arm_pm_restart;
	arm_pm_restart = gpio_machine_restart;
}