summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2024-01-09 17:45:46 +0900
committerMarek Szyprowski <m.szyprowski@samsung.com>2024-11-08 08:18:59 +0100
commitaeb9547aff5a4741fcd0db108b38805c3f803cbd (patch)
tree3824e7aa189b697cfcb76e3d3a67c44cdb3ca4a7
parentf92e86f164480c542507e7076625da9f326bb822 (diff)
downloadlinux-starfive-aeb9547aff5a4741fcd0db108b38805c3f803cbd.tar.gz
linux-starfive-aeb9547aff5a4741fcd0db108b38805c3f803cbd.tar.bz2
linux-starfive-aeb9547aff5a4741fcd0db108b38805c3f803cbd.zip
gpu: drm: img: Fix to use jh71xx_pmu header
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
-rwxr-xr-xdrivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c b/drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c
index 00c1cbc5910b..bb79e7e11078 100755
--- a/drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c
+++ b/drivers/gpu/drm/img/img-rogue/services/system/rogue/sf_7110/sysconfig.c
@@ -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;
}