diff options
Diffstat (limited to 'arch/arm/plat-samsung/include/plat')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/fimd_lite_ext.h | 99 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/keypad.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/pm.h | 1 |
3 files changed, 6 insertions, 100 deletions
diff --git a/arch/arm/plat-samsung/include/plat/fimd_lite_ext.h b/arch/arm/plat-samsung/include/plat/fimd_lite_ext.h deleted file mode 100644 index b4e131a..0000000 --- a/arch/arm/plat-samsung/include/plat/fimd_lite_ext.h +++ /dev/null @@ -1,99 +0,0 @@ -/* linux/arch/arm/plat/mdnie_ext.h - * - * Samsung SoC FIMD Extension Framework Header. - * - * InKi Dae <inki.dae@samsung.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -struct s5p_fimd_ext_device; - -#define fimd_ext_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev) -#define fimd_ext_set_drvdata(_dev, data) dev_set_drvdata(&(_dev)->dev, (data)) - -struct s5p_fimd_dynamic_refresh { - void __iomem *regs; - unsigned int dynamic_refresh; - unsigned int clkdiv; -}; - -/** - * driver structure for fimd extension based driver. - * - * this structure should be registered by any extension driver. - * fimd extension driveer seeks a driver registered through name field - * and calls these callback functions in appropriate time. - */ -struct s5p_fimd_ext_driver { - struct device_driver driver; - - void (*change_clock)(struct s5p_fimd_dynamic_refresh *fimd_refresh, - struct s5p_fimd_ext_device *fx_dev); - void (*set_clock)(struct s5p_fimd_ext_device *fx_dev); - int (*setup)(struct s5p_fimd_ext_device *fx_dev, - unsigned int enable); - void (*power_on)(struct s5p_fimd_ext_device *fx_dev); - void (*power_off)(struct s5p_fimd_ext_device *fx_dev); - int (*start)(struct s5p_fimd_ext_device *fx_dev); - void (*stop)(struct s5p_fimd_ext_device *fx_dev); - int (*probe)(struct s5p_fimd_ext_device *fx_dev); - int (*remove)(struct s5p_fimd_ext_device *fx_dev); - int (*suspend)(struct s5p_fimd_ext_device *fx_dev); - int (*resume)(struct s5p_fimd_ext_device *fx_dev); -}; - -/** - * device structure for fimd extension based driver. - * - * @name: platform device name. - * @dev: driver model representation of the device. - * @id: id of device registered and when device is registered - * id would be counted. - * @num_resources: hardware resource count. - * @resource: a pointer to hardware resource definitions. - * @modalias: name of the driver to use with the device, or an - * alias for that name. - */ -struct s5p_fimd_ext_device { - char *name; - struct device dev; - int id; - unsigned int num_resources; - struct resource *resource; - bool mdnie_enabled; - bool enabled; -}; - -struct mdnie_platform_data { - unsigned int width; - unsigned int height; -}; - -/* workaround: fix it later */ -void s6e8aa0_panel_cond(int high_freq); - -#ifdef CONFIG_MDNIE_SUPPORT -/** - * register extension driver to fimd extension framework. - */ -int s5p_fimd_ext_register(struct s5p_fimd_ext_driver *fx_drv); -int s5p_fimd_ext_device_register(struct s5p_fimd_ext_device *fx_dev); - -/** - * find a driver object registered to fimd extension framework. - */ -struct s5p_fimd_ext_device *s5p_fimd_ext_find_device(const char *name); - -/** - * convert device driver object to fimd extension device. - */ -struct s5p_fimd_ext_driver *to_fimd_ext_driver(struct device_driver *drv); -#else -#define s5p_fimd_ext_register(dev) NULL -#define s5p_fimd_ext_device_register(dev) NULL -#define s5p_fimd_ext_find_device(name) NULL -#define to_fimd_ext_driver(drv) NULL -#endif diff --git a/arch/arm/plat-samsung/include/plat/keypad.h b/arch/arm/plat-samsung/include/plat/keypad.h index b59a648..997220f 100644 --- a/arch/arm/plat-samsung/include/plat/keypad.h +++ b/arch/arm/plat-samsung/include/plat/keypad.h @@ -14,9 +14,13 @@ #define __PLAT_SAMSUNG_KEYPAD_H #include <linux/input/matrix_keypad.h> - +#if defined(CONFIG_MACH_M0_GRANDECTC) || defined(CONFIG_MACH_IRON) +#define SAMSUNG_MAX_ROWS 14 +#define SAMSUNG_MAX_COLS 8 +#else #define SAMSUNG_MAX_ROWS 8 #define SAMSUNG_MAX_COLS 8 +#endif /** * struct samsung_keypad_platdata - Platform device data for Samsung Keypad. diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h index c306634..5a8aa39 100644 --- a/arch/arm/plat-samsung/include/plat/pm.h +++ b/arch/arm/plat-samsung/include/plat/pm.h @@ -46,6 +46,7 @@ extern void (*pm_cpu_sleep)(void); extern void (*pm_cpu_restore)(void); extern int (*pm_prepare)(void); extern void (*pm_finish)(void); +extern unsigned int (*pm_check_eint_pend)(void); /* Flags for PM Control */ |