This patch is dma micro code allocation in special memory area.
Change-Id: Ic40c162e3a6ec317e70d8af675304304f2e5886c
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
{
int chans = pl330->pcfg.num_chan;
int ret;
+ dma_addr_t addr;
+
+ if (pl330->ddma.dev->of_node) {
+ addr = of_dma_get_mcode_addr(pl330->ddma.dev->of_node);
+ if (addr) {
+ set_dma_ops(pl330->ddma.dev, &arm_exynos_dma_mcode_ops);
+ pl330->mcode_bus = addr;
+ }
+ }
/*
* Alloc MicroCode buffer for 'chans' Channel threads.
pd = &pl330->ddma;
pd->dev = &adev->dev;
- pl330->mcbufsz = 0;
/* get quirk */
for (i = 0; i < ARRAY_SIZE(of_quirks); i++)