.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2007 PA Semi, Inc |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * |
---|
9 | 10 | * Based on arch/powerpc/platforms/cell/cbe_cpufreq.c: |
---|
10 | 11 | * (C) Copyright IBM Deutschland Entwicklung GmbH 2005 |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or modify |
---|
13 | | - * it under the terms of the GNU General Public License as published by |
---|
14 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
15 | | - * any later version. |
---|
16 | | - * |
---|
17 | | - * This program is distributed in the hope that it will be useful, |
---|
18 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
20 | | - * GNU General Public License for more details. |
---|
21 | | - * |
---|
22 | | - * You should have received a copy of the GNU General Public License |
---|
23 | | - * along with this program; if not, write to the Free Software |
---|
24 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
25 | | - * |
---|
26 | 12 | */ |
---|
27 | 13 | |
---|
28 | 14 | #include <linux/cpufreq.h> |
---|
.. | .. |
---|
35 | 21 | #include <asm/prom.h> |
---|
36 | 22 | #include <asm/time.h> |
---|
37 | 23 | #include <asm/smp.h> |
---|
| 24 | + |
---|
| 25 | +#include <platforms/pasemi/pasemi.h> |
---|
38 | 26 | |
---|
39 | 27 | #define SDCASR_REG 0x0100 |
---|
40 | 28 | #define SDCASR_REG_STRIDE 0x1000 |
---|
.. | .. |
---|
208 | 196 | policy->cur = pas_freqs[cur_astate].frequency; |
---|
209 | 197 | ppc_proc_freq = policy->cur * 1000ul; |
---|
210 | 198 | |
---|
211 | | - return cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency()); |
---|
| 199 | + cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency()); |
---|
| 200 | + return 0; |
---|
212 | 201 | |
---|
213 | 202 | out_unmap_sdcasr: |
---|
214 | 203 | iounmap(sdcasr_mapbase); |
---|