gpu: drm: img: Fix to use jh71xx_pmu header
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 9 Jan 2024 08:45:46 +0000 (17:45 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:13:57 +0000 (09:13 +0900)
Fix to use jh71xx_pmu header and sifive_flush64_range.

Change-Id: I9ad7d5f3de347be0f26ceb4633b0125d2a6480ef
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c

index 91f7a4d..9ba5ea3 100644 (file)
@@ -45,7 +45,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <linux/platform_device.h>
 #include <linux/dma-mapping.h>
 #include <linux/interrupt.h>
-#include <soc/starfive/jh7110_pmu.h>
+#include <soc/starfive/jh71xx_pmu.h>
 #endif
 
 #include "pvr_debug.h"
@@ -95,11 +95,11 @@ static void SetFrequency(IMG_UINT32 ui32Frequency) {}
 static void SetVoltage(IMG_UINT32 ui32Volt) {}
 #endif
 
-extern void sifive_l2_flush64_range(unsigned long start, unsigned long len);
+extern void sifive_flush64_range(unsigned long start, unsigned long len);
 
 void do_sifive_l2_flush64_range(unsigned long start, unsigned long len)
 {
-       sifive_l2_flush64_range(ALIGN_DOWN(start, 64), len + start % 64);
+       sifive_flush64_range(ALIGN_DOWN(start, 64), len + start % 64);
 }
 
 void do_invalid_range(unsigned long start, unsigned long len)
@@ -224,7 +224,7 @@ void SysDevHost_Cache_Maintenance(IMG_HANDLE hSysData,
 
 static IMG_UINT32 sys_gpu_runtime_resume(IMG_HANDLE hd)
 {
-       starfive_pmu_hw_event_turn_off_mask(0);
+       jh71xx_pmu_hw_event_turn_off_mask(0);
        clk_prepare_enable(sf_cfg_t.clk_axi);
        u0_img_gpu_enable();
 
@@ -235,7 +235,7 @@ static IMG_UINT32 sys_gpu_runtime_suspend(IMG_HANDLE hd)
 {
        u0_img_gpu_disable();
        clk_disable_unprepare(sf_cfg_t.clk_axi);
-       starfive_pmu_hw_event_turn_off_mask((uint32_t)-1);
+       jh71xx_pmu_hw_event_turn_off_mask((uint32_t)-1);
 
        return 0;
 }