add the arch code for APBH-DMA.
Signed-off-by: Huang Shijie <b32955@freescale.com>
_REGISTER_CLOCK(NULL, "hsi_tx", hsi_tx_clk),
_REGISTER_CLOCK(NULL, "caam_clk", caam_clk[0]),
_REGISTER_CLOCK(NULL, "asrc_clk", asrc_clk),
- _REGISTER_CLOCK(NULL, "apbh_dma_clk", apbh_dma_clk),
+ _REGISTER_CLOCK("mxs-dma-apbh", NULL, apbh_dma_clk),
_REGISTER_CLOCK(NULL, "openvg_axi_clk", openvg_axi_clk),
_REGISTER_CLOCK(NULL, "gpu3d_clk", gpu3d_core_clk),
_REGISTER_CLOCK(NULL, "gpu2d_clk", gpu2d_core_clk),
#define imx6q_add_anatop_thermal_imx(id, pdata) \
imx_add_anatop_thermal_imx(&imx6q_anatop_thermal_imx_data, pdata)
+extern const struct imx_dma_data imx6q_dma_data __initconst;
+#define imx6q_add_dma() imx_add_dma(&imx6q_dma_data);
+
#define imx6q_add_gpmi(platform_data) imx_add_gpmi(platform_data);
extern const struct imx_fec_data imx6q_fec_data __initconst;
#include <linux/err.h>
#include <linux/init.h>
-#include <mach/mx50.h>
+#include <mach/hardware.h>
#include <mach/devices-common.h>
#ifdef CONFIG_SOC_IMX50
};
#endif
+#ifdef CONFIG_SOC_IMX6Q
+const struct imx_dma_data imx6q_dma_data __initconst = {
+ .iobase = APBH_DMA_ARB_BASE_ADDR,
+};
+#endif
+
struct platform_device *__init imx_add_dma(
const struct imx_dma_data *data)
{
!strcmp(dev_name(chan->device->dev), "imx-dma");
}
+struct mxs_dma_data {
+ int chan_irq;
+};
+
+static inline int mxs_dma_is_apbh(struct dma_chan *chan)
+{
+ return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh");
+}
+
+static inline int mxs_dma_is_apbx(struct dma_chan *chan)
+{
+ return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx");
+}
+
+
#endif