gpu: drm: img: Fix to use jh71xx_pmu header 46/320146/4
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 9 Jan 2024 08:45:46 +0000 (17:45 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 8 Nov 2024 07:18:59 +0000 (08:18 +0100)
Fix to use jh71xx_pmu header and sifive_flush64_range.

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I672d3ddef84ffbdf98f4afd4d4641e5f4cb0768f

drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c

index 00c1cbc5910b5b517b1b370a0a008df976c3b274..bb79e7e110784c3887ed280b9ba2be31ddb863a2 100755 (executable)
@@ -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"
@@ -96,11 +96,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)
@@ -223,7 +223,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();
 
@@ -233,7 +233,7 @@ static IMG_UINT32 sys_gpu_runtime_resume(IMG_HANDLE hd)
 static IMG_UINT32 sys_gpu_runtime_suspend(IMG_HANDLE hd)
 {
        u0_img_gpu_disable();
-       starfive_pmu_hw_event_turn_off_mask((uint32_t)-1);
+       jh71xx_pmu_hw_event_turn_off_mask((uint32_t)-1);
 
        return 0;
 }