Merge branch 'common/fbdev-mipi' of master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6
This commit is contained in:
@@ -514,6 +514,7 @@ static struct resource mipidsi0_resources[] = {
|
||||
static struct sh_mipi_dsi_info mipidsi0_info = {
|
||||
.data_format = MIPI_RGB888,
|
||||
.lcd_chan = &lcdc_info.ch[0],
|
||||
.vsynw_offset = 17,
|
||||
};
|
||||
|
||||
static struct platform_device mipidsi0_device = {
|
||||
@@ -526,44 +527,6 @@ static struct platform_device mipidsi0_device = {
|
||||
},
|
||||
};
|
||||
|
||||
/* This function will disappear when we switch to (runtime) PM */
|
||||
static int __init ap4evb_init_display_clk(void)
|
||||
{
|
||||
struct clk *lcdc_clk;
|
||||
struct clk *dsitx_clk;
|
||||
int ret;
|
||||
|
||||
lcdc_clk = clk_get(&lcdc_device.dev, "sh_mobile_lcdc_fb.0");
|
||||
if (IS_ERR(lcdc_clk))
|
||||
return PTR_ERR(lcdc_clk);
|
||||
|
||||
dsitx_clk = clk_get(&mipidsi0_device.dev, "sh-mipi-dsi.0");
|
||||
if (IS_ERR(dsitx_clk)) {
|
||||
ret = PTR_ERR(dsitx_clk);
|
||||
goto eclkdsitxget;
|
||||
}
|
||||
|
||||
ret = clk_enable(lcdc_clk);
|
||||
if (ret < 0)
|
||||
goto eclklcdcon;
|
||||
|
||||
ret = clk_enable(dsitx_clk);
|
||||
if (ret < 0)
|
||||
goto eclkdsitxon;
|
||||
|
||||
return 0;
|
||||
|
||||
eclkdsitxon:
|
||||
clk_disable(lcdc_clk);
|
||||
eclklcdcon:
|
||||
clk_put(dsitx_clk);
|
||||
eclkdsitxget:
|
||||
clk_put(lcdc_clk);
|
||||
|
||||
return ret;
|
||||
}
|
||||
device_initcall(ap4evb_init_display_clk);
|
||||
|
||||
static struct platform_device *qhd_devices[] __initdata = {
|
||||
&mipidsi0_device,
|
||||
&keysc_device,
|
||||
|
||||
Reference in New Issue
Block a user