Lines Matching +full:fpga +full:- +full:based

1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Based on earlier code:
10 * Copyright 2002-2005 MontaVista Software Inc.
13 * Copyright (c) 2003-2005 Zultys Technologies
98 { "akebono-avr" },
104 .name = "akebono-avr",
125 for_each_node_with_property(np, "interrupt-controller") { in ppc47x_init_irq()
133 if (of_device_is_compatible(np, "chrp,open-pic")) { in ppc47x_init_irq()
135 * device-tree, just pass 0 to all arguments in ppc47x_init_irq()
163 /* Assume spin table. We could test for the enable-method in in smp_ppc47x_kick_cpu()
164 * the device-tree but currently there's little point as it's in smp_ppc47x_kick_cpu()
168 of_get_property(cpunode, "cpu-release-addr", NULL); in smp_ppc47x_kick_cpu()
171 pr_err("CPU%d: Can't start, missing cpu-release-addr !\n", in smp_ppc47x_kick_cpu()
221 static int board_rev = -1;
225 u8 __iomem *fpga; in ppc47x_get_board_rev() local
229 np = of_find_compatible_node(NULL, NULL, "ibm,currituck-fpga"); in ppc47x_get_board_rev()
232 np = of_find_compatible_node(NULL, NULL, "ibm,akebono-fpga"); in ppc47x_get_board_rev()
239 fpga = of_iomap(np, 0); in ppc47x_get_board_rev()
241 if (!fpga) in ppc47x_get_board_rev()
244 board_rev = ioread8(fpga + reg) & 0x03; in ppc47x_get_board_rev()
246 iounmap(fpga); in ppc47x_get_board_rev()
259 if (dev->vendor == 0x1033 && (dev->device == 0x0035 || in ppc47x_pci_irq_fixup()
260 dev->device == 0x00e0)) { in ppc47x_pci_irq_fixup()
262 dev->irq = irq_create_mapping(NULL, 47); in ppc47x_pci_irq_fixup()
263 pr_info("%s: Mapping irq %d\n", __func__, dev->irq); in ppc47x_pci_irq_fixup()
265 dev->irq = irq_create_mapping(NULL, 49); in ppc47x_pci_irq_fixup()
266 pr_info("%s: Mapping irq %d\n", __func__, dev->irq); in ppc47x_pci_irq_fixup()