提交 fc435355 编写于 作者: S Steve Longerbeam 提交者: Philipp Zabel

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: NSteve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 1aa8ea0d
...@@ -217,18 +217,6 @@ int ipu_module_disable(struct ipu_soc *ipu, u32 mask) ...@@ -217,18 +217,6 @@ int ipu_module_disable(struct ipu_soc *ipu, u32 mask)
} }
EXPORT_SYMBOL_GPL(ipu_module_disable); EXPORT_SYMBOL_GPL(ipu_module_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) int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel)
{ {
struct ipu_soc *ipu = channel->ipu; struct ipu_soc *ipu = channel->ipu;
......
...@@ -71,6 +71,18 @@ int ipu_smfc_map_channel(struct ipu_soc *ipu, int channel, int csi_id, int mipi_ ...@@ -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); 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, int ipu_smfc_init(struct ipu_soc *ipu, struct device *dev,
unsigned long base) unsigned long base)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册