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

Ian Campbell ijc at hellion.org.uk
Sun Dec 28 10:27:43 CET 2014


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 at redhat.com>

Acked-by: Ian Campbell <ijc at 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)




More information about the U-Boot mailing list