Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261978
b: refs/heads/master
c: 9ede365
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Aug 1, 2011
1 parent 3d15c40 commit f482b1a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69f06054aad122b314cd64fdafdf14fc3b8e5b7c
refs/heads/master: 9ede365aa6f74428a1f69c21ca1cf21213167576
5 changes: 4 additions & 1 deletion trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4435,7 +4435,10 @@ static int dsi_get_clocks(struct platform_device *dsidev)

dsi->dss_clk = clk;

clk = clk_get(&dsidev->dev, "sys_clk");
if (cpu_is_omap34xx() || cpu_is_omap3630())
clk = clk_get(&dsidev->dev, "dss2_alwon_fck");
else
clk = clk_get(&dsidev->dev, "sys_clk");
if (IS_ERR(clk)) {
DSSERR("can't get sys_clk\n");
clk_put(dsi->dss_clk);
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,11 @@ static void dss_put_clocks(void)
clk_put(dss.dss_clk);
}

struct clk *dss_get_ick(void)
{
return clk_get(&dss.pdev->dev, "ick");
}

int dss_runtime_get(void)
{
int r;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/video/omap2/dss/dss.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ void dss_uninit_platform_driver(void);
int dss_runtime_get(void);
void dss_runtime_put(void);

struct clk *dss_get_ick(void);

void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select);
const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src);
void dss_dump_clocks(struct seq_file *s);
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/video/omap2/dss/rfbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,10 @@ static int omap_rfbihw_probe(struct platform_device *pdev)

msleep(10);

clk = clk_get(&pdev->dev, "ick");
if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap3630())
clk = dss_get_ick();
else
clk = clk_get(&pdev->dev, "ick");
if (IS_ERR(clk)) {
DSSERR("can't get ick\n");
r = PTR_ERR(clk);
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/video/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,10 @@ static int venc_get_clocks(struct platform_device *pdev)
venc.tv_clk = clk;

if (dss_has_feature(FEAT_VENC_REQUIRES_TV_DAC_CLK)) {
clk = clk_get(&pdev->dev, "tv_dac_clk");
if (cpu_is_omap34xx() || cpu_is_omap3630())
clk = clk_get(&pdev->dev, "dss_96m_fck");
else
clk = clk_get(&pdev->dev, "tv_dac_clk");
if (IS_ERR(clk)) {
DSSERR("can't get tv_dac_clk\n");
clk_put(venc.tv_clk);
Expand Down

0 comments on commit f482b1a

Please sign in to comment.