use public pysical addrass define.
authorKasin Lee <kasin.li@amlogic.com>
Mon, 9 Sep 2013 07:10:02 +0000 (15:10 +0800)
committerKasin Lee <kasin.li@amlogic.com>
Mon, 9 Sep 2013 07:10:02 +0000 (15:10 +0800)
mali/platform/meson8/meson_main.c

index 54a58f66477872e81e7281f43afcb08013426d9d..2db55735afb384502e2d009739ee1d360059d035 100755 (executable)
@@ -41,13 +41,10 @@ static DEFINE_SPINLOCK(lock);
 
 void mali_gpu_utilization_callback(struct mali_gpu_utilization_data *data);
 
-
-#define MALI_CTRL_ADDR 0xd00c0000
-
 static struct resource mali_gpu_resources_m450[] =
 {
 #if 1
-       MALI_GPU_RESOURCES_MALI450_MP6_PMU(MALI_CTRL_ADDR, INT_MALI_GP, INT_MALI_GP_MMU, 
+       MALI_GPU_RESOURCES_MALI450_MP6_PMU(IO_MALI_APB_PHY_BASE, INT_MALI_GP, INT_MALI_GP_MMU, 
                                INT_MALI_PP0, INT_MALI_PP0_MMU, 
                                INT_MALI_PP1, INT_MALI_PP1_MMU, 
                                INT_MALI_PP2, INT_MALI_PP2_MMU, 
@@ -56,7 +53,7 @@ static struct resource mali_gpu_resources_m450[] =
                                INT_MALI_PP5, INT_MALI_PP5_MMU,
                                INT_MALI_PP)
 #else 
-MALI_GPU_RESOURCES_MALI450_MP2_PMU(MALI_CTRL_ADDR, INT_MALI_GP, INT_MALI_GP_MMU, 
+MALI_GPU_RESOURCES_MALI450_MP2_PMU(IO_MALI_APB_PHY_BASE, INT_MALI_GP, INT_MALI_GP_MMU, 
                                INT_MALI_PP0, INT_MALI_PP0_MMU, 
                                INT_MALI_PP1, INT_MALI_PP1_MMU, 
                                INT_MALI_PP)