setup.c (a3b2cb30f252b21a6f962e0dd107c8b897ca65e4) | setup.c (eac1e731b59ee3b5f5e641a7765c7ed41ed26226) |
---|---|
1/* 2 * 64-bit pSeries and RS/6000 setup code. 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 * Adapted from 'alpha' version by Gary Thomas 6 * Modified by Cort Dougan (cort@cs.nmt.edu) 7 * Modified by PPC64 Team, IBM Corp 8 * --- 43 unchanged lines hidden (view full) --- 52#include <asm/iommu.h> 53#include <asm/dma.h> 54#include <asm/machdep.h> 55#include <asm/irq.h> 56#include <asm/time.h> 57#include <asm/nvram.h> 58#include <asm/pmc.h> 59#include <asm/xics.h> | 1/* 2 * 64-bit pSeries and RS/6000 setup code. 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 * Adapted from 'alpha' version by Gary Thomas 6 * Modified by Cort Dougan (cort@cs.nmt.edu) 7 * Modified by PPC64 Team, IBM Corp 8 * --- 43 unchanged lines hidden (view full) --- 52#include <asm/iommu.h> 53#include <asm/dma.h> 54#include <asm/machdep.h> 55#include <asm/irq.h> 56#include <asm/time.h> 57#include <asm/nvram.h> 58#include <asm/pmc.h> 59#include <asm/xics.h> |
60#include <asm/xive.h> |
|
60#include <asm/ppc-pci.h> 61#include <asm/i8259.h> 62#include <asm/udbg.h> 63#include <asm/smp.h> 64#include <asm/firmware.h> 65#include <asm/eeh.h> 66#include <asm/reg.h> 67#include <asm/plpar_wrappers.h> --- 103 unchanged lines hidden (view full) --- 171 printk(KERN_DEBUG "pic: PCI 8259 intack at 0x%016lx\n", intack); 172 i8259_init(found, intack); 173 of_node_put(found); 174 irq_set_chained_handler(cascade, pseries_8259_cascade); 175} 176 177static void __init pseries_init_irq(void) 178{ | 61#include <asm/ppc-pci.h> 62#include <asm/i8259.h> 63#include <asm/udbg.h> 64#include <asm/smp.h> 65#include <asm/firmware.h> 66#include <asm/eeh.h> 67#include <asm/reg.h> 68#include <asm/plpar_wrappers.h> --- 103 unchanged lines hidden (view full) --- 172 printk(KERN_DEBUG "pic: PCI 8259 intack at 0x%016lx\n", intack); 173 i8259_init(found, intack); 174 of_node_put(found); 175 irq_set_chained_handler(cascade, pseries_8259_cascade); 176} 177 178static void __init pseries_init_irq(void) 179{ |
179 xics_init(); 180 pseries_setup_i8259_cascade(); | 180 /* Try using a XIVE if available, otherwise use a XICS */ 181 if (!xive_spapr_init()) { 182 xics_init(); 183 pseries_setup_i8259_cascade(); 184 } |
181} 182 183static void pseries_lpar_enable_pmcs(void) 184{ 185 unsigned long set, reset; 186 187 set = 1UL << 63; 188 reset = 0; --- 551 unchanged lines hidden --- | 185} 186 187static void pseries_lpar_enable_pmcs(void) 188{ 189 unsigned long set, reset; 190 191 set = 1UL << 63; 192 reset = 0; --- 551 unchanged lines hidden --- |