diff options
author | Larry Li <b20787@freescale.com> | 2012-06-25 16:09:23 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:39:06 +0800 |
commit | d76e8df52d250face884a8fb4f243685ebc77dbe (patch) | |
tree | 9920d3c205c61be1ee07c1758982f5a05d84ef74 /drivers/mxc/gpu-viv | |
parent | 6eb361a842cded0c8966a6fb356cdc3df15d210e (diff) |
ENGR00214791-2 [MX6] GalCore gets baseAddress parameter for kernel
Galcore reads baseAddress parameter from GPU resource set by kernel
Signed-off-by: Larry Li <b20787@freescale.com>
Acked-by: Lily Zhang
Diffstat (limited to 'drivers/mxc/gpu-viv')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c index 1786d09ba878..24775adca512 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c @@ -929,6 +929,10 @@ static int __devinit gpu_probe(struct platform_device *pdev) gcmkHEADER(); + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phys_baseaddr"); + if (res) + baseAddress = res->start; + res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "irq_3d"); if (res) irqLine = res->start; |