1/* 2 * linux/arch/sh/kernel/setup_7751se.c 3 * 4 * Copyright (C) 2000 Kazumoto Kojima 5 * 6 * Hitachi SolutionEngine Support. 7 * 8 * Modified for 7751 Solution Engine by 9 * Ian da Silva and Jeremy Siegel, 2001. 10 */ 11 12#include <linux/config.h> 13#include <linux/init.h> 14#include <linux/irq.h> 15 16#include <linux/hdreg.h> 17#include <linux/ide.h> 18#include <asm/io.h> 19#include <asm/hitachi_7751se.h> 20 21/* 22 * Configure the Super I/O chip 23 */ 24 25/* 26 * Initialize IRQ setting 27 */ 28void __init init_7751se_IRQ(void) 29{ 30 31 /* Leave old Solution Engine code in for reference. */ 32#if defined(CONFIG_SH_SOLUTION_ENGINE) 33 /* 34 * Super I/O (Just mimic PC): 35 * 1: keyboard 36 * 3: serial 0 37 * 4: serial 1 38 * 5: printer 39 * 6: floppy 40 * 8: rtc 41 * 12: mouse 42 * 14: ide0 43 */ 44 make_ipr_irq(14, BCR_ILCRA, 2, 0x0f-14); 45 make_ipr_irq(12, BCR_ILCRA, 1, 0x0f-12); 46 make_ipr_irq( 8, BCR_ILCRB, 1, 0x0f- 8); 47 make_ipr_irq( 6, BCR_ILCRC, 3, 0x0f- 6); 48 make_ipr_irq( 5, BCR_ILCRC, 2, 0x0f- 5); 49 make_ipr_irq( 4, BCR_ILCRC, 1, 0x0f- 4); 50 make_ipr_irq( 3, BCR_ILCRC, 0, 0x0f- 3); 51 make_ipr_irq( 1, BCR_ILCRD, 3, 0x0f- 1); 52 53 make_ipr_irq(10, BCR_ILCRD, 1, 0x0f-10); /* LAN */ 54 55 make_ipr_irq( 0, BCR_ILCRE, 3, 0x0f- 0); /* PCIRQ3 */ 56 make_ipr_irq(11, BCR_ILCRE, 2, 0x0f-11); /* PCIRQ2 */ 57 make_ipr_irq( 9, BCR_ILCRE, 1, 0x0f- 9); /* PCIRQ1 */ 58 make_ipr_irq( 7, BCR_ILCRE, 0, 0x0f- 7); /* PCIRQ0 */ 59 60 /* #2, #13 are allocated for SLOT IRQ #1 and #2 (for now) */ 61 /* NOTE: #2 and #13 are not used on PC */ 62 make_ipr_irq(13, BCR_ILCRG, 1, 0x0f-13); /* SLOTIRQ2 */ 63 make_ipr_irq( 2, BCR_ILCRG, 0, 0x0f- 2); /* SLOTIRQ1 */ 64 65#elif defined(CONFIG_SH_7751_SOLUTION_ENGINE) 66 67 make_ipr_irq(13, BCR_ILCRD, 3, 2); 68 69 /* Add additional calls to make_ipr_irq() as drivers are added 70 * and tested. 71 */ 72#endif 73 74} 75 76 77/* 78 * Initialize the board 79 */ 80void __init setup_7751se(void) 81{ 82 /* Call init_smsc() replacement to set up SuperIO. */ 83} 84