Lines Matching +full:used +full:- +full:by +full:- +full:rtas
1 // SPDX-License-Identifier: GPL-2.0
4 * Adapted from 'alpha' version by Gary Thomas
5 * Modified by Cort Dougan (cort@cs.nmt.edu)
38 #include <asm/pci-bridge.h>
47 #include <asm/rtas.h>
60 /* Used for doing CHRP event-scans */
66 /* To be replaced by RTAS when available */
80 "Asynchronous", "Reserved", "Flow-Through Synchronous",
84 "Disabled", "Write-Through", "Copy-Back", "Transparent Mode"
251 * Per default, input/output-device points to the keyboard/screen
252 * If no card is installed, the built-in serial port is used as a fallback.
254 * the the built-in serial node. Instead, a /failsafe node is created.
275 property = of_get_property(of_chosen, "linux,stdout-path", NULL); in chrp_init()
311 } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { in chrp_setup_arch()
324 if (rtas_token("display-character") >= 0) in chrp_setup_arch()
327 /* use RTAS time-of-day routines if available */ in chrp_setup_arch()
328 if (rtas_token("get-time-of-day") != RTAS_UNKNOWN_SERVICE) { in chrp_setup_arch()
334 /* On pegasos, enable the L2 cache if not already done by OF */ in chrp_setup_arch()
342 * -- Geert in chrp_setup_arch()
355 * can be printed. -- Cort in chrp_setup_arch()
368 chip->irq_eoi(&desc->irq_data); in chrp_8259_cascade()
372 * Finds the open-pic node and sets up the mpic driver.
384 np = of_find_node_by_type(NULL, "open-pic"); in chrp_find_openpic()
389 opprop = of_get_property(root, "platform-open-pic", &oplen); in chrp_find_openpic()
393 opaddr = opprop[na-1]; /* assume 32-bit */ in chrp_find_openpic()
406 iranges = of_get_property(np, "interrupt-ranges", &len); in chrp_find_openpic()
408 len = 0; /* non-distributed mpic */ in chrp_find_openpic()
413 * The first pair of cells in interrupt-ranges refers to the in chrp_find_openpic()
425 iranges[0], iranges[0] + iranges[1] - 1); in chrp_find_openpic()
436 j = na - 1; in chrp_find_openpic()
441 iranges[0], iranges[0] + iranges[1] - 1, in chrp_find_openpic()
443 mpic_assign_isu(chrp_mpic, i - 1, opprop[j]); in chrp_find_openpic()
460 for_each_node_by_type(np, "interrupt-controller") in chrp_find_8259()
470 printk(KERN_ERR "i8259: Not found in device-tree" in chrp_find_8259()
477 * we ever see a problem, we can try to re-use the pSeries code here. in chrp_find_8259()
478 * Also, Pegasos-type platforms don't have a proper node to start in chrp_find_8259()
483 "8259-interrupt-acknowledge", NULL); in chrp_find_8259()
487 chrp_int_ack = addrp[of_n_addr_cells(np)-1]; in chrp_find_8259()
533 if (of_node_is_type(kbd->parent, "adb")) in chrp_init_IRQ()