Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1386424 > unrolled thread
| Started by | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| First post | 2016-04-25 15:30 +0200 |
| Last post | 2016-04-26 12:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v4 08/11] drm: sun4i: tv: Add PAL output standard Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-04-25 15:30 +0200
Re: [PATCH v4 08/11] drm: sun4i: tv: Add PAL output standard Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-26 12:00 +0200
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-04-25 15:30 +0200 |
| Subject | [PATCH v4 08/11] drm: sun4i: tv: Add PAL output standard |
| Message-ID | <rrOKn-6zz-19@gated-at.bofh.it> |
Now that we have support for the composite output, we can start adding new
supported standards. Start with PAL, and we will add other eventually.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
drivers/gpu/drm/sun4i/sun4i_tv.c | 42 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c
index 78634dfc0f77..ccf275a90132 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tv.c
@@ -178,7 +178,49 @@ struct sun4i_tv {
struct sun4i_drv *drv;
};
+struct video_levels pal_video_levels = {
+ .black = 252, .blank = 252,
+};
+
+struct burst_levels pal_burst_levels = {
+ .cb = 40, .cr = 40,
+};
+
+struct color_gains pal_color_gains = {
+ .cb = 224, .cr = 224,
+};
+
+struct resync_parameters pal_resync_parameters = {
+ .field = true, .line = 13, .pixel = 12,
+};
+
struct tv_mode tv_modes[] = {
+ {
+ .name = "PAL",
+ .mode = SUN4I_TVE_CFG0_RES_576i,
+ .chroma_freq = 0x2a098acb,
+
+ .back_porch = 138,
+ .front_porch = 24,
+ .line_number = 625,
+
+ .hdisplay = 720,
+ .hfront_porch = 3,
+ .hsync_len = 2,
+ .hback_porch = 139,
+
+ .vdisplay = 576,
+ .vfront_porch = 28,
+ .vsync_len = 2,
+ .vback_porch = 19,
+
+ .vblank_level = 252,
+
+ .color_gains = &pal_color_gains,
+ .burst_levels = &pal_burst_levels,
+ .video_levels = &pal_video_levels,
+ .resync_params = &pal_resync_parameters,
+ },
};
static inline struct sun4i_tv *
--
2.8.1
[toc] | [next] | [standalone]
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Date | 2016-04-26 12:00 +0200 |
| Message-ID | <rs7WG-5oQ-15@gated-at.bofh.it> |
| In reply to | #1386424 |
On Mon, 25 Apr 2016 15:22:49 +0200
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
> Now that we have support for the composite output, we can start adding new
> supported standards. Start with PAL, and we will add other eventually.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
> drivers/gpu/drm/sun4i/sun4i_tv.c | 42 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c
> index 78634dfc0f77..ccf275a90132 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_tv.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c
> @@ -178,7 +178,49 @@ struct sun4i_tv {
> struct sun4i_drv *drv;
> };
>
> +struct video_levels pal_video_levels = {
> + .black = 252, .blank = 252,
> +};
> +
> +struct burst_levels pal_burst_levels = {
> + .cb = 40, .cr = 40,
> +};
> +
> +struct color_gains pal_color_gains = {
> + .cb = 224, .cr = 224,
> +};
> +
> +struct resync_parameters pal_resync_parameters = {
> + .field = true, .line = 13, .pixel = 12,
> +};
> +
> struct tv_mode tv_modes[] = {
> + {
> + .name = "PAL",
> + .mode = SUN4I_TVE_CFG0_RES_576i,
> + .chroma_freq = 0x2a098acb,
> +
> + .back_porch = 138,
> + .front_porch = 24,
> + .line_number = 625,
> +
> + .hdisplay = 720,
> + .hfront_porch = 3,
> + .hsync_len = 2,
> + .hback_porch = 139,
> +
> + .vdisplay = 576,
> + .vfront_porch = 28,
> + .vsync_len = 2,
> + .vback_porch = 19,
> +
> + .vblank_level = 252,
> +
> + .color_gains = &pal_color_gains,
> + .burst_levels = &pal_burst_levels,
> + .video_levels = &pal_video_levels,
> + .resync_params = &pal_resync_parameters,
> + },
> };
>
> static inline struct sun4i_tv *
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web