Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

panel freq fix.

  • Loading branch information...
commit 37dc0179312fed26e90f305175a653807a79ef00 1 parent 88aa666
@muromec authored
View
8 arch/arm/mach-tegra/board-picasso.c
@@ -678,7 +678,13 @@ static void __init tegra_picasso_init(void)
picasso_sensors_init();
picasso_regulator_init();
picasso_usb_init();
- picasso_panel_init();
+
+ if(machine_is_picasso())
+ picasso_panel_init();
+
+ if(machine_is_tf101())
+ tf101_panel_init();
+
picasso_touch_init();
picasso_sound_init();
}
View
1  arch/arm/mach-tegra/board-picasso.h
@@ -23,6 +23,7 @@
int picasso_regulator_init(void);
void picasso_pinmux_init(void);
int picasso_panel_init(void);
+int tf101_panel_init(void);
int picasso_kbc_init(void);
int picasso_emc_init(void);
View
36 arch/arm/mach-tegra/board-seaboard-panel.c
@@ -280,6 +280,22 @@ static struct tegra_dc_mode picasso_panel_modes[] = {
},
};
+static struct tegra_dc_mode tf101_panel_modes[] = {
+ {
+ .pclk = 83900000,
+ .h_ref_to_sync = 11,
+ .v_ref_to_sync = 1,
+ .h_sync_width = 58,
+ .v_sync_width = 4,
+ .h_back_porch = 58,
+ .v_back_porch = 4,
+ .h_active = 1280,
+ .v_active = 800,
+ .h_front_porch = 58,
+ .v_front_porch = 4,
+ },
+};
+
static struct tegra_fb_data seaboard_fb_data = {
.win = 0,
.xres = 1366,
@@ -315,6 +331,13 @@ static struct tegra_fb_data seaboard_hdmi_fb_data = {
.bits_per_pixel = 16,
};
+static struct tegra_fb_data tf101_fb_data = {
+ .win = 0,
+ .xres = 1280,
+ .yres = 800,
+ .bits_per_pixel = 32,
+};
+
static struct tegra_dc_out seaboard_disp1_out = {
.type = TEGRA_DC_OUT_RGB,
@@ -538,3 +561,16 @@ int __init picasso_panel_init(void)
return seaboard_panel_register_devices();
}
#endif
+
+#ifdef CONFIG_MACH_TF101
+int __init tf101_panel_init(void)
+{
+ seaboard_panel_gpio_init();
+ seaboard_disp1_out.modes = tf101_panel_modes;
+ seaboard_disp1_pdata.fb = &tf101_fb_data;
+ seaboard_backlight_data.pwm_period_ns = 4000000;
+
+ fix_framebuffer_carveouts();
+ return seaboard_panel_register_devices();
+}
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.