diff options
author | Robby Cai <R63905@freescale.com> | 2010-01-26 10:41:08 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2010-01-28 14:32:27 +0800 |
commit | 907b5e6ca83a680c3fdbf856dd74d5f99303714c (patch) | |
tree | d8c9494392faa9f926955234fbd239df709147d5 /arch/arm/mach-stmp378x | |
parent | 4c5d043d64664c8ecdc805dc7e096fafcb9e551f (diff) |
ENGR00120447-1 Change the LCDIF clock setting for TVEnc to work
Need this adjust because set_rate of lcdif changed.
Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'arch/arm/mach-stmp378x')
-rw-r--r-- | arch/arm/mach-stmp378x/tvenc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/mach-stmp378x/tvenc.c b/arch/arm/mach-stmp378x/tvenc.c index 85697b4a05c1..e409511c78c0 100644 --- a/arch/arm/mach-stmp378x/tvenc.c +++ b/arch/arm/mach-stmp378x/tvenc.c @@ -3,7 +3,7 @@ * * Embedded Alley Solutions, Inc <source@embeddedalley.com> * - * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2008-2010 Freescale Semiconductor, Inc. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ @@ -165,10 +165,8 @@ static int init_panel(struct device *dev, dma_addr_t phys, int memsize, clk_enable(lcd_clk); clk_set_rate(lcd_clk, 1000000 / pentry->cycle_time_ns); /* kHz */ - clk_ref_vid = clk_get(NULL, "ref_vid"); clk_tv108M_ng = clk_get(NULL, "tv108M_ng"); clk_tv27M = clk_get(NULL, "tv27M"); - clk_enable(clk_ref_vid); clk_enable(clk_tv108M_ng); clk_enable(clk_tv27M); @@ -198,11 +196,9 @@ static void release_panel(struct device *dev, stmp3xxx_lcdif_dma_release(); - clk_disable(clk_ref_vid); clk_disable(clk_tv108M_ng); clk_disable(clk_tv27M); clk_disable(lcd_clk); - clk_put(clk_ref_vid); clk_put(clk_tv108M_ng); clk_put(clk_tv27M); clk_put(lcd_clk); @@ -247,7 +243,7 @@ static struct stmp3xxx_platform_fb_entry ntsc_fb_entry = { .y_res = NTSC_X_RES, .bpp = 32, /* the pix_clk should be near 27Mhz for proper syncronization */ - .cycle_time_ns = 74, + .cycle_time_ns = 37, .lcd_type = STMP3XXX_LCD_PANEL_DVI, .init_panel = init_panel, .release_panel = release_panel, @@ -263,7 +259,7 @@ static struct stmp3xxx_platform_fb_entry pal_fb_entry = { .y_res = PAL_X_RES, .bpp = 32, /* the pix_clk should be near 27Mhz for proper syncronization */ - .cycle_time_ns = 74, + .cycle_time_ns = 37, .lcd_type = STMP3XXX_LCD_PANEL_DVI, .init_panel = init_panel, .release_panel = release_panel, |