diff options
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-common.c | 24 | ||||
-rw-r--r-- | include/video/imx-ipu-v3.h | 8 |
2 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c index 9459f4091a27..1442b9e1cf8d 100644 --- a/drivers/gpu/ipu-v3/ipu-common.c +++ b/drivers/gpu/ipu-v3/ipu-common.c | |||
@@ -661,6 +661,30 @@ int ipu_module_disable(struct ipu_soc *ipu, u32 mask) | |||
661 | } | 661 | } |
662 | EXPORT_SYMBOL_GPL(ipu_module_disable); | 662 | EXPORT_SYMBOL_GPL(ipu_module_disable); |
663 | 663 | ||
664 | int ipu_csi_enable(struct ipu_soc *ipu, int csi) | ||
665 | { | ||
666 | return ipu_module_enable(ipu, csi ? IPU_CONF_CSI1_EN : IPU_CONF_CSI0_EN); | ||
667 | } | ||
668 | EXPORT_SYMBOL_GPL(ipu_csi_enable); | ||
669 | |||
670 | int ipu_csi_disable(struct ipu_soc *ipu, int csi) | ||
671 | { | ||
672 | return ipu_module_disable(ipu, csi ? IPU_CONF_CSI1_EN : IPU_CONF_CSI0_EN); | ||
673 | } | ||
674 | EXPORT_SYMBOL_GPL(ipu_csi_disable); | ||
675 | |||
676 | int ipu_smfc_enable(struct ipu_soc *ipu) | ||
677 | { | ||
678 | return ipu_module_enable(ipu, IPU_CONF_SMFC_EN); | ||
679 | } | ||
680 | EXPORT_SYMBOL_GPL(ipu_smfc_enable); | ||
681 | |||
682 | int ipu_smfc_disable(struct ipu_soc *ipu) | ||
683 | { | ||
684 | return ipu_module_disable(ipu, IPU_CONF_SMFC_EN); | ||
685 | } | ||
686 | EXPORT_SYMBOL_GPL(ipu_smfc_disable); | ||
687 | |||
664 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel) | 688 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel) |
665 | { | 689 | { |
666 | struct ipu_soc *ipu = channel->ipu; | 690 | struct ipu_soc *ipu = channel->ipu; |
diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index f3714301d740..fe6053e6ae6d 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h | |||
@@ -162,8 +162,16 @@ int ipu_dp_set_global_alpha(struct ipu_dp *dp, bool enable, u8 alpha, | |||
162 | bool bg_chan); | 162 | bool bg_chan); |
163 | 163 | ||
164 | /* | 164 | /* |
165 | * IPU CMOS Sensor Interface (csi) functions | ||
166 | */ | ||
167 | int ipu_csi_enable(struct ipu_soc *ipu, int csi); | ||
168 | int ipu_csi_disable(struct ipu_soc *ipu, int csi); | ||
169 | |||
170 | /* | ||
165 | * IPU Sensor Multiple FIFO Controller (SMFC) functions | 171 | * IPU Sensor Multiple FIFO Controller (SMFC) functions |
166 | */ | 172 | */ |
173 | int ipu_smfc_enable(struct ipu_soc *ipu); | ||
174 | int ipu_smfc_disable(struct ipu_soc *ipu); | ||
167 | int ipu_smfc_map_channel(struct ipu_soc *ipu, int channel, int csi_id, int mipi_id); | 175 | int ipu_smfc_map_channel(struct ipu_soc *ipu, int channel, int csi_id, int mipi_id); |
168 | int ipu_smfc_set_burstsize(struct ipu_soc *ipu, int channel, int burstsize); | 176 | int ipu_smfc_set_burstsize(struct ipu_soc *ipu, int channel, int burstsize); |
169 | 177 | ||