Skip to contentSkip to conversation

ARM: EXYNOS4: Change clock name for FIMD

PATCH In review Jingoo Han 3 participants 3 messages Jul 20, 2011 – Aug 30, 2011

Subsystems (4)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v8 1/5 ARM: EXYNOS4: Change clock name for FIMD

This patch changes clock for FIMD from 'fimd' to 'lcd'. Also, devname for FIMD is changed from 's5pv310-fb' to 'exynos4-fb'.

---
 arch/arm/mach-exynos4/clock.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-exynos4/clock.c +6 -6
index 98b5cc4..778a202 100644
@@ -405,13 +405,13 @@ static struct clk init_clocks_off[] = {
 		.enable		= exynos4_clk_ip_cam_ctrl,
 		.ctrlbit	= (1 << 3),
 	}, {
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.0",
+		.name		= "lcd",
+		.devname	= "exynos4-fb.0",
 		.enable		= exynos4_clk_ip_lcd0_ctrl,
 		.ctrlbit	= (1 << 0),
 	}, {
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.1",
+		.name		= "lcd",
+		.devname	= "exynos4-fb.1",
 		.enable		= exynos4_clk_ip_lcd1_ctrl,
 		.ctrlbit	= (1 << 0),
 	}, {
@@ -909,7 +909,7 @@ static struct clksrc_clk clksrcs[] = {
 	}, {
 		.clk		= {
 			.name		= "sclk_fimd",
-			.devname	= "s5pv310-fb.0",
+			.devname	= "exynos4-fb.0",
 			.enable		= exynos4_clksrc_mask_lcd0_ctrl,
 			.ctrlbit	= (1 << 0),
 		},
@@ -919,7 +919,7 @@ static struct clksrc_clk clksrcs[] = {
 	}, {
 		.clk		= {
 			.name		= "sclk_fimd",
-			.devname	= "s5pv310-fb.1",
+			.devname	= "exynos4-fb.1",
 			.enable		= exynos4_clksrc_mask_lcd1_ctrl,
 			.ctrlbit	= (1 << 0),
 		},
Signature · 1 line
1.7.1
#1 lore raw
Quoted 17 lines · Jingoo Han

This patch changes clock for FIMD from 'fimd' to 'lcd'. Also, devname for FIMD is changed from 's5pv310-fb' to 'exynos4-fb'.

---
 arch/arm/mach-exynos4/clock.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-exynos4/clock.c +0 -0
index 98b5cc4..778a202 100644
@@ -405,13 +405,13 @@ static struct clk init_clocks_off[] = {
 		.enable		= exynos4_clk_ip_cam_ctrl,
 		.ctrlbit	= (1 << 3),
 	}, {

arch/arm/mach-exynos4/clock.c static struct clk init_clocks_off[] = { · line 413

Quoted 10 lines
arch/arm/mach-exynos4/clock.c +3 -4
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.0",
+		.name		= "lcd",
+		.devname	= "exynos4-fb.0",
 		.enable		= exynos4_clk_ip_lcd0_ctrl,
 		.ctrlbit	= (1 << 0),
 	}, {
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.1",
+		.name		= "lcd",

As I remember, some guys discussed about the clock name before.

Please refer to the following diagram. Before EXYNOS4210 clk 'lcd' was used for FIMD IP core clock and source of the LCD pixel clock. But the mux used to select source of LCD pixel clock is removed. So 'lcd' clock is only used for core clock of FIMD IP. It isn't used for LCD pixel clock.

As a result clock name was changed from lcd to fimd in the EXYNOS4210 datasheet.

Before EXYNOS4

           ------------------------------------
                      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   |
                          +--------------+

EXYNOS4210

           ------------------------------------
                      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   |
                          +--------------+

To change devname is ok to me. So will apply only it.

If any problems, please let me know :)

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Quoted 24 lines
arch/arm/mach-exynos4/clock.c +3 -3
+		.devname	= "exynos4-fb.1",
 		.enable		= exynos4_clk_ip_lcd1_ctrl,
 		.ctrlbit	= (1 << 0),
 	}, {
@@ -909,7 +909,7 @@ static struct clksrc_clk clksrcs[] = {
 	}, {
 		.clk		= {
 			.name		= "sclk_fimd",
-			.devname	= "s5pv310-fb.0",
+			.devname	= "exynos4-fb.0",
 			.enable		= exynos4_clksrc_mask_lcd0_ctrl,
 			.ctrlbit	= (1 << 0),
 		},
@@ -919,7 +919,7 @@ static struct clksrc_clk clksrcs[] = {
 	}, {
 		.clk		= {
 			.name		= "sclk_fimd",
-			.devname	= "s5pv310-fb.1",
+			.devname	= "exynos4-fb.1",
 			.enable		= exynos4_clksrc_mask_lcd1_ctrl,
 			.ctrlbit	= (1 << 0),
 		},
--

1.7.1

#2 lore raw
Quoted 31 lines · Kukjin Kim
Quoted 17 lines · Jingoo Han

This patch changes clock for FIMD from 'fimd' to 'lcd'. Also, devname for FIMD is changed from 's5pv310-fb' to 'exynos4-fb'.

---
  arch/arm/mach-exynos4/clock.c |   12 ++++++------
  1 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-exynos4/clock.c +0 -0
index 98b5cc4..778a202 100644
@@ -405,13 +405,13 @@ static struct clk init_clocks_off[] = {
  		.enable		= exynos4_clk_ip_cam_ctrl,
  		.ctrlbit	= (1<<  3),
  	}, {

arch/arm/mach-exynos4/clock.c static struct clk init_clocks_off[] = { · line 413

Quoted 10 lines
arch/arm/mach-exynos4/clock.c +3 -4
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.0",
+		.name		= "lcd",
+		.devname	= "exynos4-fb.0",
  		.enable		= exynos4_clk_ip_lcd0_ctrl,
  		.ctrlbit	= (1<<  0),
  	}, {
-		.name		= "fimd",
-		.devname	= "s5pv310-fb.1",
+		.name		= "lcd",

As I remember, some guys discussed about the clock name before.

Quoted 8 lines

Please refer to the following diagram. Before EXYNOS4210 clk 'lcd' was used for FIMD IP core clock and source of the LCD pixel clock. But the mux used to select source of LCD pixel clock is removed. So 'lcd' clock is only used for core clock of FIMD IP. It isn't used for LCD pixel clock.

As a result clock name was changed from lcd to fimd in the EXYNOS4210 datasheet.

In drivers/video/s3c-fb.c:s3c_fb_probe(), the bus clock is assumed to be 'lcd'. The bus clock name in all other related machine folder is 'lcd'. Hence for consistency, we might consider renaming 'fimd'==>'lcd', even though the clock name is different in the datasheet.

Signature · 1 line
Tushar Behera