aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/omap-iommu.h5
-rw-r--r--include/linux/platform_data/media/mmp-camera.h19
-rw-r--r--include/linux/sony-laptop.h4
3 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h
index c1aede46718b..ce1b7c6283ee 100644
--- a/include/linux/omap-iommu.h
+++ b/include/linux/omap-iommu.h
@@ -13,7 +13,12 @@
13#ifndef _OMAP_IOMMU_H_ 13#ifndef _OMAP_IOMMU_H_
14#define _OMAP_IOMMU_H_ 14#define _OMAP_IOMMU_H_
15 15
16#ifdef CONFIG_OMAP_IOMMU
16extern void omap_iommu_save_ctx(struct device *dev); 17extern void omap_iommu_save_ctx(struct device *dev);
17extern void omap_iommu_restore_ctx(struct device *dev); 18extern void omap_iommu_restore_ctx(struct device *dev);
19#else
20static inline void omap_iommu_save_ctx(struct device *dev) {}
21static inline void omap_iommu_restore_ctx(struct device *dev) {}
22#endif
18 23
19#endif 24#endif
diff --git a/include/linux/platform_data/media/mmp-camera.h b/include/linux/platform_data/media/mmp-camera.h
index 83804028115c..d2d3a443eedf 100644
--- a/include/linux/platform_data/media/mmp-camera.h
+++ b/include/linux/platform_data/media/mmp-camera.h
@@ -3,8 +3,27 @@
3 * Information for the Marvell Armada MMP camera 3 * Information for the Marvell Armada MMP camera
4 */ 4 */
5 5
6#include <media/v4l2-mediabus.h>
7
8enum dphy3_algo {
9 DPHY3_ALGO_DEFAULT = 0,
10 DPHY3_ALGO_PXA910,
11 DPHY3_ALGO_PXA2128
12};
13
6struct mmp_camera_platform_data { 14struct mmp_camera_platform_data {
7 struct platform_device *i2c_device; 15 struct platform_device *i2c_device;
8 int sensor_power_gpio; 16 int sensor_power_gpio;
9 int sensor_reset_gpio; 17 int sensor_reset_gpio;
18 enum v4l2_mbus_type bus_type;
19 int mclk_min; /* The minimal value of MCLK */
20 int mclk_src; /* which clock source the MCLK derives from */
21 int mclk_div; /* Clock Divider Value for MCLK */
22 /*
23 * MIPI support
24 */
25 int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */
26 enum dphy3_algo dphy3_algo; /* algos for calculate CSI2_DPHY3 */
27 int lane; /* ccic used lane number; 0 means DVP mode */
28 int lane_clk;
10}; 29};
diff --git a/include/linux/sony-laptop.h b/include/linux/sony-laptop.h
index 1a4b77317fa1..374d0fdb0743 100644
--- a/include/linux/sony-laptop.h
+++ b/include/linux/sony-laptop.h
@@ -28,7 +28,11 @@
28#define SONY_PIC_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */ 28#define SONY_PIC_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */
29#define SONY_PIC_COMMAND_GETCAMERAREVISION 19 /* obsolete */ 29#define SONY_PIC_COMMAND_GETCAMERAREVISION 19 /* obsolete */
30 30
31#if IS_ENABLED(CONFIG_SONY_LAPTOP)
31int sony_pic_camera_command(int command, u8 value); 32int sony_pic_camera_command(int command, u8 value);
33#else
34static inline int sony_pic_camera_command(int command, u8 value) { return 0; };
35#endif
32 36
33#endif /* __KERNEL__ */ 37#endif /* __KERNEL__ */
34 38