diff mbox

[U-Boot,01/17] videomodes: Add support for refresh and pclk_khz to video_get_params()

Message ID 1419447989-21959-2-git-send-email-hdegoede@redhat.com
State Accepted
Delegated to: Ian Campbell
Headers show

Commit Message

Hans de Goede Dec. 24, 2014, 7:06 p.m. UTC
Add support to video_get_params() for setting the new refresh and pixclock_khz
struct ctfb_res_modes members.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/video/videomodes.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ian Campbell Dec. 28, 2014, 9:27 a.m. UTC | #1
On Wed, 2014-12-24 at 20:06 +0100, Hans de Goede wrote:
> Add support to video_get_params() for setting the new refresh and pixclock_khz
> struct ctfb_res_modes members.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Acked-by: Ian Campbell <ijc@hellion.org.uk> (needs Anatolij's though I
think)

> ---
>  drivers/video/videomodes.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c
> index 07d1a9f..3e88273 100644
> --- a/drivers/video/videomodes.c
> +++ b/drivers/video/videomodes.c
> @@ -198,6 +198,7 @@ int video_get_params (struct ctfb_res_modes *pPar, char *penv)
>  	while ((i = video_get_param_len (p, ',')) != 0) {
>  		GET_OPTION ("x:", pPar->xres)
>  			GET_OPTION ("y:", pPar->yres)
> +			GET_OPTION ("refresh:", pPar->refresh)
>  			GET_OPTION ("le:", pPar->left_margin)
>  			GET_OPTION ("ri:", pPar->right_margin)
>  			GET_OPTION ("up:", pPar->upper_margin)
> @@ -207,6 +208,7 @@ int video_get_params (struct ctfb_res_modes *pPar, char *penv)
>  			GET_OPTION ("sync:", pPar->sync)
>  			GET_OPTION ("vmode:", pPar->vmode)
>  			GET_OPTION ("pclk:", pPar->pixclock)
> +			GET_OPTION ("pclk_khz:", pPar->pixclock_khz)
>  			GET_OPTION ("depth:", bpp)
>  			p += i;
>  		if (*p != 0)
Anatolij Gustschin Jan. 8, 2015, 5:23 p.m. UTC | #2
On Wed, 24 Dec 2014 20:06:13 +0100
Hans de Goede <hdegoede@redhat.com> wrote:

> Add support to video_get_params() for setting the new refresh and pixclock_khz
> struct ctfb_res_modes members.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Acked-by: Anatolij Gustschin <agust@denx.de>
diff mbox

Patch

diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c
index 07d1a9f..3e88273 100644
--- a/drivers/video/videomodes.c
+++ b/drivers/video/videomodes.c
@@ -198,6 +198,7 @@  int video_get_params (struct ctfb_res_modes *pPar, char *penv)
 	while ((i = video_get_param_len (p, ',')) != 0) {
 		GET_OPTION ("x:", pPar->xres)
 			GET_OPTION ("y:", pPar->yres)
+			GET_OPTION ("refresh:", pPar->refresh)
 			GET_OPTION ("le:", pPar->left_margin)
 			GET_OPTION ("ri:", pPar->right_margin)
 			GET_OPTION ("up:", pPar->upper_margin)
@@ -207,6 +208,7 @@  int video_get_params (struct ctfb_res_modes *pPar, char *penv)
 			GET_OPTION ("sync:", pPar->sync)
 			GET_OPTION ("vmode:", pPar->vmode)
 			GET_OPTION ("pclk:", pPar->pixclock)
+			GET_OPTION ("pclk_khz:", pPar->pixclock_khz)
 			GET_OPTION ("depth:", bpp)
 			p += i;
 		if (*p != 0)