Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 933eb989 authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Separate out A6xx GMU specific code



A6xx GPU has different GMUs, which requires a different
set of sequence programming. Move A6xx GMU specific code
to separate file, so that it's easy and scalable to fit
new kind of GMU in existing driver.

Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
Change-Id: I7773b1626a8fa6036dda06753466d2c822960096
parent 42123387
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ msm_adreno-y += \
	adreno_a4xx_preempt.o \
	adreno_a5xx_preempt.o \
	adreno_a6xx_preempt.o \
	adreno_a6xx_gmu.o \
	adreno_sysfs.o \
	adreno.o \
	adreno_cp_parser.o \
+14 −1222

File changed.

Preview size limit exceeded, changes collapsed.

+14 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -131,6 +131,18 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,
		struct kgsl_snapshot *snapshot);
void a6xx_snapshot_gmu(struct adreno_device *adreno_dev,
		struct kgsl_snapshot *snapshot);

void a6xx_crashdump_init(struct adreno_device *adreno_dev);

int a6xx_gmu_oob_set(struct adreno_device *adreno_dev, enum oob_request req);
void a6xx_gmu_oob_clear(struct adreno_device *adreno_dev, enum oob_request req);
void a6xx_gmu_enable_lm(struct kgsl_device *device);
int a6xx_gmu_load_firmware(struct kgsl_device *device);
int a6xx_gmu_rpmh_gpu_pwrctrl(struct adreno_device *adreno_dev,
		unsigned int mode, unsigned int arg1, unsigned int arg2);
int a6xx_gmu_wait_for_lowest_idle(struct adreno_device *adreno_dev);
int a6xx_gmu_wait_for_idle(struct adreno_device *adreno_dev);
int a6xx_gmu_sptprac_enable(struct adreno_device *adreno_dev);
void a6xx_gmu_sptprac_disable(struct adreno_device *adreno_dev);
bool a6xx_gmu_gx_is_on(struct adreno_device *adreno_dev);
bool a6xx_gmu_sptprac_is_on(struct adreno_device *adreno_dev);
#endif
+1235 −0

File added.

Preview size limit exceeded, changes collapsed.