diff options
author | Dinh Nguyen <Dinh.Nguyen@freescale.com> | 2010-03-18 14:44:36 -0500 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:20:13 +0200 |
commit | f5f6182ae75da1981f3fc50798a630af5e63349e (patch) | |
tree | fed37b15423c2d880c908f2467273bb9894d6561 /drivers | |
parent | fe5f8e57cebd49332675067f969ed232465abb4c (diff) |
ENGR00121656 MX53: Add support for VPU
Add support for VPU on MX53 EVK board.
Signed-off-by: Rob Herring <r.herring@freescale.com>
Signed-off-by: Sammy He <r62914@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mxc/vpu/mxc_vpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c index a9b0cb4ed1fe..b9ae23928c5d 100644 --- a/drivers/mxc/vpu/mxc_vpu.c +++ b/drivers/mxc/vpu/mxc_vpu.c @@ -73,6 +73,7 @@ static struct vpu_mem_desc user_data_mem = { 0 }; static struct vpu_mem_desc share_mem = { 0 }; static void __iomem *vpu_base; +static u32 phy_vpu_base_addr; static struct mxc_vpu_platform_data *vpu_plat; /* IRAM setting */ @@ -517,7 +518,7 @@ static int vpu_map_hwregs(struct file *fp, struct vm_area_struct *vm) vm->vm_flags |= VM_IO | VM_RESERVED; vm->vm_page_prot = pgprot_noncached(vm->vm_page_prot); - pfn = VPU_BASE_ADDR >> PAGE_SHIFT; + pfn = phy_vpu_base_addr >> PAGE_SHIFT; pr_debug("size=0x%x, page no.=0x%x\n", (int)(vm->vm_end - vm->vm_start), (int)pfn); return remap_pfn_range(vm, vm->vm_start, pfn, vm->vm_end - vm->vm_start, @@ -599,6 +600,7 @@ static int vpu_dev_probe(struct platform_device *pdev) printk(KERN_ERR "vpu: unable to get vpu base addr\n"); return -ENODEV; } + phy_vpu_base_addr = res->start; vpu_base = ioremap(res->start, res->end - res->start); vpu_major = register_chrdev(vpu_major, "mxc_vpu", &vpu_fops); |