Commit 9a217e34 authored by Laurent Pinchart's avatar Laurent Pinchart

fbdev: sh_mobile_lcdc: Split LCDC start code from sh_mobile_lcdc_start

Splitting the LCDC start code from clock, MERAM and panel management
will make the code usable by runtime PM.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent 505c7de5
This diff is collapsed.
...@@ -18,6 +18,13 @@ struct sh_mobile_lcdc_priv; ...@@ -18,6 +18,13 @@ struct sh_mobile_lcdc_priv;
struct fb_info; struct fb_info;
struct backlight_device; struct backlight_device;
/*
* struct sh_mobile_lcdc_chan - LCDC display channel
*
* @base_addr_y: Frame buffer viewport base address (luma component)
* @base_addr_c: Frame buffer viewport base address (chroma component)
* @pitch: Frame buffer line pitch
*/
struct sh_mobile_lcdc_chan { struct sh_mobile_lcdc_chan {
struct sh_mobile_lcdc_priv *lcdc; struct sh_mobile_lcdc_priv *lcdc;
unsigned long *reg_offs; unsigned long *reg_offs;
...@@ -40,6 +47,10 @@ struct sh_mobile_lcdc_chan { ...@@ -40,6 +47,10 @@ struct sh_mobile_lcdc_chan {
int blank_status; int blank_status;
struct mutex open_lock; /* protects the use counter */ struct mutex open_lock; /* protects the use counter */
int meram_enabled; int meram_enabled;
unsigned long base_addr_y;
unsigned long base_addr_c;
unsigned int pitch;
}; };
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment