Thread (3 messages) flat view 3 messages, 3 authors, 2011-07-09

Re: [PATCH] drivers/video: use strings to specify the Freescale DIU

From: Anatolij Gustschin <agust@denx.de>
Date: 2011-07-09 14:38:13
Also in: linuxppc-dev

On Thu, 7 Jul 2011 11:51:06 -0500
Timur Tabi [off-list ref] wrote:
Instead of using ill-defined numbers (0, 1, and 2) for the monitor port, allow
the user to specify the port by name ("dvi", "lvds", or "dlvds").  This works
on the kernel command line, the module command-line, and the sysfs "monitor"
device.

Note that changing the monitor port does not currently work on the P1022DS,
because the code that talks to the PIXIS FPGA is broken.

Signed-off-by: Timur Tabi <redacted>
---
 arch/powerpc/platforms/512x/mpc512x_shared.c |   22 +++-----
 arch/powerpc/platforms/85xx/p1022_ds.c       |   47 ++++++++---------
 arch/powerpc/platforms/86xx/mpc8610_hpcd.c   |   55 +++++++++-----------
 arch/powerpc/sysdev/fsl_soc.h                |   25 ++++++---
 drivers/video/fsl-diu-fb.c                   |   73 +++++++++++++++++++------
 5 files changed, 128 insertions(+), 94 deletions(-)
It mostly looks okay to me, please see one comment below.
Otherwise
Acked-by: Anatolij Gustschin <agust@denx.de>

...
quoted hunk ↗ jump to hunk
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c
index 0acc7d6..9c6837e 100644
--- a/drivers/video/fsl-diu-fb.c
+++ b/drivers/video/fsl-diu-fb.c
...
quoted hunk ↗ jump to hunk
@@ -832,8 +862,8 @@ static int fsl_diu_set_par(struct fb_info *info)
 	}
 
 	ad->pix_fmt > -		diu_ops.get_pixel_format(var->bits_per_pixel,
-					 machine_data->monitor_port);
+		cpu_to_be32(diu_ops.get_pixel_format(machine_data->monitor_port,
+						     var->bits_per_pixel));
I think you can drop cpu_to_be32 here, it is somehow confusing. The
descriptor fields are LE32, get_pixel_format() returns LE32 value.
 	ad->addr    = cpu_to_le32(info->fix.smem_start);
Thanks,
Anatolij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help