setup.c (597473720f4dc69749542bfcfed4a927a43d935e) setup.c (b4f00d5b2098320a0d4c4a6d31099bc0c9a85b02)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1995 Linus Torvalds
4 * Adapted from 'alpha' version by Gary Thomas
5 * Modified by Cort Dougan (cort@cs.nmt.edu)
6 */
7
8/*

--- 437 unchanged lines hidden (view full) ---

446
447 mpic_init(chrp_mpic);
448 ppc_md.get_irq = mpic_get_irq;
449 bail:
450 of_node_put(root);
451 of_node_put(np);
452}
453
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1995 Linus Torvalds
4 * Adapted from 'alpha' version by Gary Thomas
5 * Modified by Cort Dougan (cort@cs.nmt.edu)
6 */
7
8/*

--- 437 unchanged lines hidden (view full) ---

446
447 mpic_init(chrp_mpic);
448 ppc_md.get_irq = mpic_get_irq;
449 bail:
450 of_node_put(root);
451 of_node_put(np);
452}
453
454#if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
455static struct irqaction xmon_irqaction = {
456 .handler = xmon_irq,
457 .name = "XMON break",
458};
459#endif
460
461static void __init chrp_find_8259(void)
462{
463 struct device_node *np, *pic = NULL;
464 unsigned long chrp_int_ack = 0;
465 unsigned int cascade_irq;
466
467 /* Look for cascade */
468 for_each_node_by_type(np, "interrupt-controller")

--- 67 unchanged lines hidden (view full) ---

536
537#if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
538 /* see if there is a keyboard in the device tree
539 with a parent of type "adb" */
540 for_each_node_by_name(kbd, "keyboard")
541 if (of_node_is_type(kbd->parent, "adb"))
542 break;
543 of_node_put(kbd);
454static void __init chrp_find_8259(void)
455{
456 struct device_node *np, *pic = NULL;
457 unsigned long chrp_int_ack = 0;
458 unsigned int cascade_irq;
459
460 /* Look for cascade */
461 for_each_node_by_type(np, "interrupt-controller")

--- 67 unchanged lines hidden (view full) ---

529
530#if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
531 /* see if there is a keyboard in the device tree
532 with a parent of type "adb" */
533 for_each_node_by_name(kbd, "keyboard")
534 if (of_node_is_type(kbd->parent, "adb"))
535 break;
536 of_node_put(kbd);
544 if (kbd)
545 setup_irq(HYDRA_INT_ADB_NMI, &xmon_irqaction);
537 if (kbd) {
538 if (request_irq(HYDRA_INT_ADB_NMI, xmon_irq, 0, "XMON break",
539 NULL))
540 pr_err("Failed to register XMON break interrupt\n");
541 }
546#endif
547}
548
549static void __init
550chrp_init2(void)
551{
552#if IS_ENABLED(CONFIG_NVRAM)
553 chrp_nvram_init();

--- 48 unchanged lines hidden ---
542#endif
543}
544
545static void __init
546chrp_init2(void)
547{
548#if IS_ENABLED(CONFIG_NVRAM)
549 chrp_nvram_init();

--- 48 unchanged lines hidden ---