Re: [PATCH RE-SEND] s3c-fb: Add support S5PV310 FIMD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, Mr. Kukjin.

Kukjin Kim ì ê:
Inki Dae wrote:
Hello, Mr. Kukjin.

Hi,

I know we had a discussion about your patch below.
after that, did you have some discussion about that?
If not, Paul advised to use clkdev lookup.

Please, refer to below mail.

http://www.mail-archive.com/linux-samsung-soc@xxxxxxxxxxxxxxx/msg03448.html

I think it's different with your approach even though the purpose is similar
and I know, Mr. Han explained about clock configurable by call.

please, refer to below.
http://www.mail-archive.com/linux-samsung-soc@xxxxxxxxxxxxxxx/msg03445.html

for identify clock types("lcd" for bus clock or "fimd" for sclk_fimd), using switch-case seems to be bad. for avoiding this one I suggested other way and the way clock type selection from platform data is also bad so Paul adviced us to use clk_dev lookup.


Paul, how do you think about this?

Personally, if we want to support S5PV310 FIMD now, this patch is good to
support it and to us now.
Of course, I think, we can upgrade it later.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@xxxxxxxxxxx>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

-----Original Message-----
From: linux-fbdev-owner@xxxxxxxxxxxxxxx [mailto:linux-fbdev-
owner@xxxxxxxxxxxxxxx] On Behalf Of Kukjin Kim
Sent: Tuesday, January 04, 2011 5:06 PM
To: linux-samsung-soc@xxxxxxxxxxxxxxx; linux-fbdev@xxxxxxxxxxxxxxx
Cc: ben-linux@xxxxxxxxx; akpm@xxxxxxxxxxxxxxxxxxxx; lethal@xxxxxxxxxxxx;
Jonghun Han; Sangbeom Kim; InKi Dae; Kukjin Kim
Subject: [PATCH RE-SEND] s3c-fb: Add support S5PV310 FIMD

From: Jonghun Han <jonghun.han@xxxxxxxxxxx>

This patch adds struct s3c_fb_driverdata s3c_fb_data_s5pv310 for S5PV310
and S5PC210. The clk_type is added to distinguish clock type in it and
lcd_clk is added in structure s3c_fb to calculate divider for lcd panel.

Please refer to below diagrams about clocks of FIMD IP. FIMD driver
needs
two clocks for FIMD IP and LCD pixel clock. Actually, the LCD pixel
clock
can be selected from 1.clk 'lcd' and 2.SCLK_FIMD before S5PV310. But
from
S5PV310, the 2.SCLK_FIMD can be used only for source of LCD pixel clock.

FIMD_CLK_TYPE0:
           ------------------------------------
                      dsys bus
           ----------------+-------------------
                           |
                           |1.clk 'lcd'
                           |
                           | FIMD block
                       +---+-----------+
4.mout_mpll |\         |   |           |
    --------|m|        | +-+-+ +----+  |
            |u|-+      | |   +-+core|  |
            |x| |      | |     +----+  |
            |/  |      | | |\          |
                |      | +-|m|  +---+  |
                |      |   |u|--+div|  |
                +------+---|x|  +---+  |
           2.SCLK_FIMD |   |/     |    |
                       |          |    |
                       +----------+----+
                                  |
           inside of SoC          |
           -----------------------+--------------------------
           outside of SoC         |
                                  | 3.LCD pixel clock
                                  |
                          +--------------+
                          | LCD module   |
                          +--------------+

FIMD_CLK_TYPE1:
           ------------------------------------
                      dsys bus
           ----------------+-------------------
                           |
                           |1.clk 'fimd'
                           |
                           | FIMD block
                       +---+-----------+
4.mout_mpll |\         |   |           |
    --------|m|        |   |   +----+  |
            |u|-+      |   +---+core|  |
            |x| |      |       +----+  |
            |/  |      |               |
                |      |        +---+  |
                |      |     +--+div|  |
                +------+-----+  +---+  |
           2.SCLK_FIMD |          |    |
                       |          |    |
                       +----------+----+
                                  |
           inside of SoC          |
           -----------------------+--------------------------
           outside of SoC         |
                                  | 3.LCD pixel clock
                                  |
                          +--------------+
                          | LCD module   |
                          +--------------+

Signed-off-by: Jonghun Han <jonghun.han@xxxxxxxxxxx>
Signed-off-by: Sangbeom Kim <sbkim73@xxxxxxxxxxx>
Cc: InKi Dae <inki.dae@xxxxxxxxxxx>
Cc: Ben Dooks <ben-linux@xxxxxxxxx>
Signed-off-by: Kukjin Kim <kgene.kim@xxxxxxxxxxx>
---
Hi Paul,

I and Mr. Han, Jonghun sent below patch several weeks ago.
But I couldn't find it in your tree...
(Re-made against on your latest fbdev-2.6.git #master)

I think this should be merged for supporting S5PV310/S5PC210 frame
buffer.
So could you please let me know your opinion or plan about this?

NOTE: Needs following platform device patches for S5PV310/S5PC210 frame
buffer.
And I already applied that in my tree as S5P SoCs architecture
maintainer.
0001-ARM-S5PV310-Add-FIMD-resource-definition.patch
0002-ARM-S5PV310-Add-platform-device-and-helper-functio.patch
0004-ARM-S5PV310-Add-support-FIMD0-and-LTE480WV-LCD-for.patch

 drivers/video/Kconfig  |    2 +-
 drivers/video/s3c-fb.c |  125
+++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 113 insertions(+), 14 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux