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

Commit 9e3220bd authored by Rajeev Kulkarni's avatar Rajeev Kulkarni Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Correct register offsets for reading ME microcode



For a4x we were using a3x register offsets for reading ME
microcode. Corrected register offsets so that a3x and a4x use
corressponding register offsets.

Change-Id: I951a617fb96fce7183a3cf5459c9b8381da0fe09
Signed-off-by: default avatarRajeev Kulkarni <krajeev@codeaurora.org>
parent 168f49e7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, 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
@@ -193,9 +193,9 @@ size_t a3xx_snapshot_cp_pm4_ram(struct kgsl_device *device, u8 *buf,
	 * maintain always changing hardcoded constants
	 */

	kgsl_regwrite(device, A3XX_CP_ME_RAM_RADDR, 0x0);
	adreno_writereg(adreno_dev, ADRENO_REG_CP_ME_RAM_RADDR, 0x0);
	for (i = 0; i < size; i++)
		kgsl_regread(device, A3XX_CP_ME_RAM_DATA, &data[i]);
		adreno_readreg(adreno_dev, ADRENO_REG_CP_ME_RAM_DATA, &data[i]);

	return DEBUG_SECTION_SZ(size);
}