Release 4.14 arch/sh/boards/board-secureedge5410.c
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2002 David McCullough <davidm@snapgear.com>
* Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
*
* Based on files with the following comments:
*
* Copyright (C) 2000 Kazumoto Kojima
*
* Modified for 7751 Solution Engine by
* Ian da Silva and Jeremy Siegel, 2001.
*/
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <asm/machvec.h>
#include <mach/secureedge5410.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <cpu/timer.h>
unsigned short secureedge5410_ioport;
/*
* EraseConfig handling functions
*/
static irqreturn_t eraseconfig_interrupt(int irq, void *dev_id)
{
printk("SnapGear: erase switch interrupt!\n");
return IRQ_HANDLED;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
static int __init eraseconfig_init(void)
{
unsigned int irq = evt2irq(0x240);
printk("SnapGear: EraseConfig init\n");
/* Setup "EraseConfig" switch on external IRQ 0 */
if (request_irq(irq, eraseconfig_interrupt, 0, "Erase Config", NULL))
printk("SnapGear: failed to register IRQ%d for Reset witch\n",
irq);
else
printk("SnapGear: registered EraseConfig switch on IRQ%d\n",
irq);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 44 | 77.19% | 1 | 33.33% |
Paul Mundt | 12 | 21.05% | 1 | 33.33% |
Yong Zhang | 1 | 1.75% | 1 | 33.33% |
Total | 57 | 100.00% | 3 | 100.00% |
device_initcall(eraseconfig_init);
/*
* Initialize IRQ setting
*
* IRL0 = erase switch
* IRL1 = eth0
* IRL2 = eth1
* IRL3 = crypto
*/
static void __init init_snapgear_IRQ(void)
{
printk("Setup SnapGear IRQ/IPR ...\n");
/* enable individual interrupt mode for externals */
plat_irq_setup_pins(IRQ_MODE_IRQ);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jamie Lenehan | 15 | 75.00% | 1 | 33.33% |
Magnus Damm | 3 | 15.00% | 1 | 33.33% |
Andrew Morton | 2 | 10.00% | 1 | 33.33% |
Total | 20 | 100.00% | 3 | 100.00% |
/*
* The Machine Vector
*/
static struct sh_machine_vector mv_snapgear __initmv = {
.mv_name = "SnapGear SecureEdge5410",
.mv_init_irq = init_snapgear_IRQ,
};
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 115 | 70.55% | 1 | 8.33% |
Paul Mundt | 27 | 16.56% | 6 | 50.00% |
Jamie Lenehan | 15 | 9.20% | 1 | 8.33% |
Magnus Damm | 3 | 1.84% | 1 | 8.33% |
Paul Gortmaker | 1 | 0.61% | 1 | 8.33% |
Greg Kroah-Hartman | 1 | 0.61% | 1 | 8.33% |
Yong Zhang | 1 | 0.61% | 1 | 8.33% |
Total | 163 | 100.00% | 12 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.