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

Commit 966f6452 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

msm: pm-boot: Use new multicluster boot API to set warmboot addr



With multiple clusters, the warmboot address is passed into TZ using a new
API. TZ will support the new  multicluster API for single cluster
configuration as well. Query TZ for the availability of multicluster
support and use the corresponding API to set the warmboot address

Change-Id: I7abf99fed77eb169e27b0f8b6ede7e980e859693
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 62a8ead9
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -23,7 +23,13 @@ static void (*msm_pm_boot_after_pc)(unsigned int cpu);

static int msm_pm_tz_boot_init(void)
{
	phys_addr_t warmboot_addr = virt_to_phys(msm_pm_boot_entry);

	if (scm_is_mc_boot_available()) {
		return scm_set_warm_boot_addr_mc_for_all(warmboot_addr);
	} else {
		unsigned int flag = 0;

		if (num_possible_cpus() == 1)
			flag = SCM_FLAG_WARMBOOT_CPU0;
		else if (num_possible_cpus() == 2)
@@ -36,6 +42,7 @@ static int msm_pm_tz_boot_init(void)

		return scm_set_boot_addr(virt_to_phys(msm_pm_boot_entry), flag);
	}
}

static void msm_pm_write_boot_vector(unsigned int cpu, unsigned long address)
{