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

Hans de Goede hdegoede at redhat.com
Wed Dec 24 20:06:13 CET 2014


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>
---
 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)
-- 
2.1.0



More information about the U-Boot mailing list