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

Commit 70266ab9 authored by Veera Vegivada's avatar Veera Vegivada
Browse files

clk: qcom: Add support for enabling the critical clocks



Add pm_ops thaw_early callback to re-enable the critical clocks
in the thaw path for SA variants.

Change-Id: I43aa8c9e14af69c03b3f192026842b26a149d49f
Signed-off-by: default avatarVeera Vegivada <vvegivad@codeaurora.org>
parent ed9586d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2456,6 +2456,7 @@ static int cam_cc_sa8150_resume(struct device *dev)

static const struct dev_pm_ops cam_cc_sa8150_pm_ops = {
	.restore_early = cam_cc_sa8150_resume,
	.thaw_early = cam_cc_sa8150_resume,
};

static void cam_cc_sm8150_fixup_sm8150v2(struct regmap *regmap)
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2020, 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
@@ -3652,6 +3652,7 @@ static int gcc_sa6150_resume(struct device *dev)

static const struct dev_pm_ops gcc_sa6150_pm_ops = {
	.restore_early = gcc_sa6150_resume,
	.thaw_early = gcc_sa6150_resume,
};

static void gcc_sm6150_fixup_sa6155(struct platform_device *pdev)
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, 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
@@ -4244,6 +4244,7 @@ static int gcc_sa8150_resume(struct device *dev)

static const struct dev_pm_ops gcc_sa8150_pm_ops = {
	.restore_early = gcc_sa8150_resume,
	.thaw_early = gcc_sa8150_resume,
};

static void gcc_sm8150_fixup_sm8150v2(struct regmap *regmap)
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2020, 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
@@ -555,6 +555,7 @@ static int gpu_cc_sm6150_resume(struct device *dev)

static const struct dev_pm_ops gpu_cc_sm6150_pm_ops = {
	.restore_early = gpu_cc_sm6150_resume,
	.thaw_early = gpu_cc_sm6150_resume,
};

static void gpucc_sm6150_fixup_sa6155(struct platform_device *pdev)
+1 −0
Original line number Diff line number Diff line
@@ -455,6 +455,7 @@ static int gpucc_sa8150_resume(struct device *dev)

static const struct dev_pm_ops gpucc_sa8150_pm_ops = {
	.restore_early = gpucc_sa8150_resume,
	.thaw_early = gpucc_sa8150_resume,
};

static void gpu_cc_sm8150_fixup_sdmshrike(void)
Loading