.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Board setup routines for the IBM 750GX/CL platform w/ TSI10x bridge |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Josh Boyer <jwboyer@linux.vnet.ibm.com> |
---|
8 | 9 | * |
---|
9 | 10 | * Based on code from mpc7448_hpc2.c |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or |
---|
12 | | - * modify it under the terms of the GNU General Public License |
---|
13 | | - * version 2 as published by the Free Software Foundation. |
---|
14 | 11 | */ |
---|
15 | 12 | |
---|
16 | 13 | #include <linux/stddef.h> |
---|
.. | .. |
---|
44 | 41 | |
---|
45 | 42 | #define HOLLY_PCI_CFG_PHYS 0x7c000000 |
---|
46 | 43 | |
---|
47 | | -int holly_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) |
---|
| 44 | +static int holly_exclude_device(struct pci_controller *hose, u_char bus, |
---|
| 45 | + u_char devfn) |
---|
48 | 46 | { |
---|
49 | 47 | if (bus == 0 && PCI_SLOT(devfn) == 0) |
---|
50 | 48 | return PCIBIOS_DEVICE_NOT_FOUND; |
---|
.. | .. |
---|
187 | 185 | tsi108_write_reg(TSI108_MPIC_OFFSET + 0x30c, 0); |
---|
188 | 186 | } |
---|
189 | 187 | |
---|
190 | | -void holly_show_cpuinfo(struct seq_file *m) |
---|
| 188 | +static void holly_show_cpuinfo(struct seq_file *m) |
---|
191 | 189 | { |
---|
192 | 190 | seq_printf(m, "vendor\t\t: IBM\n"); |
---|
193 | 191 | seq_printf(m, "machine\t\t: PPC750 GX/CL\n"); |
---|
194 | 192 | } |
---|
195 | 193 | |
---|
196 | | -void __noreturn holly_restart(char *cmd) |
---|
| 194 | +static void __noreturn holly_restart(char *cmd) |
---|
197 | 195 | { |
---|
198 | 196 | __be32 __iomem *ocn_bar1 = NULL; |
---|
199 | 197 | unsigned long bar; |
---|
.. | .. |
---|
231 | 229 | |
---|
232 | 230 | /* Spin until reset happens. Shouldn't really get here */ |
---|
233 | 231 | for (;;) ; |
---|
234 | | -} |
---|
235 | | - |
---|
236 | | -void holly_power_off(void) |
---|
237 | | -{ |
---|
238 | | - local_irq_disable(); |
---|
239 | | - /* No way to shut power off with software */ |
---|
240 | | - for (;;) ; |
---|
241 | | -} |
---|
242 | | - |
---|
243 | | -void holly_halt(void) |
---|
244 | | -{ |
---|
245 | | - holly_power_off(); |
---|
246 | 232 | } |
---|
247 | 233 | |
---|
248 | 234 | /* |
---|