/* ASB2303 initialisation * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */ #include <linux/kernel.h> #include <linux/param.h> #include <linux/init.h> #include <linux/device.h> #include <asm/io.h> #include <asm/setup.h> #include <asm/processor.h> #include <asm/irq.h> #include <asm/intctl-regs.h> /* * initialise some of the unit hardware before gdbstub is set up */
asmlinkage void __init unit_init(void) { /* set up the external interrupts */ SET_XIRQ_TRIGGER(0, XIRQ_TRIGGER_HILEVEL); SET_XIRQ_TRIGGER(2, XIRQ_TRIGGER_LOWLEVEL); SET_XIRQ_TRIGGER(3, XIRQ_TRIGGER_HILEVEL); SET_XIRQ_TRIGGER(4, XIRQ_TRIGGER_LOWLEVEL); SET_XIRQ_TRIGGER(5, XIRQ_TRIGGER_LOWLEVEL); #ifdef CONFIG_EXT_SERIAL_IRQ_LEVEL set_intr_level(XIRQ0, NUM2GxICR_LEVEL(CONFIG_EXT_SERIAL_IRQ_LEVEL)); #endif #ifdef CONFIG_ETHERNET_IRQ_LEVEL set_intr_level(XIRQ3, NUM2GxICR_LEVEL(CONFIG_ETHERNET_IRQ_LEVEL)); #endif }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 45 | 60.00% | 1 | 50.00% |
Akira Takeuchi | 30 | 40.00% | 1 | 50.00% |
Total | 75 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 7 | 100.00% | 1 | 100.00% |
Total | 7 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 52 | 98.11% | 1 | 50.00% |
Akira Takeuchi | 1 | 1.89% | 1 | 50.00% |
Total | 53 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 135 | 81.33% | 1 | 50.00% |
Akira Takeuchi | 31 | 18.67% | 1 | 50.00% |
Total | 166 | 100.00% | 2 | 100.00% |