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

Commit b861aa0a authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam
Browse files

msm: smd: remove MSM_SHARED_RAM_BASE dependence



MSM_SHARED_RAM_BASE is used to read the version information of smem
users.

For targets based on device tree, the MSM_SHARED_RAM_BASE may not be
necessary. so remove the dependence by adding smem_get_version() API.

Change-Id: Ic0a6461814f52f931d1badfbe8797bf16ed3e03d
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
parent f1aebeca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2428,7 +2428,6 @@ static int smsm_cb_init(void)

static int smsm_init(void)
{
	struct smem_shared *shared = (void *) MSM_SHARED_RAM_BASE;
	int i;
	struct smsm_size_info_type *smsm_size_info;
	unsigned long flags;
@@ -2477,7 +2476,7 @@ static int smsm_init(void)

		if (smsm_info.state) {
			__raw_writel(0, SMSM_STATE_ADDR(SMSM_APPS_STATE));
			if ((shared->version[VERSION_MODEM] >> 16) >= 0xB)
			if ((smem_get_version(VERSION_MODEM) >> 16) >= 0xB)
				__raw_writel(0, \
					SMSM_STATE_ADDR(SMSM_APPS_DEM_I));
		}