imx25: Fix LCD pixelclock configuration
Subsystems (3)
PATCH 1/1 imx25: Fix LCD pixelclock configuration
Set LCDC base clock (per_7) parent clock to UPLL clock. This is needed to allow finer resolution in pixelclock
--- drivers/clk/imx/clk-imx25.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/clk/imx/clk-imx25.c +6 -0
@@ -238,6 +238,12 @@ static int __init __mx25_clocks_init(unsigned long osc_rate,clk_set_parent (clk[per5_sel], clk[ahb]);/* +* set LCDC base clock (per 7) to highest possible frequency (UPLL) +* to get best resolution for pixel clock +*/ +clk_set_parent (clk[per7_sel], clk[upll]); + +/* * Let's initially set up CLKO parent as ipg, since this configuration * is used on some imx25 board designs to clock the audio codec. */
Signature · 1 line
1.7.10.4
Quoted 13 lines · Carlos Soto
Set LCDC base clock (
per_7) parent clock to UPLL clock. This is needed to allow finer resolution in pixelclockSigned-off-by Carlos Soto <[email protected]>--- drivers/clk/imx/clk-imx25.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/clk/imx/clk-imx25.c +0
-0
drivers/clk/imx/clk-imx25.c static int __init __mx25_clocks_init(unsigned long osc_rate, · line 244
Quoted 7 lines
drivers/clk/imx/clk-imx25.c +4
-0@@ -238,6 +238,12 @@ static int __init __mx25_clocks_init(unsigned long osc_rate,clk_set_parent (clk[per5_sel], clk[ahb]);/* +* set LCDC base clock (per 7) to highest possible frequency (UPLL) +* to get best resolution for pixel clock +*/ +clk_set_parent (clk[per7_sel], clk[upll]);
This can be done in device tree via assigned-clock-parents without the need of touching kernel.
Shawn
Quoted 9 lines
drivers/clk/imx/clk-imx25.c +2
-0+ +/* * Let's initially set up CLKO parent as ipg, since this configuration * is used on some imx25 board designs to clock the audio codec. */ Signature · 1 line
1.7.10.4
2016-01-28 7:32 GMT+01:00 Shawn Guo <[email protected]>:
Quoted 25 lines · Carlos Soto
Quoted 13 lines
Set LCDC base clock (
per_7) parent clock to UPLL clock. This is needed to allow finer resolution in pixelclockSigned-off-by Carlos Soto <[email protected]>--- drivers/clk/imx/clk-imx25.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/clk/imx/clk-imx25.c +0
-0drivers/clk/imx/clk-imx25.c static int __init __mx25_clocks_init(unsigned long osc_rate, · line 244
Quoted 7 lines
drivers/clk/imx/clk-imx25.c +4
-0@@ -238,6 +238,12 @@ static int __init __mx25_clocks_init(unsigned long osc_rate,clk_set_parent (clk[per5_sel], clk[ahb]);/* +* set LCDC base clock (per 7) to highest possible frequency (UPLL) +* to get best resolution for pixel clock +*/ +clk_set_parent (clk[per7_sel], clk[upll]);This can be done in device tree via assigned-clock-parents without the need of touching kernel.
Quoted 2 lines
Shawn
Sorry, I was not aware of this feature. Already tested and it works fine via DT
Thanks for the help
Carlos