aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/prep_setup.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-11 08:03:09 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-11 08:03:09 -0400
commit35d81a4bfe28a6ea81c9f67c9ce40543124ded0b (patch)
tree43ed0161b53e0b4c620066c6b1c49d04b13188f5 /arch/ppc/platforms/prep_setup.c
parentcc5aa206d2c853929ce67d8f5ebb57cd1c7fd413 (diff)
ppc: Adapt to asm-powerpc/irq.h irq_canonicalize changes
Now instead of having a ppc_md function, we just have a variable which says whether to do the i8259 irq canonicalization or not, and set that variable on the platforms that need that. It looks to me that radstone_ppc7d was trying to use irq canonicalization for something else in a broken kind of way - it will need to be fixed properly. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/prep_setup.c')
-rw-r--r--arch/ppc/platforms/prep_setup.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c
index 8bc734fe6682..490ff175c902 100644
--- a/arch/ppc/platforms/prep_setup.c
+++ b/arch/ppc/platforms/prep_setup.c
@@ -942,19 +942,6 @@ prep_calibrate_decr(void)
942 todc_calibrate_decr(); 942 todc_calibrate_decr();
943} 943}
944 944
945static unsigned int
946prep_irq_canonicalize(u_int irq)
947{
948 if (irq == 2)
949 {
950 return 9;
951 }
952 else
953 {
954 return irq;
955 }
956}
957
958static void __init 945static void __init
959prep_init_IRQ(void) 946prep_init_IRQ(void)
960{ 947{
@@ -1110,6 +1097,7 @@ prep_init(unsigned long r3, unsigned long r4, unsigned long r5,
1110 ISA_DMA_THRESHOLD = 0x00ffffff; 1097 ISA_DMA_THRESHOLD = 0x00ffffff;
1111 DMA_MODE_READ = 0x44; 1098 DMA_MODE_READ = 0x44;
1112 DMA_MODE_WRITE = 0x48; 1099 DMA_MODE_WRITE = 0x48;
1100 ppc_do_canonicalize_irqs = 1;
1113 1101
1114 /* figure out what kind of prep workstation we are */ 1102 /* figure out what kind of prep workstation we are */
1115 if (have_residual_data) { 1103 if (have_residual_data) {
@@ -1136,7 +1124,6 @@ prep_init(unsigned long r3, unsigned long r4, unsigned long r5,
1136 ppc_md.setup_arch = prep_setup_arch; 1124 ppc_md.setup_arch = prep_setup_arch;
1137 ppc_md.show_percpuinfo = prep_show_percpuinfo; 1125 ppc_md.show_percpuinfo = prep_show_percpuinfo;
1138 ppc_md.show_cpuinfo = NULL; /* set in prep_setup_arch() */ 1126 ppc_md.show_cpuinfo = NULL; /* set in prep_setup_arch() */
1139 ppc_md.irq_canonicalize = prep_irq_canonicalize;
1140 ppc_md.init_IRQ = prep_init_IRQ; 1127 ppc_md.init_IRQ = prep_init_IRQ;
1141 /* this gets changed later on if we have an OpenPIC -- Cort */ 1128 /* this gets changed later on if we have an OpenPIC -- Cort */
1142 ppc_md.get_irq = i8259_irq; 1129 ppc_md.get_irq = i8259_irq;