From: Larry Li Date: Mon, 25 Jun 2012 08:09:23 +0000 (+0800) Subject: ENGR00214791-2 [MX6] GalCore gets baseAddress parameter for kernel X-Git-Tag: v3.0.35-fsl~861 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5762424635c11512d59269fcf11dbf5bd3e851ec;p=karo-tx-linux.git ENGR00214791-2 [MX6] GalCore gets baseAddress parameter for kernel Galcore reads baseAddress parameter from GPU resource set by kernel Signed-off-by: Larry Li Acked-by: Lily Zhang --- 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;