diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/omap-iommu.h | 5 | ||||
| -rw-r--r-- | include/linux/platform_data/media/mmp-camera.h | 19 | ||||
| -rw-r--r-- | include/linux/sony-laptop.h | 4 |
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 | ||
| 16 | extern void omap_iommu_save_ctx(struct device *dev); | 17 | extern void omap_iommu_save_ctx(struct device *dev); |
| 17 | extern void omap_iommu_restore_ctx(struct device *dev); | 18 | extern void omap_iommu_restore_ctx(struct device *dev); |
| 19 | #else | ||
| 20 | static inline void omap_iommu_save_ctx(struct device *dev) {} | ||
| 21 | static 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 | |||
| 8 | enum dphy3_algo { | ||
| 9 | DPHY3_ALGO_DEFAULT = 0, | ||
| 10 | DPHY3_ALGO_PXA910, | ||
| 11 | DPHY3_ALGO_PXA2128 | ||
| 12 | }; | ||
| 13 | |||
| 6 | struct mmp_camera_platform_data { | 14 | struct 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) | ||
| 31 | int sony_pic_camera_command(int command, u8 value); | 32 | int sony_pic_camera_command(int command, u8 value); |
| 33 | #else | ||
| 34 | static inline int sony_pic_camera_command(int command, u8 value) { return 0; }; | ||
| 35 | #endif | ||
| 32 | 36 | ||
| 33 | #endif /* __KERNEL__ */ | 37 | #endif /* __KERNEL__ */ |
| 34 | 38 | ||
