.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * MPC85xx PM operators |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #define pr_fmt(fmt) "%s: " fmt, __func__ |
---|
.. | .. |
---|
21 | 17 | |
---|
22 | 18 | static struct ccsr_guts __iomem *guts; |
---|
23 | 19 | |
---|
| 20 | +#ifdef CONFIG_FSL_PMC |
---|
24 | 21 | static void mpc85xx_irq_mask(int cpu) |
---|
25 | 22 | { |
---|
26 | 23 | |
---|
.. | .. |
---|
53 | 50 | { |
---|
54 | 51 | |
---|
55 | 52 | } |
---|
| 53 | +#endif |
---|
56 | 54 | |
---|
57 | 55 | static void mpc85xx_freeze_time_base(bool freeze) |
---|
58 | 56 | { |
---|
.. | .. |
---|
80 | 78 | |
---|
81 | 79 | static const struct fsl_pm_ops mpc85xx_pm_ops = { |
---|
82 | 80 | .freeze_time_base = mpc85xx_freeze_time_base, |
---|
| 81 | +#ifdef CONFIG_FSL_PMC |
---|
83 | 82 | .irq_mask = mpc85xx_irq_mask, |
---|
84 | 83 | .irq_unmask = mpc85xx_irq_unmask, |
---|
85 | 84 | .cpu_die = mpc85xx_cpu_die, |
---|
86 | 85 | .cpu_up_prepare = mpc85xx_cpu_up_prepare, |
---|
| 86 | +#endif |
---|
87 | 87 | }; |
---|
88 | 88 | |
---|
89 | 89 | int __init mpc85xx_setup_pmc(void) |
---|