Message ID | 1419447989-21959-2-git-send-email-hdegoede@redhat.com |
---|---|
State | Accepted |
Delegated to: | Ian Campbell |
Headers | show |
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)
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 --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)
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(+)