diff options
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/fb.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/fb.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/fb.h b/arch/arm/plat-samsung/include/plat/fb.h index cb3ca3a..2e1813f 100644 --- a/arch/arm/plat-samsung/include/plat/fb.h +++ b/arch/arm/plat-samsung/include/plat/fb.h @@ -15,6 +15,8 @@ #ifndef __PLAT_S3C_FB_H #define __PLAT_S3C_FB_H __FILE__ +#include <plat/gpio-cfg.h> + /* S3C_FB_MAX_WIN * Set to the maximum number of windows that any of the supported hardware * can use. Since the platform data uses this for an array size, having it @@ -22,11 +24,28 @@ */ #define S3C_FB_MAX_WIN (5) +#if defined(CONFIG_MACH_P11) || defined(CONFIG_MACH_P10) +/* IOCTL commands */ +#define S3CFB_WIN_POSITION _IOW('F', 203, \ + struct s3c_fb_user_window) +#define S3CFB_WIN_SET_PLANE_ALPHA _IOW('F', 204, \ + struct s3c_fb_user_plane_alpha) +#define S3CFB_WIN_SET_CHROMA _IOW('F', 205, \ + struct s3c_fb_user_chroma) +#define S3CFB_SET_VSYNC_INT _IOW('F', 206, u32) + +#define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, \ + struct s3c_fb_user_ion_client) +#define S3CFB_PAN_DISPLAY_INDEX _IOW('F', 209, __u32) + +#endif /** * struct s3c_fb_pd_win - per window setup data * @win_mode: The display parameters to initialise (not for window 0) * @virtual_x: The virtual X size. * @virtual_y: The virtual Y size. + * @width: The width of display in mm + * @height: The height of display in mm */ struct s3c_fb_pd_win { struct fb_videomode win_mode; @@ -35,6 +54,8 @@ struct s3c_fb_pd_win { unsigned short max_bpp; unsigned short virtual_x; unsigned short virtual_y; + unsigned short width; + unsigned short height; }; /** @@ -74,6 +95,22 @@ struct s3c_fb_platdata { extern void s3c_fb_set_platdata(struct s3c_fb_platdata *pd); /** + * s5p_fimd0_set_platdata() - Setup the FB device with platform data. + * @pd: The platform data to set. The data is copied from the passed structure + * so the machine data can mark the data __initdata so that any unused + * machines will end up dumping their data at runtime. + */ +extern void s5p_fimd0_set_platdata(struct s3c_fb_platdata *pd); + +/** + * s5p_fimd1_set_platdata() - Setup the FB device with platform data. + * @pd: The platform data to set. The data is copied from the passed structure + * so the machine data can mark the data __initdata so that any unused + * machines will end up dumping their data at runtime. + */ +extern void s5p_fimd1_set_platdata(struct s3c_fb_platdata *pd); + +/** * s3c64xx_fb_gpio_setup_24bpp() - S3C64XX setup function for 24bpp LCD * * Initialise the GPIO for an 24bpp LCD display on the RGB interface. @@ -94,4 +131,30 @@ extern void s5pc100_fb_gpio_setup_24bpp(void); */ extern void s5pv210_fb_gpio_setup_24bpp(void); +/** + * exynos4_fimd0_gpio_setup_24bpp() - Exynos4 setup function for 24bpp LCD0 + * + * Initialise the GPIO for an 24bpp LCD display on the RGB interface 0. + */ +extern void exynos4_fimd0_gpio_setup_24bpp(void); + +/** + * exynos4_fimd_cfg_gpios() - Exynos4 setup function for 24bpp LCD + * + * Initialise the GPIO for an 24bpp LCD display on the RGB interface. + */ +extern void exynos4_fimd_cfg_gpios(unsigned int base, unsigned int nr, + unsigned int cfg, s5p_gpio_drvstr_t drvstr); + +/** + * exynos4_fimd0_setup_clock() = Exynos4 setup function for parent clock. + * @dev: device pointer + * @parent: parent clock used for LCD pixel clock + * @clk_rate: clock rate for parent clock + */ +int __init exynos4_fimd0_setup_clock(struct device *dev, const char *parent, + unsigned long clk_rate); + +int __init exynos4_fimd_setup_clock(struct device *dev, const char *bus_clk, + const char *parent, unsigned long clk_rate); #endif /* __PLAT_S3C_FB_H */ |