Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.
tegra_dc_vga_mode already defined in dc.c. Removed duplicate
defination in hdmi.c and hdmi2.0.c
bug
200036424
bug
200130124
bug
200129681
Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/707309
(cherry picked from commit
73a561a53469912d94c0dea866646c87ec257bef)
Reviewed-on: http://git-master/r/792235
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
extern atomic_t sd_brightness;
+extern struct fb_videomode tegra_dc_vga_mode;
+
enum {
TEGRA_HPD_STATE_FORCE_DEASSERT = -1,
TEGRA_HPD_STATE_NORMAL = 0,
#define DC_COM_PIN_OUTPUT_POLARITY1_INIT_VAL 0x01000000
#define DC_COM_PIN_OUTPUT_POLARITY3_INIT_VAL 0x0
-static struct fb_videomode tegra_dc_vga_mode = {
+struct fb_videomode tegra_dc_vga_mode = {
.refresh = 60,
.xres = 640,
.yres = 480,
static struct kobject *hdmi_audio;
-
-static struct fb_videomode tegra_dc_vga_mode = {
- .refresh = 60,
- .xres = 640,
- .yres = 480,
- .pixclock = KHZ2PICOS(25200),
- .hsync_len = 96, /* h_sync_width */
- .vsync_len = 2, /* v_sync_width */
- .left_margin = 48, /* h_back_porch */
- .upper_margin = 33, /* v_back_porch */
- .right_margin = 16, /* h_front_porch */
- .lower_margin = 10, /* v_front_porch */
- .vmode = 0,
- .sync = 0,
-};
#if defined(CONFIG_ARCH_TEGRA_3x_SOC)
const struct tmds_config tmds_config[] = {
{ /* 480p modes */
#define TMDS_NODE "/host1x/sor1"
-/* Possibly should be moved to hdmi_common.h */
-static struct fb_videomode tegra_dc_vga_mode = {
- .refresh = 60,
- .xres = 640,
- .yres = 480,
- .pixclock = KHZ2PICOS(25200),
- .hsync_len = 96, /* h_sync_width */
- .vsync_len = 2, /* v_sync_width */
- .left_margin = 48, /* h_back_porch */
- .upper_margin = 33, /* v_back_porch */
- .right_margin = 16, /* h_front_porch */
- .lower_margin = 10, /* v_front_porch */
- .vmode = 0,
- .sync = 0,
-};
-
extern bool G_RECOVERY_HACK;
static ssize_t hdmi_ddc_power_toggle(struct kobject *kobj,
* displayed on 'mode' device.
*/
fb_info->info->mode = (struct fb_videomode*) NULL;
+#ifdef CONFIG_FRAMEBUFFER_CONSOLE
+ fb_add_videomode(&tegra_dc_vga_mode, &fb_info->info->modelist);
+ fb_videomode_to_var(&fb_info->info->var, &tegra_dc_vga_mode);
+#endif
/* For L4T - After the next hotplug, framebuffer console will
* use the old variable screeninfo by default, only video-mode