Commit b87347f7 authored by Imre Deak's avatar Imre Deak Committed by Juha Yrjola

ARM: OMAP: FB: add controller platform data

Signed-off-by: default avatarImre Deak <imre.deak@solidboot.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent afdf472d
...@@ -95,6 +95,11 @@ void omapfb_reserve_mem(void) ...@@ -95,6 +95,11 @@ void omapfb_reserve_mem(void)
} }
void omapfb_set_ctrl_platform_data(void *data)
{
omapfb_config.ctrl_platform_data = data;
}
static inline int omap_init_fb(void) static inline int omap_init_fb(void)
{ {
const struct omap_lcd_config *conf; const struct omap_lcd_config *conf;
......
...@@ -323,6 +323,7 @@ struct omapfb_device { ...@@ -323,6 +323,7 @@ struct omapfb_device {
struct omapfb_platform_data { struct omapfb_platform_data {
struct omap_lcd_config lcd; struct omap_lcd_config lcd;
struct omapfb_mem_desc mem_desc; struct omapfb_mem_desc mem_desc;
void *ctrl_platform_data;
}; };
#ifdef CONFIG_ARCH_OMAP1 #ifdef CONFIG_ARCH_OMAP1
...@@ -344,8 +345,9 @@ extern int omapfb_update_window_async(struct fb_info *fbi, ...@@ -344,8 +345,9 @@ extern int omapfb_update_window_async(struct fb_info *fbi,
void (*callback)(void *), void (*callback)(void *),
void *callback_data); void *callback_data);
/* in arch/arm/plat-omap/devices.c */ /* in arch/arm/plat-omap/fb.c */
extern void omapfb_reserve_mem(void); extern void omapfb_reserve_mem(void);
extern void omapfb_set_ctrl_platform_data(void *pdata);
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
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