diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-02-06 18:19:58 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-02-06 18:19:58 +0100 |
commit | ecff430776c0b398990f4e4eacf38d9843cd6004 (patch) | |
tree | 64714a8661f536a90af0fd7fc7e8f0af1efa13c5 /recipes-kernel/linux | |
parent | 3e4021dde19e9f94aa7a46edca91891cada7cb65 (diff) |
kernel: example patch to change to Full HD resolution
- patch not added to recipe, so default remains VGA resolution
- changes colibri-t20, colibri-t30, apalis-t30
Diffstat (limited to 'recipes-kernel/linux')
-rw-r--r-- | recipes-kernel/linux/files/full-hd.patch | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/full-hd.patch b/recipes-kernel/linux/files/full-hd.patch new file mode 100644 index 0000000..98cdfe6 --- /dev/null +++ b/recipes-kernel/linux/files/full-hd.patch @@ -0,0 +1,203 @@ +diff --git a/arch/arm/mach-tegra/board-apalis_t30-panel.c b/arch/arm/mach-tegra/board-apalis_t30-panel.c +index 0462411..8097b7d 100644 +--- a/arch/arm/mach-tegra/board-apalis_t30-panel.c ++++ b/arch/arm/mach-tegra/board-apalis_t30-panel.c +@@ -259,6 +259,7 @@ static struct tegra_dc_mode apalis_t30_panel_modes[] = { + .v_front_porch = 10, /* lower_margin */ + }, + #else /* TEGRA_FB_VGA */ ++#if 0 + { + /* 800x480@60 (e.g. EDT ET070080DH6) */ + .pclk = 32460000, +@@ -396,6 +397,7 @@ static struct tegra_dc_mode apalis_t30_panel_modes[] = { + .v_front_porch = 1, + //high active vertical sync polarity + }, ++#endif + { + /* 1920x1080p 59.94/60hz EIA/CEA-861-B Format 16 */ + .pclk = 148500000, +@@ -476,8 +478,8 @@ static struct tegra_fb_data apalis_t30_fb_data = { + .xres = 640, + .yres = 480, + #else /* TEGRA_FB_VGA */ +- .xres = 800, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + #endif /* TEGRA_FB_VGA */ + .bits_per_pixel = 16, + .flags = TEGRA_FB_FLIP_ON_PROBE, +@@ -485,8 +487,8 @@ static struct tegra_fb_data apalis_t30_fb_data = { + + static struct tegra_fb_data apalis_t30_hdmi_fb_data = { + .win = 0, +- .xres = 640, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + .bits_per_pixel = 16, + .flags = TEGRA_FB_FLIP_ON_PROBE, + }; +diff --git a/arch/arm/mach-tegra/board-apalis_t30.h b/arch/arm/mach-tegra/board-apalis_t30.h +index 38a86f6..e12ee96 100644 +--- a/arch/arm/mach-tegra/board-apalis_t30.h ++++ b/arch/arm/mach-tegra/board-apalis_t30.h +@@ -125,7 +125,7 @@ + #define TDIODE_OFFSET (10000) /* in millicelsius */ + + /* Run framebuffer in VGA mode */ +-#define TEGRA_FB_VGA ++//#define TEGRA_FB_VGA + + int apalis_t30_regulator_init(void); + int apalis_t30_suspend_init(void); +diff --git a/arch/arm/mach-tegra/board-colibri_t20-panel.c b/arch/arm/mach-tegra/board-colibri_t20-panel.c +index 6d7ec83..f393b3b 100644 +--- a/arch/arm/mach-tegra/board-colibri_t20-panel.c ++++ b/arch/arm/mach-tegra/board-colibri_t20-panel.c +@@ -224,6 +224,7 @@ static struct tegra_dc_mode colibri_t20_panel_modes[] = { + .v_front_porch = 10, /* lower_margin */ + }, + #else /* TEGRA_FB_VGA */ ++#if 0 + #ifndef CONFIG_ANDROID + { + /* 800x480@60 (e.g. EDT ET070080DH6) */ +@@ -355,6 +356,7 @@ static struct tegra_dc_mode colibri_t20_panel_modes[] = { + .v_front_porch = 1, + //high active vertical sync polarity + }, ++#endif + { + /* 1920x1080p 59.94/60hz EIA/CEA-861-B Format 16 */ + .pclk = 144000000, +@@ -439,8 +441,8 @@ static struct tegra_fb_data colibri_t20_fb_data = { + .yres = 480, + #else /* TEGRA_FB_VGA */ + #ifndef CONFIG_ANDROID +- .xres = 800, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + #else /* CONFIG_ANDROID */ + .xres = 1280, + .yres = 720, +@@ -452,8 +454,8 @@ static struct tegra_fb_data colibri_t20_fb_data = { + + static struct tegra_fb_data colibri_t20_hdmi_fb_data = { + .win = 0, +- .xres = 640, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + .bits_per_pixel = 16, + .flags = TEGRA_FB_FLIP_ON_PROBE, + }; +@@ -461,15 +463,15 @@ static struct tegra_fb_data colibri_t20_hdmi_fb_data = { + static struct tegra_dc_out_pin colibri_t20_dc_out_pins[] = { + { + .name = TEGRA_DC_OUT_PIN_H_SYNC, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + { + .name = TEGRA_DC_OUT_PIN_V_SYNC, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + { + .name = TEGRA_DC_OUT_PIN_PIXEL_CLOCK, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + }; + +diff --git a/arch/arm/mach-tegra/board-colibri_t20.h b/arch/arm/mach-tegra/board-colibri_t20.h +index b6b5e6a..8e82626 100644 +--- a/arch/arm/mach-tegra/board-colibri_t20.h ++++ b/arch/arm/mach-tegra/board-colibri_t20.h +@@ -41,7 +41,7 @@ + + /* Run framebuffer in VGA mode */ + #ifndef CONFIG_ANDROID +-#define TEGRA_FB_VGA ++//#define TEGRA_FB_VGA + #endif + + int colibri_t20_emc_init(void); +diff --git a/arch/arm/mach-tegra/board-colibri_t30-panel.c b/arch/arm/mach-tegra/board-colibri_t30-panel.c +index ee74874..c08241e 100644 +--- a/arch/arm/mach-tegra/board-colibri_t30-panel.c ++++ b/arch/arm/mach-tegra/board-colibri_t30-panel.c +@@ -263,6 +263,7 @@ static struct tegra_dc_mode colibri_t30_panel_modes[] = { + .v_front_porch = 10, /* lower_margin */ + }, + #else /* TEGRA_FB_VGA */ ++#if 0 + { + /* 800x480@60 (e.g. EDT ET070080DH6) */ + .pclk = 32460000, +@@ -400,6 +401,7 @@ static struct tegra_dc_mode colibri_t30_panel_modes[] = { + .v_front_porch = 1, + //high active vertical sync polarity + }, ++#endif + { + /* 1920x1080p 59.94/60hz EIA/CEA-861-B Format 16 */ + .pclk = 148500000, +@@ -480,8 +482,8 @@ static struct tegra_fb_data colibri_t30_fb_data = { + .xres = 640, + .yres = 480, + #else /* TEGRA_FB_VGA */ +- .xres = 800, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + #endif /* TEGRA_FB_VGA */ + .bits_per_pixel = 16, + .flags = TEGRA_FB_FLIP_ON_PROBE, +@@ -489,8 +491,8 @@ static struct tegra_fb_data colibri_t30_fb_data = { + + static struct tegra_fb_data colibri_t30_hdmi_fb_data = { + .win = 0, +- .xres = 640, +- .yres = 480, ++ .xres = 1920, ++ .yres = 1080, + .bits_per_pixel = 16, + .flags = TEGRA_FB_FLIP_ON_PROBE, + }; +@@ -498,15 +500,15 @@ static struct tegra_fb_data colibri_t30_hdmi_fb_data = { + static struct tegra_dc_out_pin colibri_t30_dc_out_pins[] = { + { + .name = TEGRA_DC_OUT_PIN_H_SYNC, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + { + .name = TEGRA_DC_OUT_PIN_V_SYNC, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + { + .name = TEGRA_DC_OUT_PIN_PIXEL_CLOCK, +- .pol = TEGRA_DC_OUT_PIN_POL_LOW, ++ .pol = TEGRA_DC_OUT_PIN_POL_HIGH, + }, + }; + +diff --git a/arch/arm/mach-tegra/board-colibri_t30.h b/arch/arm/mach-tegra/board-colibri_t30.h +index 745d2a4..a243175 100644 +--- a/arch/arm/mach-tegra/board-colibri_t30.h ++++ b/arch/arm/mach-tegra/board-colibri_t30.h +@@ -68,7 +68,7 @@ + #define TDIODE_OFFSET (10000) /* in millicelsius */ + + /* Run framebuffer in VGA mode */ +-#define TEGRA_FB_VGA ++//#define TEGRA_FB_VGA + + int colibri_t30_regulator_init(void); + int colibri_t30_suspend_init(void); |