CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com <mailto:p.osciak@samsung.com>>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com
<mailto:kyungmin.park@samsung.com>>
---
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Hi InKi Dae,
The patch looks interesting. Could you help us understand more about
it from a big picture perspective? ie: how is this "cpu interface"
used? I think fb_var_screeninfo is intended to be a very generic data
structure and since it is exposed to userspace we should be cautious
about what we add to it. I didn't understand the purpose of exposing
cs, wr setup, wr act and hold delay to userspace. Are the MIPI display
parameters being specified from userspace? I also didn't understand
the fb_cmdmode_to_var export. I looked through the other 2 patches
(3/3 and 2/3) and didn't see it used so I might have missed something.
Also, I wanted to ask, since there are now multiple MIPI-DSI host
controller drivers in fbdev (omap and also mobile-sh), is there any
work that could be done to make these implementations share more code?
Thanks,
jaya
quoted hunk
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Hi InKi Dae,
The patch looks interesting. Could you help us understand more about
it from a big picture perspective? ie: how is this "cpu interface"
used? I think fb_var_screeninfo is intended to be a very generic data
structure and since it is exposed to userspace we should be cautious
about what we add to it. I didn't understand the purpose of exposing
cs, wr setup, wr act and hold delay to userspace.
in case of lcd panel with cpu interface, it could get screen data
through arm core
or display controller supporting cpu interface mode.
display controller of s5pv210 chip can create cpu interface signal according to
cs, wr setup, wr act and hold time setting.
the reason I added cpu timing variables to fb_var_screeninfo is for using common
framework when setting them to the display controller as cpu timing info.
please, see [PATCH 2/3], s3c_fb_set_timing function part.
and cpu timing could be adjusted by user through fb_var_screeninfo,
for this, suitable checking should be considered at machine specific
fb_check_var func.
also you can see that through [PATCH 2/3], s3c_fb_check_var.
Are the MIPI display
parameters being specified from userspace? I also didn't understand
the fb_cmdmode_to_var export. I looked through the other 2 patches
(3/3 and 2/3) and didn't see it used so I might have missed something.
I just exported fb_cmdmode_to_var for future use. it doesn't use this func yet.
now, modedb.c and fb.h have no variables for cpu interface. perhaps, more codes
for cpu interface should be added to them.
Also, I wanted to ask, since there are now multiple MIPI-DSI host
controller drivers in fbdev (omap and also mobile-sh), is there any
work that could be done to make these implementations share more code?
can MIPI-DSI host controller drivers you said use commonly?
I think these drivers are machine specific. so driver for MIPI-DSI
controller of S5PV210
should be implemented.
this patch code is MIPI Master driver and it can registered multiple
MIPI client driver
(mipi based lcd panel driver).
to use master driver, mipi client driver have to define some callbacks to struct
mipi_lcd_driver, and register them through s5p_dsim_register_lcd_driver func.
after this, client driver would be registered to master driver, and
client driver registered
would be probed when master driver was probed scaning client driver name.
please, see [PATCH 3/3], s5p_dsim_probe func part.
thank you for your interesting.
Best Regards,
InKi Dae.
Hi InKi,
Thanks for your reply.
On Wed, Jun 30, 2010 at 12:36 PM, InKi Dae [off-list ref] wrote:
Hi Jaya,
2010/6/30 Jaya Kumar [off-list ref]:
quoted
2010/6/29 InKi Dae [off-list ref]:
quoted
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Hi InKi Dae,
The patch looks interesting. Could you help us understand more about
it from a big picture perspective? ie: how is this "cpu interface"
used? I think fb_var_screeninfo is intended to be a very generic data
structure and since it is exposed to userspace we should be cautious
about what we add to it. I didn't understand the purpose of exposing
cs, wr setup, wr act and hold delay to userspace.
in case of lcd panel with cpu interface, it could get screen data
through arm core
or display controller supporting cpu interface mode.
display controller of s5pv210 chip can create cpu interface signal according to
cs, wr setup, wr act and hold time setting.
the reason I added cpu timing variables to fb_var_screeninfo is for using common
framework when setting them to the display controller as cpu timing info.
please, see [PATCH 2/3], s3c_fb_set_timing function part.
and cpu timing could be adjusted by user through fb_var_screeninfo,
for this, suitable checking should be considered at machine specific
fb_check_var func.
also you can see that through [PATCH 2/3], s3c_fb_check_var.
I'm still having difficulty understanding this. I guess what I am
asking is why do these new variables "cs, wr setup, wr act and hold
time setting", have to be in fb_var_screeninfo which is a generic
platform/implementation independent structure exposed to userspace? If
I've understood things correctly, the variables themselves, eg: wr
setup seem to be specific to this implementation rather than being
generic like the other members of fb_var_sreeninfo. Have you
considered an alternative way by which you can achieve the desired
functionality. Also, I'm confused when you say "cpu timing" could be
adjusted by user through fb_var_screeninfo. Could you elaborate on
that?
I haven't read through the remaining part of the message about
mipi-dsi issues, I'm hoping developers who have implemented the other
MIPI-DSI implementations in fbdev could chime in.
Thanks,
jaya
@@ -269,6 +269,12 @@ struct fb_var_screeninfo {__u32vmode;/* see FB_VMODE_* */__u32rotate;/* angle we rotate counter clockwise */__u32reserved[5];/* Reserved for future compatibility */++/* For cpu interface timing. */+__u32cs_setup;+__u32wr_setup;+__u32wr_act;+__u32wr_hold;
This changes the framebuffer userspace API, making it incompatible with
existing users. What this means is that stuff using the framebuffer API
in userspace has to be upgraded/downgraded in lock-step with this change
- which is not a good idea.
Signed-off-by: InKi Dae <<a href="mailto:p.osciak@samsung.com">inki.dae@samsung.com</a>><br>
Signed-off-by: Kyungmin Park <<a
href="mailto:kyungmin.park@samsung.com">kyungmin.park@samsung.com</a>><br>
Hi InKi,
please do not include my e-mail address like this. I had absolutely nothing to do with this patch series whatsoever.
Best regards
--
Pawel Osciak
Linux Platform Group
Samsung Poland R&D Center
From: James Simmons <hidden> Date: 2010-07-06 15:30:29
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
From: James Simmons <hidden> Date: 2010-07-06 15:33:34
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
From: James Simmons <hidden> Date: 2010-07-06 15:35:02
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
On Tue, Jul 6, 2010 at 17:30, James Simmons [off-list ref] wrote:
quoted hunk
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
}
/**
+ * fb_cpumode_to_var - convert fb_cpumode to fb_var_screeninfo
^^^
quoted hunk
+ * @var: pointer to struct fb_var_screeninfo+ * @mode: pointer to struct fb_cpumode+ */+void fb_cmdmode_to_var(struct fb_var_screeninfo *var,
^^^
cpu vs cmd?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
From: James Simmons <hidden> Date: 2010-07-07 11:37:33
On Tue, 6 Jul 2010, Geert Uytterhoeven wrote:
On Tue, Jul 6, 2010 at 17:30, James Simmons [off-list ref] wrote:
quoted
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Hi, Geert
cpu and command mode are same mean.
and fb_cmdmode_to_var func had been removed from my previous patch.
please, see patch v2.
thank you.
------- Original Message -------
Sender : Geert Uytterhoeven[off-list ref]
Date : 2010-07-07 05:23 (GMT+09:00)
Title : Re: [PATCH 1/3] FB: Add some members for CPU Interface.
On Tue, Jul 6, 2010 at 17:30, James Simmons [off-list ref] wrote:
quoted hunk
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
+ * @var: pointer to struct fb_var_screeninfo+ * @mode: pointer to struct fb_cpumode+ */+void fb_cmdmode_to_var(struct fb_var_screeninfo *var,
^^^
cpu vs cmd?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
ÿôèº{.nÇ+‰·Ÿ®‰†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±ıöİzÿâ�Ø^n‡r¡ö¦zË�ëh™¨èÚ&£ûàz¿äz¹Ş—ú+€Ê+zf£¢·hšˆ§~††Ûiÿÿï�êÿ‘êçz_è®æj:+v‰¨ş)ߣøm