android_kernel_xiaomi_sm8350/drivers/soc/qcom/idle.h
Raja Mallik 92d0c40a5c drivers: soc: qcom: pm: Add legacy PM and Warmboot set address API support
Add legacy msm pm sleep mode support for MDM9607 target.

Add warmboot set address support for multi cluster cpu's.

Snapshot is taken from msm-4.9 kernel version @ commit 078db469522464
("soc: qcom: bgrsb: Increase time out for RSB channel opening").

Change-Id: Ibfc56254c47cfc1465aff5559b8846072f66041a
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Raja Mallik <rmallik@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 10:12:16 -07:00

22 lines
515 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2007-2009,2012-2014, 2018-2019, 2021 The Linux Foundation.
*/
#ifndef _ARCH_ARM_MACH_MSM_IDLE_H_
#define _ARCH_ARM_MACH_MSM_IDLE_H_
#define MAX_CPUS_PER_CLUSTER 4
#define MAX_NUM_CLUSTER 4
#ifndef __ASSEMBLY__
#if defined(CONFIG_CPU_V7) || defined(CONFIG_ARM64)
extern unsigned long msm_pm_boot_vector[MAX_NUM_CLUSTER * MAX_CPUS_PER_CLUSTER];
void msm_pm_boot_entry(void);
#else
static inline void msm_pm_boot_entry(void) {}
#endif
#endif
#endif