diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2014-06-25 21:05:33 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2014-09-02 08:55:43 -0400 |
commit | fc4353559e587f5962f22c24ca7e015bdbea1e49 (patch) | |
tree | d6093f4bb74c5e5d1f5d3dc869f29197c7f586c6 /drivers/gpu/ipu-v3 | |
parent | 1aa8ea0d2bd5d4ba7b5d2b132a02157bc1fb9793 (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')
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-common.c | 12 | ||||
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-smfc.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c index 312eef6ffcad..f5a4e1ac2b50 100644 --- a/drivers/gpu/ipu-v3/ipu-common.c +++ b/drivers/gpu/ipu-v3/ipu-common.c | |||
@@ -217,18 +217,6 @@ int ipu_module_disable(struct ipu_soc *ipu, u32 mask) | |||
217 | } | 217 | } |
218 | EXPORT_SYMBOL_GPL(ipu_module_disable); | 218 | EXPORT_SYMBOL_GPL(ipu_module_disable); |
219 | 219 | ||
220 | int ipu_smfc_enable(struct ipu_soc *ipu) | ||
221 | { | ||
222 | return ipu_module_enable(ipu, IPU_CONF_SMFC_EN); | ||
223 | } | ||
224 | EXPORT_SYMBOL_GPL(ipu_smfc_enable); | ||
225 | |||
226 | int ipu_smfc_disable(struct ipu_soc *ipu) | ||
227 | { | ||
228 | return ipu_module_disable(ipu, IPU_CONF_SMFC_EN); | ||
229 | } | ||
230 | EXPORT_SYMBOL_GPL(ipu_smfc_disable); | ||
231 | |||
232 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel) | 220 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel) |
233 | { | 221 | { |
234 | struct ipu_soc *ipu = channel->ipu; | 222 | struct ipu_soc *ipu = channel->ipu; |
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_ | |||
71 | } | 71 | } |
72 | EXPORT_SYMBOL_GPL(ipu_smfc_map_channel); | 72 | EXPORT_SYMBOL_GPL(ipu_smfc_map_channel); |
73 | 73 | ||
74 | int ipu_smfc_enable(struct ipu_soc *ipu) | ||
75 | { | ||
76 | return ipu_module_enable(ipu, IPU_CONF_SMFC_EN); | ||
77 | } | ||
78 | EXPORT_SYMBOL_GPL(ipu_smfc_enable); | ||
79 | |||
80 | int ipu_smfc_disable(struct ipu_soc *ipu) | ||
81 | { | ||
82 | return ipu_module_disable(ipu, IPU_CONF_SMFC_EN); | ||
83 | } | ||
84 | EXPORT_SYMBOL_GPL(ipu_smfc_disable); | ||
85 | |||
74 | int ipu_smfc_init(struct ipu_soc *ipu, struct device *dev, | 86 | int ipu_smfc_init(struct ipu_soc *ipu, struct device *dev, |
75 | unsigned long base) | 87 | unsigned long base) |
76 | { | 88 | { |