summaryrefslogtreecommitdiff
path: root/drivers/gpu/ipu-v3/ipu-smfc.c
diff options
context:
space:
mode:
authorSteve Longerbeam <slongerbeam@gmail.com>2014-06-25 18:05:33 -0700
committerPhilipp Zabel <p.zabel@pengutronix.de>2014-09-02 14:55:43 +0200
commitfc4353559e587f5962f22c24ca7e015bdbea1e49 (patch)
treed6093f4bb74c5e5d1f5d3dc869f29197c7f586c6 /drivers/gpu/ipu-v3/ipu-smfc.c
parent1aa8ea0d2bd5d4ba7b5d2b132a02157bc1fb9793 (diff)
gpu: ipu-v3: smfc: Move enable/disable to ipu-smfc.c
Move the SMFC module enable/disable helpers into the ipu-smfc submodule. Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/ipu-v3/ipu-smfc.c')
-rw-r--r--drivers/gpu/ipu-v3/ipu-smfc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-smfc.c b/drivers/gpu/ipu-v3/ipu-smfc.c
index e4f85ad286fc..87ac624dd7ca 100644
--- a/drivers/gpu/ipu-v3/ipu-smfc.c
+++ b/drivers/gpu/ipu-v3/ipu-smfc.c
@@ -71,6 +71,18 @@ int ipu_smfc_map_channel(struct ipu_soc *ipu, int channel, int csi_id, int mipi_
}
EXPORT_SYMBOL_GPL(ipu_smfc_map_channel);
+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_smfc_init(struct ipu_soc *ipu, struct device *dev,
unsigned long base)
{