forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/85xx/mpc85xx_pm_ops.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MPC85xx PM operators
34 *
45 * Copyright 2015 Freescale Semiconductor Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; either version 2 of the License, or (at your
9
- * option) any later version.
106 */
117
128 #define pr_fmt(fmt) "%s: " fmt, __func__
....@@ -21,6 +17,7 @@
2117
2218 static struct ccsr_guts __iomem *guts;
2319
20
+#ifdef CONFIG_FSL_PMC
2421 static void mpc85xx_irq_mask(int cpu)
2522 {
2623
....@@ -53,6 +50,7 @@
5350 {
5451
5552 }
53
+#endif
5654
5755 static void mpc85xx_freeze_time_base(bool freeze)
5856 {
....@@ -80,10 +78,12 @@
8078
8179 static const struct fsl_pm_ops mpc85xx_pm_ops = {
8280 .freeze_time_base = mpc85xx_freeze_time_base,
81
+#ifdef CONFIG_FSL_PMC
8382 .irq_mask = mpc85xx_irq_mask,
8483 .irq_unmask = mpc85xx_irq_unmask,
8584 .cpu_die = mpc85xx_cpu_die,
8685 .cpu_up_prepare = mpc85xx_cpu_up_prepare,
86
+#endif
8787 };
8888
8989 int __init mpc85xx_setup_pmc(void)