|
@@ -661,6 +661,30 @@ int ipu_module_disable(struct ipu_soc *ipu, u32 mask)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(ipu_module_disable);
|
|
|
|
|
|
+int ipu_csi_enable(struct ipu_soc *ipu, int csi)
|
|
|
+{
|
|
|
+ return ipu_module_enable(ipu, csi ? IPU_CONF_CSI1_EN : IPU_CONF_CSI0_EN);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(ipu_csi_enable);
|
|
|
+
|
|
|
+int ipu_csi_disable(struct ipu_soc *ipu, int csi)
|
|
|
+{
|
|
|
+ return ipu_module_disable(ipu, csi ? IPU_CONF_CSI1_EN : IPU_CONF_CSI0_EN);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(ipu_csi_disable);
|
|
|
+
|
|
|
+int ipu_smfc_enable(struct ipu_soc *ipu)
|
|
|
+{
|
|
|
+ return ipu_module_enable(ipu, IPU_CONF_SMFC_EN);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(ipu_smfc_enable);
|
|
|
+
|
|
|
+int ipu_smfc_disable(struct ipu_soc *ipu)
|
|
|
+{
|
|
|
+ return ipu_module_disable(ipu, IPU_CONF_SMFC_EN);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(ipu_smfc_disable);
|
|
|
+
|
|
|
int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel)
|
|
|
{
|
|
|
struct ipu_soc *ipu = channel->ipu;
|