~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/board-secureedge5410.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Copyright (C) 2002  David McCullough <davidm@snapgear.com>
  4  * Copyright (C) 2003  Paul Mundt <lethal@linux-sh.org>
  5  *
  6  * Based on files with the following comments:
  7  *
  8  *           Copyright (C) 2000  Kazumoto Kojima
  9  *
 10  *           Modified for 7751 Solution Engine by
 11  *           Ian da Silva and Jeremy Siegel, 2001.
 12  */
 13 #include <linux/init.h>
 14 #include <linux/irq.h>
 15 #include <linux/interrupt.h>
 16 #include <linux/timer.h>
 17 #include <linux/delay.h>
 18 #include <linux/sched.h>
 19 #include <asm/machvec.h>
 20 #include <mach/secureedge5410.h>
 21 #include <asm/irq.h>
 22 #include <asm/io.h>
 23 #include <cpu/timer.h>
 24 
 25 unsigned short secureedge5410_ioport;
 26 
 27 /*
 28  * EraseConfig handling functions
 29  */
 30 static irqreturn_t eraseconfig_interrupt(int irq, void *dev_id)
 31 {
 32         printk("SnapGear: erase switch interrupt!\n");
 33 
 34         return IRQ_HANDLED;
 35 }
 36 
 37 static int __init eraseconfig_init(void)
 38 {
 39         unsigned int irq = evt2irq(0x240);
 40 
 41         printk("SnapGear: EraseConfig init\n");
 42 
 43         /* Setup "EraseConfig" switch on external IRQ 0 */
 44         if (request_irq(irq, eraseconfig_interrupt, 0, "Erase Config", NULL))
 45                 printk("SnapGear: failed to register IRQ%d for Reset witch\n",
 46                                 irq);
 47         else
 48                 printk("SnapGear: registered EraseConfig switch on IRQ%d\n",
 49                                 irq);
 50         return 0;
 51 }
 52 device_initcall(eraseconfig_init);
 53 
 54 /*
 55  * Initialize IRQ setting
 56  *
 57  * IRL0 = erase switch
 58  * IRL1 = eth0
 59  * IRL2 = eth1
 60  * IRL3 = crypto
 61  */
 62 static void __init init_snapgear_IRQ(void)
 63 {
 64         printk("Setup SnapGear IRQ/IPR ...\n");
 65         /* enable individual interrupt mode for externals */
 66         plat_irq_setup_pins(IRQ_MODE_IRQ);
 67 }
 68 
 69 /*
 70  * The Machine Vector
 71  */
 72 static struct sh_machine_vector mv_snapgear __initmv = {
 73         .mv_name                = "SnapGear SecureEdge5410",
 74         .mv_init_irq            = init_snapgear_IRQ,
 75 };
 76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php